Hi,

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


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? If one libx264 encoder produces different video output files how
ffmpeg will handle?


On Tue, Nov 29, 2016 at 2:03 PM, Steven Liu <[email protected]> wrote:

>
>
> 2016-11-29 13:41 GMT+08:00 mahesh p <[email protected]>:
>
>> Actually encoder producing multiple output files but where as tee muxer
>> can be used to write the same data to several files So I'm looking for
>> solution where ffmpeg generates all output files which are produced by an
>> encoder.
>>
> if you want to use tee, the tee format is a AVFormatContext, you can use
> it like write mp4, mov, flv, and so on.
> tee can split multiple output file use '|'
>
>
>> On Tue, Nov 29, 2016 at 7:47 AM, Steven Liu <[email protected]>
>> wrote:
>>
>>>
>>>
>>> 2016-11-28 16:39 GMT+08:00 mahesh p <[email protected]>:
>>>
>>>> Hello,
>>>>
>>>>             I am looking for a solution by which one encoder can
>>>> generate multiple output files. Can we do this with ffmpeg today?
>>>>
>>>
>>> Do you mean muxers: tee, tee proto
>>> if you mean codec, you can refer to Carl's response.
>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Thanks,
>>>> Mahesh
>>>>
>>>> _______________________________________________
>>>> Libav-user mailing list
>>>> [email protected]
>>>> http://ffmpeg.org/mailman/listinfo/libav-user
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Libav-user mailing list
>>> [email protected]
>>> http://ffmpeg.org/mailman/listinfo/libav-user
>>>
>>>
>>
>> _______________________________________________
>> Libav-user mailing list
>> [email protected]
>> http://ffmpeg.org/mailman/listinfo/libav-user
>>
>>
>
> _______________________________________________
> Libav-user mailing list
> [email protected]
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to