如何将FFmpeg输出传送到多个ffplay? [英] How to pipe the FFmpeg output to multiple ffplay?

查看:259
本文介绍了如何将FFmpeg输出传送到多个ffplay?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下命令将FFmpeg输出通过管道传输到2 ffplay,但它不起作用.

I use the following command to pipe the FFmpeg output to 2 ffplay , but it doesn't work.

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?

How can I pipe the FFmpeg output to 2 (or more) ffplay?

我看到了此页面,但是它不适用于ffplay. (适用于Linux,但我的操作系统是Windows)

I saw this page but it doesn't work for ffplay. (it is for Linux but my OS is windows)

请帮助我

谢谢

推荐答案

PowerShell中有某种Tee-Object(别名为tee),但是我不确定它是否与Linux上的相似.您可以尝试:

There's some kind of Tee-Object (alias tee) in PowerShell but I'm not sure if it's similar to the one on Linux. You can try:

ffmpeg -re -i [...] -f mpegts - | tee >(ffplay -) | ffplay -

另一种方法是输出到本地子网上的多播端口:

An alternative is to output to a multicast port on the local subnetwork:

ffmpeg -re -i [...] -f mpegts udp://224.0.0.1:10000

然后,您可以在同一地址/端口上连接任意数量的客户端:

You can then connect as many clients as you require on the same address/port:

ffplay udp://224.0.0.1:10000

这篇关于如何将FFmpeg输出传送到多个ffplay?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆