[FFmpeg-user] getting error while encoding yuv raw video

Hardik Sharma hardik.sharma22 at yahoo.com
Thu Jun 16 21:49:28 CEST 2011


Hi guys,

I am getting error while doing encoding of yuv video to h264 format. Please suggest any changes for the following command but I was using the same command previously and it was working fine. I updated ffmpeg recently I am not sure if that affected it. Command and error is as following- 


ffmpeg$ ffmpeg -y -s 720x480 -b 256k -r 30 -f rawvideo -i akiyo_720x480.yuv -pass 1 -vcodec libx264 -y -b 256k -r 30 -preset fast -g 10 -s 720x480 -coder 1 -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 16 -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 -bf 16 -b_strategy 1 -flags2 +bpyramid -bidir_refine 1 -refs 6 -cqp 28 -qmin 8 -qmax 48 - f -deblockalpha 0 -f h264 -deblockbeta 0 -threads 0  output.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 @ 0x92203a0] Pixel format was not specified and cannot be detected
[rawvideo @ 0x92165e0] Could not find codec parameters (Video: rawvideo, 720x480)
[rawvideo @ 0x92165e0] Estimating duration from bitrate, this may be inaccurate
akiyo_720x480.yuv: could not find codec parameters


More information about the ffmpeg-user mailing list