[FFmpeg-devel] [PATCH 0/3] Patch set to delay output live stream

Tao Zhang nowerzt at gmail.com
Wed Apr 29 22:25:15 EEST 2020


Marton Balint <cus at passwd.hu> 于2020年4月30日周四 上午12:03写道:
>
>
>
> On Wed, 29 Apr 2020, leozhang wrote:
>
> > In some applications, it is required to add delay to live streaming.
>
> In what applications? And if you do this, why not run
>
> sleep 20; ffmpeg ....
In live streaming applications, someone wouldn't want broadcast what's
comming next immediately.
Sleep 20 then ffmpeg is not ok, because the stream is still
broadcasting immediately, and lost 20 seconds signal.
>
> I don't see how this is useful at all.
>
> And what is -paced? What it is used for? Isn't it the same as using ffmpeg
> -re? You really should better explain your use case.
-re read the input, -paced write the output.
>
> Regards,
> Marton
>
> > For example, you can add 20 seconds to rtmp stream with below command:
> > ffmpeg -i your_input_stream_address -c copy -map 0:a -map 0:v -f fifo -paced 1 -queue_size 6000000
> > -output_delay 20000000 -fifo_format flv rtmp://example.com/live/delayed_stream_name
> >
> > leozhang (3):
> >  avformat/fifo: add option to delay output
> >  avformat/fifo: add option to write packets in paced way
> >  doc/muxers: add command example how to delay output live stream
> >
> > doc/muxers.texi    | 17 +++++++++++++++++
> > libavformat/fifo.c | 26 ++++++++++++++++++++++++++
> > 2 files changed, 43 insertions(+)
> >
> > --
> > 1.8.3.1
> >
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel at ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list