help - could not set video options

Questions involving a Windows version of FFmpeg.
Post Reply
ozenctaskin
Posts: 1
Joined: Fri Mar 08, 2019 6:52 pm

help - could not set video options

Post by ozenctaskin » Fri Mar 08, 2019 7:03 pm

Hi,

I'm using an analog to digital converter (elgato video capture) for an IR camera. Camera's native resolution is 640x480 and that's the resolution I want to record with. However, whenever I specify a resolution I get a "could not set video options" error. I use ffmpeg on windows with a very simple command. The elgato device accepts that resolution and ffmpeg shows it among the other accepted resolutions. When I don't use those flags it records a video which looks fine but 720x480

Code: Select all

ffmpeg -f dshow -video_size 640x480 -framerate 30 -i video="Elgato Video Capture" output.avi

pandy
Posts: 152
Joined: Mon Feb 24, 2014 1:46 pm

Re: help - could not set video options

Post by pandy » Mon Mar 25, 2019 11:09 am

ffmpeg follow reported device capabilities - you can resize your video to desired size later.
to capture from HW device i need to to perform such steps:

first listing ffmpeg supported devices

Code: Select all

ffmpeg -list_devices true -f dshow -i dummy
then list HW capability using proper name acquired in previous step:

Code: Select all

ffmpeg -list_options true -f dshow -i video="USB Video Device"
you should use resolution, pixel format and frame rates listed by above

Post Reply