gpt4 book ai didi

ffmpeg - 使用带有 libx264 的 ffmpeg 时无法将配置文件设置为高

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

这是我的命令:

ffmpeg -i input.avi -vcodec libx264 -vpre fast -vpre high -acodec copy output.avi

输出:
Input #0, avi, from 'short.avi':
Metadata:
encoder : Lavf53.3.0
Duration: 00:00:25.04, start: 0.000000, bitrate: 12705 kb/s
Stream #0.0: Video: msmpeg4v2, yuv420p, 1920x1080, 24 tbr, 24 tbn, 24 tbc
Stream #0.1: Audio: aac, 48000 Hz, 5.1, s16, 316 kb/s
Metadata:
title : ED-CM-5.1-DVD-Final2
File for preset 'high' not found

但是,在将配置文件设置为基线或主时,我能够成功地对文件进行转码,从 x264 的手册页中可以清楚地看出“高”也应该是一个有效的参数。我还想知道这些预设文件在文件系统中的位置(我正在运行 ubuntu 11.10),以便我可以确定我目前可以实际使用哪些参数来进行预设和配置文件。我对这个问题感到非常沮丧,非常感谢你们的任何意见。提前致谢。

最佳答案

我的在 /usr/local/share/ffmpeg/ .

从手册页:

The argument passed to the "vpre", "apre", and "spre" preset options
identifies the preset file to use according to the following rules:

First ffmpeg searches for a file named arg.ffpreset in the directories
$FFMPEG_DATADIR (if set), and $HOME/.ffmpeg, and in the datadir defined
at configuration time (usually PREFIX/share/ffmpeg) or in a ffpresets
folder along the executable on win32, in that order. For example, if
the argument is "libx264-max", it will search for the file
libx264-max.ffpreset.

If no such file is found, then ffmpeg will search for a file named
codec_name-arg.ffpreset in the above-mentioned directories, where
codec_name is the name of the codec to which the preset file options
will be applied. For example, if you select the video codec with
"-vcodec libx264" and use "-vpre max", then it will search for the file
libx264-max.ffpreset.

关于ffmpeg - 使用带有 libx264 的 ffmpeg 时无法将配置文件设置为高,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9625940/

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