[FFmpeg-user] Error while opening encoder....
Mike Kavanagh
mike.kavanagh at netpipe.biz
Mon Sep 24 14:31:49 CEST 2012
Hi
I believe this is a fairly basic problem I am having as I am just starting
with ffmpeg.
I am creating a video from a set of still images and have been getting an
image size problem which I have tried to solve with a '-vf pad' control
parameter. The pad values I have put in are designed to make the width
divisible by 2 as required and yet not mess up the aspect ratio.
Below I provide the report output with the three problem lines in bold - i
am running this on a PC with Windows Vista.
ffmpeg -vf "pad=1340x886" -i "%06d.jpg" -y movie.mp4 -r 1 -b:v 9600 -report
ffmpeg version N-44123-g5d55830 Copyright (c) 2000-2012 the FFmpeg
developers
built on Sep 2 2012 20:23:29 with gcc 4.7.1 (GCC)
configuration: --enable-gpl --enable-version3 --disable-pthreads
--enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r
--enable-libass --enable-libcelt --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libfreetype --enable-libgsm
--enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs
--enable-libxvid --enable-zlib
libavutil 51. 70.100 / 51. 70.100
libavcodec 54. 55.100 / 54. 55.100
libavformat 54. 25.104 / 54. 25.104
libavdevice 54. 2.100 / 54. 2.100
libavfilter 3. 15.102 / 3. 15.102
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[AVIOContext @ 0039dee0] Statistics: 221184 bytes read, 0 seeks
[mjpeg @ 03535ba0] marker=d8 avail_size_in_buf=221182
[mjpeg @ 03535ba0] marker parser used 0 bytes (0 bits)
[mjpeg @ 03535ba0] marker=e0 avail_size_in_buf=221180
[mjpeg @ 03535ba0] marker parser used 16 bytes (128 bits)
[mjpeg @ 03535ba0] marker=e1 avail_size_in_buf=221162
[mjpeg @ 03535ba0] marker parser used 6951 bytes (55608 bits)
[mjpeg @ 03535ba0] marker=ed avail_size_in_buf=214208
[mjpeg @ 03535ba0] marker parser used 7449 bytes (59592 bits)
[mjpeg @ 03535ba0] marker=e1 avail_size_in_buf=206756
[mjpeg @ 03535ba0] marker parser used 6259 bytes (50072 bits)
[mjpeg @ 03535ba0] marker=e2 avail_size_in_buf=200494
[mjpeg @ 03535ba0] marker parser used 3159 bytes (25272 bits)
[mjpeg @ 03535ba0] marker=ee avail_size_in_buf=197332
[mjpeg @ 03535ba0] marker parser used 14 bytes (112 bits)
[mjpeg @ 03535ba0] marker=db avail_size_in_buf=197316
[mjpeg @ 03535ba0] index=0
[mjpeg @ 03535ba0] qscale[0]: 4
[mjpeg @ 03535ba0] index=1
[mjpeg @ 03535ba0] qscale[1]: 5
[mjpeg @ 03535ba0] marker parser used 132 bytes (1056 bits)
[mjpeg @ 03535ba0] marker=c0 avail_size_in_buf=197182
[mjpeg @ 03535ba0] sof0: picture: 1339x886
[mjpeg @ 03535ba0] component 0 2:2 id: 0 quant:0
[mjpeg @ 03535ba0] component 1 1:1 id: 1 quant:1
[mjpeg @ 03535ba0] component 2 1:1 id: 2 quant:1
[mjpeg @ 03535ba0] pix fmt id 22111100
[mjpeg @ 03535ba0] marker parser used 17 bytes (136 bits)
[mjpeg @ 03535ba0] marker=dd avail_size_in_buf=197163
[mjpeg @ 03535ba0] restart interval: 84
[mjpeg @ 03535ba0] marker parser used 4 bytes (32 bits)
[mjpeg @ 03535ba0] marker=c4 avail_size_in_buf=197157
[mjpeg @ 03535ba0] class=0 index=0 nb_codes=12
[mjpeg @ 03535ba0] class=0 index=1 nb_codes=12
[mjpeg @ 03535ba0] class=1 index=0 nb_codes=251
[mjpeg @ 03535ba0] class=1 index=1 nb_codes=251
[mjpeg @ 03535ba0] marker parser used 418 bytes (3344 bits)
[mjpeg @ 03535ba0] escaping removed 1186 bytes
[mjpeg @ 03535ba0] marker=da avail_size_in_buf=196737
[mjpeg @ 03535ba0] component: 0
[mjpeg @ 03535ba0] component: 1
[mjpeg @ 03535ba0] component: 2
[mjpeg @ 03535ba0] overread 8
[mjpeg @ 03535ba0] marker parser used 195552 bytes (1564416 bits)
[mjpeg @ 03535ba0] decode frame unused 0 bytes
[AVIOContext @ 0039fa80] Statistics: 221184 bytes read, 0 seeks
[AVIOContext @ 0039fb00] Statistics: 221184 bytes read, 0 seeks
[AVIOContext @ 0039fb80] Statistics: 147456 bytes read, 0 seeks
[AVIOContext @ 0039fc00] Statistics: 147456 bytes read, 0 seeks
[AVIOContext @ 0039fc80] Statistics: 147456 bytes read, 0 seeks
[AVIOContext @ 0039fd00] Statistics: 180224 bytes read, 0 seeks
[AVIOContext @ 0039fd80] Statistics: 180224 bytes read, 0 seeks
[AVIOContext @ 0039fe00] Statistics: 180224 bytes read, 0 seeks
Input #0, image2, from '%06d.jpg':
Duration: 00:00:00.36, start: 0.000000, bitrate: N/A
Stream #0:0, 9, 1/25: Video: mjpeg, yuvj420p, 1339x886 [SAR 200:200 DAR
1339:886], 25 fps, 25 tbr, 25 tbn, 25 tbc
[buffer @ 0039e060] Setting entry with key 'video_size' to value '1339x886'
[buffer @ 0039e060] Setting entry with key 'pix_fmt' to value '12'
[buffer @ 0039e060] Setting entry with key 'time_base' to value '1/25'
[buffer @ 0039e060] Setting entry with key 'pixel_aspect' to value '200/200'
[buffer @ 0039e060] Setting entry with key 'sws_param' to value 'flags=2'
[buffer @ 0039e060] Setting entry with key 'frame_rate' to value '25/1'
[graph 0 input from stream 0:0 @ 0039dfa0] w:1339 h:886 pixfmt:yuvj420p
tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2
[libx264 @ 03603520] width not divisible by 2 (1339x886)
Output #0, mp4, to 'movie.mp4':
Stream #0:0, 0, 1/90000: Video: h264, yuvj420p, 1339x886 [SAR 1:1 DAR
1339:886], q=-1--1, 90k tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg -> libx264)
Error while opening encoder for output stream #0:0 - maybe incorrect
parameters such as bit_rate, rate, width or height
Thanks for your help in advance.
-Mike
More information about the ffmpeg-user
mailing list