[FFmpeg-user] Error for pass2

Etienne Buira etienne.buira.lists at free.fr
Sat Jun 18 10:12:40 CEST 2011


On Sat, Jun 18, 2011 at 12:59:43AM -0700, Hardik Sharma wrote:
> Hi guys,
> 
> I am encoding raw video to .264 format. My 1st pass worked fine bt even after nt changing anything other then pass 2 command and putting output file name, it's not working. Let me know if I did any silly mistake.   
> 
> 
> ffmpeg -y -s 720x480 -b 256k -r 30 -pix_fmt yuv420p -f rawvideo -i akiyo_720x480.yuv -pass 2 -vcodec libx264 -y -b 256k -r 30 -preset fast -g 10 -s 720x480 -flags +loop -cmp +chroma -flags2 -fastpskip -partitions +parti4x4+partp8x8+partb8x8+parti8x8+partp4x4 -chromaoffset 0 -b_qfactor 0.45 -flags2 +wpred -subq 8 -flags2 +mixed_refs -flags2 +dct8x8 -me_range 32 -me_method umh -keyint_min 10 -sc_threshold 40 -trellis 2 -i_qfactor 0.71 -qcomp 0.5 -rc_eq 'blurCplx^(1-qComp)' -level 40 -b_strategy 1 -flags2 +bpyramid -bidir_refine 1 -refs 6 -cqp 28 -qmin 8 -qmax 48 -x264opts slice-max-size=100 -deinterlace -f h264 -mbd 1 -psnr -profile high -bf 1 -tune psnr -deblockalpha 0 -deblockbeta 0 -threads 0 out1.264
> ffmpeg version git-N-30805-g7a02527, Copyright (c) 2000-2011 the FFmpeg developers
>   built on Jun 16 2011 10:06:03 with gcc 4.4.5
>   configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab
>   libavutil    51.  8. 0 / 51.  8. 0
>   libavcodec   53.  7. 0 / 53.  7. 0
>   libavformat  53.  3. 1 / 53.  3. 1
>   libavdevice  53.  1. 1 / 53.  1. 1
>   libavfilter   2. 18. 0 /  2. 18. 0
>   libswscale    0. 14. 1 /  0. 14. 1
>   libpostproc  51.  2. 0 / 51.  2. 0
> [rawvideo @ 0xa5895e0] Estimating duration from bitrate, this may be inaccurate
> Input #0, rawvideo, from 'akiyo_720x480.yuv':
>   Duration: N/A, start: 0.000000, bitrate: N/A
>     Stream #0.0: Video: rawvideo, yuv420p, 720x480, 30 tbr, 30 tbn, 30 tbc
> [buffer @ 0xa585ae0] w:720 h:480 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:
> [libx264 @ 0xa587de0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
> [libx264 @ 0xa587de0] constant rate-factor is incompatible with 2pass.

Hi.

You set both bitrate (for which it is useful to do 2 pass) and constant
quantization (-cqp) (for which a second pass is not useful).
You have to choose what ratecontrol method you want.

> Output #0, h264, to 'out1.264':
>     Stream #0.0: Video: libx264 (hq), yuv420p, 720x480, q=8-48, pass 2, 256 kb/s, 90k tbn, 30 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
> 
> 
> Thanks,
> Hardik Sharma 
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user


More information about the ffmpeg-user mailing list