[Libav-user] Does ffmpeg supports multiple output files?

Carl Eugen Hoyos ceffmpeg at gmail.com
Tue Nov 29 13:08:48 EET 2016


2016-11-29 11:44 GMT+01:00 mahesh p <mahesh.p417 at gmail.com>:

>      encoder itself produces different video output files.
> for ex: bitstream_1.out, bitstream_2.out, bitstream_3.out

No encoder supported by FFmpeg can produce more than
one video stream.

> ffmpeg -i input -filter_complex \
> "[0:v]split=2[s0][s1]; \
>  [s0]scale=1280:-2[v0]; \
>  [s1]scale=640:-2[v1]" \
> -map "[v0]" -map "[v1]" -map 0:a -c:v libx264 -c:a aac -f tee \
> "[select=\'v:0,a\']local0.mkv| \
>  [select=\'v:0,a\':f=flv]rtmp://server0/app/instance/playpath| \
>  [select=\'v:1,a\']local1.mkv| \
>  [select=\'v:1,a\':f=flv]rtmp://server1/app/instance/playpath"
>
>
> but In above ffmpeg example two x264 encoder instances will
> run in parallel right?

Yes, this is because one x264 encoder instance can output exactly
one video stream (but your command line requires two different
video streams).

Do not top-post here, Carl Eugen


More information about the Libav-user mailing list