[FFmpeg-user] multiple srt outputs with tee
info at mbsoft.biz
info at mbsoft.biz
Mon Oct 17 23:52:35 EEST 2022
I would use the tee filter to output 3 srt streams.
This single output command line works perfect:
ffmpeg.exe -report -f gdigrab -framerate 25 -offset_x 1063 -offset_y 147
-video_size 854x480 -draw_mouse 0 -show_region 0 -i desktop -filter:v
"scale=-2:720" -vcodec libx264 -x264-params
"nal-hrd=cbr:force-cfr=1:keyint=250" -preset medium -profile high -pix_fmt
yuv420p -tune zerolatency -b:v 1000k -bufsize 1200k -f mpegts
"srt://0.0.0.0:9866?pkt_size=1316&mode=listener"
but when I use:
ffmpeg.exe -report -f gdigrab -framerate 25 -offset_x 1063 -offset_y 147
-video_size 854x480 -draw_mouse 0 -show_region 0 -i desktop -filter:v
"scale=-2:720" -vcodec libx264 -x264-params
"nal-hrd=cbr:force-cfr=1:keyint=250" -preset medium -profile high -pix_fmt
yuv420p -tune zerolatency -b:v 1000k -bufsize 1200k -f tee -map 0:v
"[-f=mpegts]srt://0.0.0.0:9866?pkt_size=1316&mode=listener/|[-f=mpegts]srt:/
/0.0.0.0:9867?pkt_size=1316&mode=listener/|[-f=mpegts]srt://0.0.0.0:9868?pkt
_size=1316&mode=listener/"
but I get
[NULL @ 000001e0037ab5c0] Unable to find a suitable output format for
'srt://0.0.0.0:9866?pkt_size=1316&mode=listener/'
[tee @ 000001e002137280] Slave muxer #0 failed: Invalid argument, continuing
with 2/3 slaves.
[NULL @ 000001e004196680] Unable to find a suitable output format for
'srt://0.0.0.0:9867?pkt_size=1316&mode=listener/'
[tee @ 000001e002137280] Slave muxer #1 failed: Invalid argument, continuing
with 1/3 slaves.
[NULL @ 000001e004195e40] Unable to find a suitable output format for
'srt://0.0.0.0:9868?pkt_size=1316&mode=listener/'
[tee @ 000001e002137280] All tee outputs failed.
Could not write header for output file #0 (incorrect codec parameters ?):
Invalid argument
Error initializing output stream 0:0 --
Can someone help me?
More information about the ffmpeg-user
mailing list