[FFmpeg-user] Unable to get correct decoded file
hardik.sharma22 at yahoo.com
Sat Apr 30 02:16:27 CEST 2011
I am a new bee with Ubuntu and ffmpeg both so please help me with this issue. I encoded the yuv video to h264 by following command-
ffmpeg -f rawvideo -r 30 -b 256k -s 352x288 -i silent_cif.yuv -vcodec libx264 -b 256k -s 352x288 -preset slow -f h264 -threads 0 silent264.h264
But I don't think I am getting correct encoded file as after decoding
back to yuv video, I am only getting 2 frames and that too wrong frames.
Command line for decoding-
ffmpeg -r 30 -b 256k -s 352x288 -i output.h264 -vcodec libx264 -b 256k
-s 352x288 -preset slow -f rawvideo -threads 0 slient.yuv
Please tell me my mistake in command line. I really appreciate your help. Thanks.
More information about the ffmpeg-user