[FFmpeg-user] getting error while encoding yuv raw video
Mark Himsley
mark at mdsh.com
Thu Jun 16 22:07:50 CEST 2011
On 16/06/2011 20:49, Hardik Sharma wrote:
> 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
[...]
> [rawvideo @ 0x92203a0] Pixel format was not specified and cannot be detected
You need to tell FFmpeg the pixel format of the input video file.
Add the appropriate -pix_fmt parameter before -i with the -r and -f.
--
Mark
More information about the ffmpeg-user
mailing list