gpt4 book ai didi

ffmpeg - 使用 FFMPEG 从 MXF 转码到 mp4 时出错

转载 作者:行者123 更新时间:2023-12-04 23:17:32 28 4
gpt4 key购买 nike

我在命令行中使用 FFmpeg 0.6.3 在 Windows Server 2008 中将文件从一种格式转码为另一种格式。但是当我尝试将 mxf 文件转换为 mp4 格式时。我收到以下错误消息

ffmpeg error while opening encoder for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height

用于转码的 ffmpeg 命令
ffmpeg -y -i "inputfile.mxf"-t 30 -s 640x360 output.mp4 -t 30 -s 1280x720 output2.mp4

最佳答案

我使用下面的命令来转换一些 mxf 文件。希望这些对您有所帮助。

1]. ffmpeg -i input.mxf -vcodec libx264 output.mp4

上面的一个代码经过测试,它给出了 h264 编解码器的 output.mp4。

您也可以尝试一些其他命令
==> ffmpeg input.mxf -vcodec libx264 -sameq output.mp4
or
==> ffmpeg -i input.mxf -acodec libfaac -ab 128k -ar -sameq -s 704x400 -r 20 -vcodec libx264 -b 256000 -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method umh -subq 5 -trellis 1 -refs 2 -bf 1 -coder 1 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 256000 -maxrate 4M -bufsize 4M -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 21 output.mp4

希望对你有帮助 :)

PS :- 我已按照此页面将 ffmpeg 安装到我的 ubuntu 10.4。如果出现 libx264 等错误,请安装其他软件包

https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuideLucid

关于ffmpeg - 使用 FFMPEG 从 MXF 转码到 mp4 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12819166/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com