[FFmpeg-devel] [PATCH] avfilter/avf_concat: add next command

Liu Steven lq at chinaffmpeg.org
Wed Feb 28 16:50:15 EET 2018


> 在 2018年2月28日,下午4:10,Bodecs Bela <bodecsb at vivanet.hu> 写道:
> 
> ping

LGTM
> 
> 
> 2018.02.25. 17:07 keltezéssel, Bodecs Bela írta:
>> Dear All,
>> 
>> this patch makes it possible to dinamically close the current segment
>> and step to the next one by introducing command handling capabilities
>> into the filter. This new feature is very usefull when working with
>> real-time sources or live streams as source. Combinig usage with zmqsend
>> tool you can interactively end the current segment and step to next one.
>> 
>> it is very usefull in case of event streaming when sending an intro then a
>> live section and then an outro and you want to start and stop the live event manually.
>> 
>> example:
>> 
>> ffmpeg -re -i very_long_intro.mp4 -i <event_source> -re -i very_long_outro.mp4
>>     -filter_complex   '[0:v][0:a] [1:v][1:a] [2:v][2:a] concat=n=3:v=1:a=1 [v] [a];
>>                                   [v] zmq=b=tcp\\:\\/\\/127.0.0.1\\:5555  [v_out]'
>>     -map '[v_out]' -map '[a]'  <output>
>> 
>> When you you want to start the live event, issue in another window:
>> echo "Parsed_concat_0 next" | zmqsend  -b tcp://127.0.0.1:5555
>> 
>> When you want to end the live session:
>> echo "Parsed_concat_0 next" | zmqsend  -b tcp://127.0.0.1:5555
>> 
>> 
>> Please review this patch. Thank you in advance.
>> 
>> Bela Bodecs
>> 
>> 
>> 
>> 
>> _______________________________________________
>> ffmpeg-devel mailing list
>> ffmpeg-devel at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel





More information about the ffmpeg-devel mailing list