[FFmpeg-user] Problem with multiple image outputs from a video stream
S V
lament.trash at gmail.com
Sun Dec 23 15:56:20 CET 2012
On Sun, Dec 23, 2012 at 3:37 PM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
>
> S V <lament.trash <at> gmail.com> writes:
>
> > ./ffmpeg -i rtsp://10.10.50.49:554/live/ch00_0
> > -vframes 1 -s 640x360 -f image2 -vcodec mjpeg test-1.jpg
> > -s 1280x720 -f image2 -vcodec mjpeg test-2.jpg
>
> If you only want one test-2.jpg (and not as many as the input
> provides), you have to add "-vframes 1" in front of "test-2.jpg".
> (Or in other words: The vframes option is output-stream specific.)
>
> Note that "-f image2 -vcodec mjpeg" are superfluous, the
> following should work fine:
> ./ffmpeg -i input -vframes 1 -s 640x360 test-1.jpg
> -vframes 1 -s 1280x720 test-2.jpg
Carl thanks, this solves my problem. :) Obviously I did not read the
documentation precisely enough and incorrectly assumed that vframes is
an input-stream specific. I know about the other two parameters being
superfluous but I left them there for clarity.
More information about the ffmpeg-user
mailing list