2012-03-08 36 views
0

這裏的ffmpeg時設置配置文件以高是我的命令:不能使用帶有libx264

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),以便確保當前可以使用哪些參數實際用於預設和配置文件。我對這個問題非常沮喪,並且非常感謝你們的任何意見。提前致謝。

+0

你是從庫中使用ffmpeg還是自己編譯它? – LordNeckbeard 2012-03-09 00:43:31

回答

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. 
0

我在學習這一套目前市面上有兩種FFmpeg的和Libav(FFmpeg的叉)預設。 FFmpeg不再包含許多libx264預設文件(僅限'ipod320'和'ipod640')。 Libav指定'baseline'和'main'的預設,但不是'high'。

這就解釋了爲什麼'-vpre high'失敗。

我不完全確定哪裏沒有高調預設。可能是因爲開發人員不想對該配置文件的最佳編碼做法做出假設。