[FFmpeg-user] Problem in encoding yuv raw video file to h.264

sean darcy seandarcy2 at gmail.com
Fri Apr 29 04:24:13 CEST 2011


On 04/28/2011 09:09 PM, Hardik Sharma wrote:
>
> Thanks James for your reply but even after putting frame rate and frame size and other information, I am getting same error as follows-
>
> ffmpeg -i silent_cif.yuv -f yuv420p -acodec libfaac -r 30 -s 352x288 -vcodec libx264 -g 10 -b 256k -s 352x288 -preset slow -threads 0 output.mp4
> FFmpeg version git-N-29265-g3eb15d9, Copyright (c) 2000-2011 the FFmpeg developers
>    built on Apr 21 2011 11:44:48 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.  0. 0 / 51.  0. 0
>    libavcodec   53.  0. 0 / 53.  0. 0
>    libavformat  53.  0. 0 / 53.  0. 0
>    libavdevice  53.  0. 0 / 53.  0. 0
>    libavfilter   2.  0. 0 /  2.  0. 0
>    libswscale    0. 13. 0 /  0. 13. 0
>    libpostproc  51.  2. 0 / 51.  2. 0
> [IMGUTILS @ 0xbff4f234] Picture size 0x0 is invalid
> [IMGUTILS @ 0xbff4f134] Picture size 0x0 is invalid
> [rawvideo @ 0xa001bb0] Could not find codec parameters (Video: rawvideo, yuv420p)
> [rawvideo @ 0xa001bb0] Estimating duration from bitrate, this may be inaccurate
> silent_cif.yuv: could not find codec parameters
>
> What kind of more codec parameters and picture size I should put over here. I am getting same error after putting different other parameters. I really appreciate any kind of help as I am trying to encode one yuv video sequence from long time but didn't get success. Thanks in advance.
>
> Regards,
> Hardik Sharma
>
> --- On Thu, 28/4/11, Hardik Sharma<hardik.sharma22 at yahoo.com>  wrote:
>
> From: Hardik Sharma<hardik.sharma22 at yahoo.com>
> Subject: Problem in encoding yuv raw video file to h.264
> To: ffmpeg-user at ffmpeg.org
> Date: Thursday, 28 April, 2011, 2:09 AM
>
> Hi,
> I am trying to encode yuv video file to h.264 on ubuntu 10.10 but unable to get it done. My input video is silent.yuv cif format. I am using following commands and getting following errors-
> $ffmpeg -i silent_cif.yuv -acodec libfaac -aq 100 -vcodec libx264 -b 256k -preset
>   slow -crf 22 -threads 0 output.mp4FFmpeg version git-N-29265-g3eb15d9, Copyright (c) 2000-2011 the FFmpeg developers
>    built on Apr 21 2011 11:44:48 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.  0. 0 / 51.  0. 0
>    libavcodec   53.  0. 0 / 53.  0. 0
>    libavformat  53.  0. 0 / 53.  0. 0
>    libavdevice  53.  0. 0 / 53.  0. 0
>    libavfilter   2.  0. 0 /  2.  0. 0
>    libswscale    0. 13. 0 /  0. 13. 0
>    libpostproc  51.  2. 0 / 51.  2. 0
> [IMGUTILS @ 0xbfa66b94] Picture size 0x0 is invalid
> [IMGUTILS @
>   0xbfa66a94] Picture size 0x0 is invalid
> [rawvideo @ 0x9e8dbb0] Could not find codec parameters (Video: rawvideo, yuv420p)
> [rawvideo @ 0x9e8dbb0] Estimating duration from bitrate, this may be inaccurate
>
> Please help me with this issue.
>
> Thanks,
> Hardik Sharma

One obvious issue is that any description of the input stream has to 
come before the input!

ffmpeg <input options/description> -i input ......

sean



More information about the ffmpeg-user mailing list