windows - 如何将 FFmpeg 输出通过管道传输到多个 ffplay?

标签 windows video ffmpeg pipe

我使用以下命令将 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/

相关文章:

windows - 在 Windows 7 64 位上使用 MinGW gcc/g++ 编译 openCV 2.3.1 程序

javascript - 为什么 Node.js(文件名)会导致 Windows 上的 Node.JS 出现问题?

python-3.x - 如何在 python 中使用 ffmpeg 压缩视频?

audio - 添加音频过滤器时保持原始格式,从原始文件中自动检测格式

Windows 10 通过鼠标悬停延迟激活窗口?

windows - RabbitMQ 控制台返回 431

iphone - 从 iOS 中的 ALAsset 检索到的 URL 播放视频

javascript - HTML5 视频 - 在特定时间开始播放视频并播放 x 时间

android - FFMpeg 文本动画

flash - AR 无人机 2 和 ffserver + ffmpeg 流