我使用以下命令将 FFmpeg 输出通过管道传输到 2 ffplay ,但它不起作用。
ffmpeg -ss 5 -t 10 -i input.avi -force_key_frames 00:00:00.000 -tune zerolatency -s 1920x1080 -r 25 -f mpegts output.ts -f avi -vcodec copy -an - | ffplay -i - -f mpeg2video - | ffplay -i -
如何将 FFmpeg 输出通过管道传输到 2 个(或更多)ffplay?
我看到了this page但它不适用于ffplay。 (它适用于 Linux,但我的操作系统是 windows)
请帮我
谢谢
最佳答案
有某种Tee-Object
(别名 tee
)在 PowerShell 中,但我不确定它是否与 Linux 上的类似。你可以试试:ffmpeg -re -i [...] -f mpegts - | tee >(ffplay -) | ffplay -
另一种方法是输出到本地子网上的多播端口:ffmpeg -re -i [...] -f mpegts udp://224.0.0.1:10000
然后,您可以在同一地址/端口上连接任意数量的客户端:ffplay udp://224.0.0.1:10000
关于windows - 如何将 FFmpeg 输出通过管道传输到多个 ffplay?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33662523/