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

Message ID 1588166662-74153-1-git-send-email-leozhang@qiyi.com
Headers show


leozhang April 29, 2020, 1:24 p.m. UTC
In some applications, it is required to add delay to live streaming.
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(+)