[FFmpeg-user] multiple outputs to different processes
Dragan Randjelovic
logicomyu at gmail.com
Mon Jul 23 11:24:25 EEST 2018
the following works with a note that piping takes precedence irregardless
of a named pipe position in the tee muxer command
in other words if there is a connection on port 9000 all 3 streams will be
delivered:
-f tee
"[f=mpegts]pipe:1|[f=mpegts]udp://ip_address:10000|[f=rtp_mpegts]rtp://ip_address:11000"
| nc64 -L -p 9000
interestingly, if [f=mpegts:onfail=ignore]pipe:1| is used, doesn't change
the behavior. It is good if that is desired.
However, I am now thinking of an intermediate tee:
something like -f tee
"[f=mpegts]pipe:1|[f=mpegts]udp://ip_address:10000|[f=rtp_mpegts]rtp://ip_address:11000"
| tee > (nc64 -L -p 9000 )
but I still have no test results, which I will report offcourse.
Regards.
On Sat, Jul 21, 2018 at 12:35 AM, Dragan Randjelovic <logicomyu at gmail.com>
wrote:
> I am using ffmpeg on Windows, [ffmpeg version N-91217-g2bd24d4a37]
>
> 1. How can I pipe output of ffmpeg without saving it to a file to three
> different processes?
>
> 2. Is it possible to use encoded stream with different muxers ex. -f
> mpegts > udp and -f rtp_mpegts > rtp
> and pipe first stram to process one, and seccond stream to process two ?
>
> I would hereby ask for help with the syntax please.
>
> I found similar article here:
> https://unix.stackexchange.com/questions/162870/how-to-
> pipe-a-command-output-to-multiple-programs
>
> Kind Regards.
>
More information about the ffmpeg-user
mailing list