Hi,

 I'm trying to convert a series of jpegs to a movie, and I get an
error  (log below).
 I've done this earlier, without issues, for other jpegs, but for this
particular set, i get the error. I don't know how.

 I'm using the latest version of ffmpeg (I built it last week from git
sources), on ubuntu 8.04.
 I do not believe the errors about passlogfile and pixel format are
the relevant ones, because I've used an earlier version of ffmpeg
(which did understand everything) and it resulted in the same "failed
to converge" error..

 My images can be downloaded on:
http://www.compulated.info/ffmpegtest_images.zip (6 MB)

 Someone suggested to me to include "-bufsize 3600k" as parameter.
That did work for this particular set of images, but then it failed on
another set later on or earlier on, seemingly at random about which
set it would crash on..

 The error I get is (see pass 2):

 ubuntu@ip-10-244-10-134:~$ ffmpeg -i 7-%4d.jpg -t 1 -r 25 -b 4000k -f
 mpeg -vcodec mpeg2video -an -pass 1 -passlogfile pass.txt -y
 video_14.mpg 2>&1
 ffmpeg version git-Thu Jul 28 14:59:54 2011 +0200-956c901, Copyright
 (c) 2000-2011 the FFmpeg developers
  built on Jul 28 2011 15:55:33 with gcc 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
  configuration: --enable-gpl --enable-version3 --enable-nonfree
 --enable-postproc --enable-libfaac --enable-libopencore-amrnb
 --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora
 --enable-libvorbis --enable-libxvid --enable-x11grab --enable-pthreads
  libavutil    51. 11. 1 / 51. 11. 1
  libavcodec   53.  9. 0 / 53.  9. 0
  libavformat  53.  6. 0 / 53.  6. 0
  libavdevice  53.  2. 0 / 53.  2. 0
  libavfilter   2. 27. 3 /  2. 27. 3
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0
 Input #0, image2, from '7-%4d.jpg':
  Duration: 00:00:01.00, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: mjpeg, yuvj444p, 640x480 [SAR 1:1 DAR 4:3], 25
 fps, 25 tbr, 25 tbn, 25 tbc
 Unrecognized option 'passlogfile'
 Incompatible pixel format 'yuvj444p' for codec 'mpeg2video',
 auto-selecting format 'yuv420p'
 [buffer @ 0x8de0880] w:640 h:480 pixfmt:yuvj444p tb:1/1000000 sar:1/1
sws_param:
 [buffersink @ 0x8de6de0] auto-inserting filter 'auto-inserted scaler
 0' between the filter 'src' and the filter 'out'
 [scale @ 0x8de7160] w:640 h:480 fmt:yuvj444p -> w:640 h:480
 fmt:yuv420p flags:0x4
 [mpeg @ 0x8ddf500] VBV buffer size not set, muxing may fail
 Output #0, mpeg, to 'video_14.mpg':
  Metadata:
    encoder         : Lavf53.6.0
    Stream #0.0: Video: mpeg2video, yuv420p, 640x480 [SAR 1:1 DAR
 4:3], q=2-31, pass 1, 4000 kb/s, 90k tbn, 25 tbc
 Stream mapping:
  Stream #0.0 -> #0.0
 Press [q] to stop, [?] for help
 frame=   25 fps=  0 q=4.4 Lsize=     680kB time=00:00:00.96
 bitrate=5802.7kbits/s
 video:677kB audio:0kB global headers:0kB muxing overhead 0.481541%

 ubuntu@ip-10-244-10-134:~$ ffmpeg -i 7-%4d.jpg -t 1 -r 25 -b 4000k -f
 mpeg -vcodec mpeg2video -an -pass 2 -passlogfile pass.txt -y
 video_14.mpg 2>&1
 ffmpeg version git-Thu Jul 28 14:59:54 2011 +0200-956c901, Copyright
 (c) 2000-2011 the FFmpeg developers
  built on Jul 28 2011 15:55:33 with gcc 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
  configuration: --enable-gpl --enable-version3 --enable-nonfree
 --enable-postproc --enable-libfaac --enable-libopencore-amrnb
 --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora
 --enable-libvorbis --enable-libxvid --enable-x11grab --enable-pthreads
  libavutil    51. 11. 1 / 51. 11. 1
  libavcodec   53.  9. 0 / 53.  9. 0
  libavformat  53.  6. 0 / 53.  6. 0
  libavdevice  53.  2. 0 / 53.  2. 0
  libavfilter   2. 27. 3 /  2. 27. 3
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0
 Input #0, image2, from '7-%4d.jpg':
  Duration: 00:00:01.00, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: mjpeg, yuvj444p, 640x480 [SAR 1:1 DAR 4:3], 25
 fps, 25 tbr, 25 tbn, 25 tbc
 Unrecognized option 'passlogfile'
 Incompatible pixel format 'yuvj444p' for codec 'mpeg2video',
 auto-selecting format 'yuv420p'
 [buffer @ 0x8de0880] w:640 h:480 pixfmt:yuvj444p tb:1/1000000 sar:1/1
sws_param:
 [buffersink @ 0x8de6de0] auto-inserting filter 'auto-inserted scaler
 0' between the filter 'src' and the filter 'out'
 [scale @ 0x8de7160] w:640 h:480 fmt:yuvj444p -> w:640 h:480
 fmt:yuv420p flags:0x4
 [mpeg2video @ 0x8ddf9e0] [lavc rc] Error: 2pass curve failed to converge
 Output #0, mpeg, to 'video_14.mpg':
    Stream #0.0: Video: mpeg2video, yuv420p, 640x480 [SAR 1:1 DAR
 4:3], q=2-31, pass 2, 4000 kb/s, 90k tbn, 25 tbc
 Stream mapping:
  Stream #0.0 -> #0.0
 Error while opening encoder for output stream #0.0 - maybe incorrect
 parameters such as bit_rate, rate, width or height

 Can anyone help? I've searched google, but all errors of this kind
 were solved in 2006-2007 apparently, so it doesn't seem to be valid
 for me...

 Cheers,
  Tom
_______________________________________________
libav-tools mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-tools

Reply via email to