ffmpeg失败,原因:无法为“管道:"找到合适的输出格式 [英] ffmpeg fails with: Unable to find a suitable output format for 'pipe:'

查看:479
本文介绍了ffmpeg失败,原因:无法为“管道:"找到合适的输出格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图记录我的桌面并将其保存为视频,但是ffmpeg失败.

I am trying to record my desktop and save it as videos but ffmpeg fails.

这是终端输出:

$ ffmpeg -f alsa -i pulse -r 30 -s 1366x768 -f x11grab -i :0.0 -vcodec libx264 - preset ultrafast -crf 0 -y screencast.mp4
...
Unable to find a suitable output format for 'pipe:'

推荐答案

typo

使用-preset,而不是- preset(注意空格). ffmpeg使用-表示管道,因此您的错字被解释为管道输出.

typo

Use -preset, not - preset (notice the space). ffmpeg uses - to indicate a pipe, so your typo is being interpreted as a piped output.

对于遇到相同错误但实际上想通过管道输出的用户,您必须告诉ffmpeg管道应使用哪个混合器.

For users who get the same error, but actually want to output via a pipe, you have to tell ffmpeg which muxer the pipe should use.

使用-f输出选项执行此操作.示例:-f mpegts-f nut-f wav-f matroska.使用哪种格式取决于您的视频/音频格式和特定​​的用例.

Do this with the -f output option. Examples: -f mpegts, -f nut, -f wav, -f matroska. Which one to use depends on your video/audio formats and your particular use case.

您可以看到带有ffmpeg -muxers的多路复用器的列表(并非所有的多路复用器都可以与管道一起使用).

You can see a list of muxers with ffmpeg -muxers (not all muxers can be used with pipe).

这篇关于ffmpeg失败,原因:无法为“管道:"找到合适的输出格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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