2012-03-08 5 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のmanページから、 "high"も有効な引数であることが明らかです。私はまた、これらのプリセットファイルがファイルシステム(私はubuntu 11.10を実行しています)にどこにあるのか知っていますので、実際にプリセットとプロファイルに使用できる引数を確認することができます。私はこの問題に非常に不満を持ち、皆さんの意見を本当に感謝しています。前もって感謝します。

+0

あなたはリポジトリからffmpegを使用していますか、それともあなた自身でコンパイルしましたか? – LordNeckbeard

答えて

0

鉱山は/usr/local/share/ffmpeg/です。

manページから:

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」が失敗する理由を説明しています。

ハイプロファイルのプリセットがないところは完全にはわかりません。開発者は、そのプロファイルの最良のエンコーディングの習慣について仮定したくないかもしれません。