[FFmpeg-user] Unexpected decoded video output

Hardik Sharma hardik.sharma22 at yahoo.com
Fri May 6 03:58:06 CEST 2011


I encoded raw yuv video to h.264 format and decoded it back to yuv format in ffmpeg. But while watching decoded yuv video I noticed that user can see that frames are moving vertically and it is unexpected video output as compared to original video.I encoded the yuv video using following command -
ffmpeg -y -s 720x480 -f rawvideo -r 30 -i akiyo_720x480.yuv -vcodec libx264 -y -b 256k -r 30 -preset fast  -g 10 -s 720x480 -coder 1 -flags +loop -cmp +chroma -f h264 -flags2 -fastpskip -trellis 1      -partitions +parti4x4+partp8x8+partb8x8+parti8x8+partp4x4 -chromaoffset 0 -b_qfactor 0.45 -flags2 +wpred -subq 8 -flags2 +mixed_refs -flags2 +dct8x8 -me_range 16 -me_method umh -keyint_min 10 -sc_threshold 40 -i_qfactor 0.71 -qcomp 0.5 -rc_eq 'blurCplx^(1-qComp)' -level 40 -bf 16 -bframebias 0 -b_strategy 2 -bidir_refine 1 -refs 6 -cqp 28 -qmin 8 -qmax 48 -deblockalpha 0 -deblockbeta 0 -threads 0 -an output_akiyo.264

and decoded using following command- 
ffmpeg -y -i output_akiyo.264 -vcodec rawvideo -f yuv4mpegpipe out264_new.y4m

I encoded same video with 2-pass too but getting same incorrect output. Let me know if I am missing or using some wrong parameter. I will really appreciate your help. Thanks.

Hardik Sharma     

More information about the ffmpeg-user mailing list