Opened 5 years ago
Last modified 3 years ago
#8695 new enhancement
Keep ffmpeg running when using SRT as output and in listener mode
Reported by: | longkas | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | unspecified | Keywords: | |
Cc: | dubrsl | Blocked By: | |
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug:
Using SRT as the output and set SRT to listener mode, when the caller quits the ffmpeg quits also, it would be great if keep ffmpeg running and listening for new caller connections
How to reproduce:
% LISTENER: ffmpeg -re -i file.mp4 -c copy -f mpegts "srt://:8686?mode=listener&transtype=live" CALLER: ffmpeg -i "srt://:8686?mode=caller&transtype=live" -c copy -f mpegts file.ts #ffmpeg -version ffmpeg version N-97994-g83fa39e Copyright (c) 2000-2020 the FFmpeg developers built with gcc 9 (GCC) configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --extra-libs=-lpthread --extra-libs=-lm --bindir=/root/bin --enable-gpl --enable-libfdk_aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libx264 --enable-libx265 --enable-libsrt --enable-nonfree libavutil 56. 49.100 / 56. 49.100 libavcodec 58. 89.100 / 58. 89.100 libavformat 58. 43.100 / 58. 43.100 libavdevice 58. 9.103 / 58. 9.103 libavfilter 7. 83.100 / 7. 83.100 libswscale 5. 6.101 / 5. 6.101 libswresample 3. 6.100 / 3. 6.100 libpostproc 55. 6.100 / 55. 6.100
Note:
See TracTickets
for help on using tickets.
You can use fifo for solve it.
Example: