【问题标题】:How to pipe the FFmpeg output to multiple ffplay?如何将 FFmpeg 输出通过管道传输到多个 ffplay?
【发布时间】:2016-02-13 06:01:15
【问题描述】:

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

请帮帮我

谢谢

【问题讨论】:

    标签: windows video ffmpeg pipe


    【解决方案1】:

    PowerShell 中有某种 Tee-Object(别名 tee),但我不确定它是否与 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

    【讨论】:

    • 多播怎么样?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-03-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-10-26
    • 1970-01-01
    • 2017-01-18
    相关资源
    最近更新 更多