Re: [FFmpeg-user] multiple srt outputs with tee

2022-10-17 Thread Carl Eugen Hoyos


> Am 17.10.2022 um 22:52 schrieb i...@mbsoft.biz:
> 
> I would use the tee filter to output 3 srt streams.


> 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/"

Please look again at the examples:
http://ffmpeg.org/ffmpeg-formats.html#Examples-12
You appear to use too many dashes.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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


[FFmpeg-user] multiple srt outputs with tee

2022-10-17 Thread info
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 @ 01e0037ab5c0] Unable to find a suitable output format for
'srt://0.0.0.0:9866?pkt_size=1316&mode=listener/'
[tee @ 01e002137280] Slave muxer #0 failed: Invalid argument, continuing
with 2/3 slaves.
[NULL @ 01e004196680] Unable to find a suitable output format for
'srt://0.0.0.0:9867?pkt_size=1316&mode=listener/'
[tee @ 01e002137280] Slave muxer #1 failed: Invalid argument, continuing
with 1/3 slaves.
[NULL @ 01e004195e40] Unable to find a suitable output format for
'srt://0.0.0.0:9868?pkt_size=1316&mode=listener/'
[tee @ 01e002137280] 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?





___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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