2 pass not working

Help
2010-04-26
2013-05-02
  • I just upgraded to VM 0.8 and I have an odd problem. Whenever I select one of the 2 pass options (Normal or High Quality), the encoding fails immediately. I've tried adjusting the quality and the number of threads used, but nothing seems to make a difference. If I use one of the other encoding options that isn't 2 pass, it seems to work. This is particularly strange since 0.8 works just fine on my laptop. It is only on my MacPro (both are running 10.6.3) that it doesn't work. Of course, 0.6 worked, but was crashy, so I'd like to get 0.8 working.

    Here is the console output:

    ============================================================================
    Begin transcode: Test.avi -> Test.mp4
        
         Command to execute:
             ffmpeg -threads 6 -y -i "/Users/cpa/Movies/Test.avi" -vcodec libx264 -b 443601.225 -s 320x240 -aspect 320:240 -r 14.985 -async 50 -acodec libfaac -ab 16000 -ar 11025 -ac 1 -vpre hq-pass1 -pass 1 -passlogfile "/tmp/0x23646620-tmppass.log" -bf 0 -coder 0 -flags2 -wpred-dct8x8 "/Users/cpa/Movies/Test.mp4"
        
         -> FFmpeg version SVN-r18075, Copyright (C) 2000-2009 Fabrice Bellard, et al.
         ->   configuration: -disable-ffplay -disable-ffserver -enable-gpl -enable-postproc -enable-avfilter -enable-avfilter-lavf -enable-libfaac -enable-libfaad -enable-libmp3lame -enable-libvorbis -enable-libtheora -enable-libx264 -enable-libxvid
         ->   libavutil     50. 0. 0 / 50. 0. 0
         ->   libavcodec    52.22. 0 / 52.22. 0
         ->   libavformat   52.32. 0 / 52.32. 0
         ->   libavdevice   52. 1. 0 / 52. 1. 0
         ->   libavfilter    0. 4. 0 /  0. 4. 0
         ->   libswscale     0. 7. 1 /  0. 7. 1
         ->   libpostproc   51. 2. 0 / 51. 2. 0
         ->   built on Mar 20 2009 07:27:34, gcc: 4.0.1 (Apple Inc. build 5493)
         -> Warning: not compiled with thread support, using thread emulation
         -> Seems stream 0 codec frame rate differs from container frame rate: 29.97 (30000/1001) -> 29.97 (2997/100)
         -> Input #0, avi, from '/Users/cpa/Movies/Test.avi':
         ->   Duration: 02:34:14.75, start: 0.000000, bitrate: 3329 kb/s
         ->     Stream #0.0: Video: mpeg4, yuv420p, 720x480 , 29.97 tbr, 29.97 tbn, 29.97 tbc
         ->     Stream #0.1: Audio: mp2, 48000 Hz, stereo, s16, 224 kb/s
         -> using SAR=1/1
         -> using cpu capabilities: MMX2 SSE2Fast SSSE3 PHADD SSE4.2
         -> ratecontrol_init: can't open stats file
         -> Output #0, mp4, to '/Users/cpa/Movies/Test.mp4':
         ->     Stream #0.0: Video: libx264, yuv420p, 320x240 , q=10-51, pass 1, 443 kb/s, 90k tbn, 14.99 tbc
         ->     Stream #0.1: Audio: libfaac, 11025 Hz, mono, s16, 16 kb/s
         -> Stream mapping:
         ->   Stream #0.0 -> #0.0
         ->   Stream #0.1 -> #0.1
         -> Error while opening codec for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
        
         Command to execute:
             ffmpeg -threads 6 -y -i "/Users/cpa/Movies/Test.avi" -vcodec libx264 -b 443601.225 -s 320x240 -aspect 320:240 -r 14.985 -async 50 -acodec libfaac -ab 16000 -ar 11025 -ac 1 -vpre hq -pass 2 -passlogfile "/tmp/0x23646620-tmppass.log" -bf 0 -coder 0 -flags2 -wpred-dct8x8 "/Users/cpa/Movies/Test.mp4"
        
         -> FFmpeg version SVN-r18075, Copyright (C) 2000-2009 Fabrice Bellard, et al.
         ->   configuration: -disable-ffplay -disable-ffserver -enable-gpl -enable-postproc -enable-avfilter -enable-avfilter-lavf -enable-libfaac -enable-libfaad -enable-libmp3lame -enable-libvorbis -enable-libtheora -enable-libx264 -enable-libxvid
         ->   libavutil     50. 0. 0 / 50. 0. 0
         ->   libavcodec    52.22. 0 / 52.22. 0
         ->   libavformat   52.32. 0 / 52.32. 0
         ->   libavdevice   52. 1. 0 / 52. 1. 0
         ->   libavfilter    0. 4. 0 /  0. 4. 0
         ->   libswscale     0. 7. 1 /  0. 7. 1
         ->   libpostproc   51. 2. 0 / 51. 2. 0
         ->   built on Mar 20 2009 07:27:34, gcc: 4.0.1 (Apple Inc. build 5493)
         -> Warning: not compiled with thread support, using thread emulation
         -> Seems stream 0 codec frame rate differs from container frame rate: 29.97 (30000/1001) -> 29.97 (2997/100)
         -> Input #0, avi, from '/Users/cpa/Movies/Test.avi':
         ->   Duration: 02:34:14.75, start: 0.000000, bitrate: 3329 kb/s
         ->     Stream #0.0: Video: mpeg4, yuv420p, 720x480 , 29.97 tbr, 29.97 tbn, 29.97 tbc
         ->     Stream #0.1: Audio: mp2, 48000 Hz, stereo, s16, 224 kb/s
         -> using SAR=1/1
         -> using cpu capabilities: MMX2 SSE2Fast SSSE3 PHADD SSE4.2
         -> ratecontrol_init: can't open stats file
         -> Output #0, mp4, to '/Users/cpa/Movies/Test.mp4':
         ->     Stream #0.0: Video: libx264 (hq), yuv420p, 320x240 , q=10-51, pass 2, 443 kb/s, 90k tbn, 14.99 tbc
         ->     Stream #0.1: Audio: libfaac, 11025 Hz, mono, s16, 16 kb/s
         -> Stream mapping:
         ->   Stream #0.0 -> #0.0
         ->   Stream #0.1 -> #0.1
         -> Error while opening codec for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
        
         Command to execute:
             AtomicParsley "/Users/cpa/Movies/Test.mp4" -W  -tracknum "" -albumArtist "" -copyright "" -stik "" -genre "" -TVSeasonNum "" -title "" -description "" -TVEpisode "" -advisory "" -TVEpisodeNum "" -TVNetwork "" -contentRating "" -year "" -disk "" -description "" -album "" -TVShowName "" -artist "" -encodingTool "" -comment "" -artwork REMOVE_ALL
        
    FAILED with error code: 1
         -> AtomicParsley error: bad mpeg4 file (ftyp atom missing or alignment error).