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 ....

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.

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@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to