0

这是我的命令:

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),以便我可以确定我目前可以实际使用哪些参数来进行预设和配置文件。我对这个问题感到非常沮丧,非常感谢你们的任何意见。提前致谢。

4

2 回答 2

0

我正在研究 FFmpeg 和 Libav(FFmpeg 的分支)当前可用的一组预设。FFmpeg 不再包含许多 libx264 预设文件(仅“ipod320”和“ipod640”)。Libav 为“baseline”和“main”指定预设,但不指定“high”。

这就解释了为什么“-vpre high”失败了。

我不完全确定哪里没有高调的预设。可能是开发人员不想为该配置文件的最佳编码实践做出假设。

于 2012-03-09T23:01:19.140 回答
0

我的在/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.
于 2012-03-09T22:44:10.427 回答