-1

ffmpeg ドキュメントのimage2 demuxerから、一連の JPEG 画像から MKV ファイルを作成するのは簡単に思えます。

しかし、私が実行すると:

ffmpeg -v debug -i 'img-%03d.jpeg' out.mkv 

失敗し、次のように報告されます。

ffmpeg version 2.1.3 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun 14 2014 17:40:58 with gcc 4.8 (Debian 4.8.2-15)
  configuration: --prefix=/media/DOWNLOAD/ip7000_new/.build/i486-linux-gnu/libroot --enable-static --disable-shared --disable-asm --disable-doc --disable-devices --disable-network --disable-bsfs --disable-protocols --disable-yasm --enable-pic
  libavutil      52. 48.101 / 52. 48.101
  libavcodec     55. 39.101 / 55. 39.101
  libavformat    55. 19.104 / 55. 19.104
  libavdevice    55.  5.100 / 55.  5.100
  libavfilter     3. 90.100 /  3. 90.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.
Reading option '-i' ... matched as input file with argument 'img-%03d.jpeg'.
Reading option 'out.mkv' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file img-%03d.jpeg.
Successfully parsed a group of options.
Opening an input file: img-%03d.jpeg.
No URL Protocols are registered. Missing call to av_register_all()?
    Last message repeated 4 times
[image2 @ 0xa7d0ce0] Could find no file with path 'img-%03d.jpeg' and index in the range 0-4
img-%03d.jpeg: No such file or directory

ffmpeg の異なるリリースで試しましたが、動作は同じです。strace で実行しても、いくつかのファイルを開こうとしても表示されないので、確かに何かが欠けています...

4

1 に答える 1

1

なぜ--disable-protocols(特に)追加したのですか?ファイル入力はプロトコルと見なされます。プロトコルのサポートがないと、ファイルを入力または出力できません。

ffmpegより使いやすい構成で再コンパイルする必要があります。追加のヘルプが必要な場合は、Ubuntu、Debian、および Mint で FFmpeg をコンパイルする方法を参照してください。または、単にFFmpeg ダウンロードページからビルドを入手することもできます。

于 2014-06-14T19:37:46.673 に答える