-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[REQ] FFMPEG's video capture (as source) support #418
Comments
Hey all, thanks for the shoutout. The thing I could never figure out perfectly was the 'dshow' Other than that, working with dshow was surprisingly straight forward with the base |
@zfleeman thanks for your scripts and hints ! There are a bunch of video capture parameters to consider in order to achieve good results in analog video digitization. Many are nicely explained by @ViRb3 in his sdconv script page:
We would love to put all these efforts into an FFMPEG commandline to let cool devs like @cdgriffith easily implements is in their GUIs. About ...in this stackoverflow entry the author puts This means there's not a "standard" value to choose, so letting users freely set it up may be the best approach. Hope to establish some kind of fruitful collaboration ! |
...still investigating... |
After some research, here's a new test: commandline used:
(note: changed VCR in order to preserve the main one, test done on Samsung DVD-V6700 combo) |
...still testing...
Inspired by this reply @ videohelp. |
Found an interesting Python code by @miguelfazenda called VCR: |
(still investigating)
Source: https://trac.ffmpeg.org/ticket/1582#comment:15 Another interesting - and funny - (re)source about this: https://kohana.fi/article/color-conversion-issues-with-ffmpeg EDIT: just found another interesting - even if bit dated - git by @lauramossity containing python scripts to convert and edit captured videos from camcorder. |
[FUN] chatGPT "opinion" Here's an FFMPEG command line that you can use on Windows to acquire an audio/video stream from a capture card using a lossless codec:
This command assumes that you have installed FFMPEG on your Windows system and that you know the names of your capture card and audio device. Replace "Your Capture Card Name" and "Your Audio Device Name" with the actual names of your capture card and audio device. You can find the names of your devices by running the command ffmpeg -list_devices true -f dshow -i dummy. The command uses the dshow input format to capture video and audio from the specified devices. It encodes the video using the lossless utvideo codec and the audio using the uncompressed pcm_s16le codec. The output file format is AVI, and the output video is in yuv420p pixel format. The ultrafast preset is used to encode the video quickly, but you can choose a different preset if you want to trade off encoding speed for file size. The output is saved to a file named "output.avi" in the current directory. You can change the filename and path to save the output file to a different location. EDIT: refinement (after some observations)
|
These are fun ideas, but way outside anything I was thinking when making this program and is very ill suited for from a coding perspective. It's all open source, so anyone else can have at it if they wish, but this is not something I could see being added myself. Other discussion: #342 |
As always thank you for your valuable work as well as your careful listening to users' requests.
Even if it probably don't falls within the project scope, it would be extremely interesting (and could make FF almost unique) to implement FFMPEG video capture as input.
We've got inspired by @Jessecar96's git on How to capture, deinterlace, and encode analog video which proposes an interesting method on how to set FFMPEG for video capture through dedicated hardware.
The most interesting (and recently made) resource is probably @StefanoLusardi's Video Capture wrapper for FFMPEG with Software/Hardware decoding and there's also vcr by @BurntSushi or - a bit dated - git by @joncampbell123 who has implemented "video capture, live feed display, and recording to an AVI file when recording activated" through FFMPEG in his Video capture and archiving utility for Linux.
If it helps to let you implement it easier, here are some simple FFMPEG capture scripts to get inspiration from:
Last but not least @egemengulpinar's capture-device-list on Windows or @ericwooley's ffmpeg-devices on Mac may also help.
Hope that inspires !
The text was updated successfully, but these errors were encountered: