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

私のは です/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 に答える
0

FFmpeg と Libav (FFmpeg のフォーク) の両方で現在利用可能なプリセットのセットを研究しています。FFmpeg には多くの libx264 プリセット ファイルが含まれなくなりました (「ipod320」と「ipod640」のみ)。Libav は 'baseline' と 'main' のプリセットを指定しますが、'high' は指定しません。

これで、'-vpre high' が失敗する理由が説明できます。

有名なプリセットがどこにないのか完全にはわかりません。開発者が、そのプロファイルのベスト エンコーディング プラクティスについて推測したくなかった可能性があります。

于 2012-03-09T23:01:19.140 に答える