2014-06-14 11 views
-1

ffmpeg 설명서의 image2 demuxer에서 JPEG 그림 세트로 MKV 파일을 만드는 것이 간단 해 보입니다.ffmpeg : image2 demuxer를 사용하는 중 오류

하지만 실행하면

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로 실행하면 일부 파일을 열려고 시도하지 않으므로 확실하게 뭔가를 놓친다.

답변

1

왜 다른 파일에 --disable-protocols을 추가 했습니까? 파일 입력은 protocol으로 간주됩니다. 프로토콜 지원이 없으면 파일을 입력하거나 출력 할 수 없습니다.

보다 유용한 구성으로 ffmpeg을 다시 컴파일해야합니다. 추가 도움이 필요하면 How to Compile FFmpeg on Ubuntu, Debian, and Mint을 보거나 FFmpeg Download 페이지에서 빌드를 얻을 수 있습니다.

+0

더 작은 라이브러리를 얻기 위해 필요하지 않은 것들을 비활성화합니다. 그러나 비활성화 된 프로토콜에 의해 로컬 파일 지원이 비활성화되었음을 알지 못했습니다. 감사 ! – mpromonet