View Full Version : ffmpeg doubts
unnikrisb4u
30th July 2009, 14:52
Please help me encode raw yuv files to H264 with help of ffmpeg !!
I have used commands like :
ffmpeg -s 352x288 -qscale 3 -vcodec h264 -i bridge-close_cif.yuv out_bridge.h264
And I got the error as :
Unsupported codec for output stream :(
Is it because i missed some parameters in the ffmpeg commands or i build the ffmeg wrongly? :confused:
Can anyone help me out of this issue?
Thanks in Advance.
-vcodec libx264, and use a preset.
ffmpeg -s 352x288 -qscale 3 -vcodec h264 -i bridge-close_cif.yuv out_bridge.h264
In addition to tph's suggestions, don't use -qscale with x264. And it may be necessary to specify the correct framerate and pixel format for raw YUV input.
Here's an encoding guide: http://rob.opendot.cl/index.php/useful-stuff/ffmpeg-x264-encoding-guide/
However, using x264 CLI instead of ffmpeg would be easier when your input is already raw YV12 video.
Is it because i missed some parameters in the ffmpeg commands or i build the ffmeg wrongly? :confused:
You also need to make sure that ffmpeg gets built with libx264 support.
J_Darnley
30th July 2009, 16:10
When using ffmpeg, options go before the file they affect. I.e:
ffmpeg [input file options] -i in.file [output file options] out.file
unnikrisb4u
31st July 2009, 05:19
I'm installing the ffmpeg install with libx264 (h264).
Thanks for the support.
unnikrisb4u
31st July 2009, 05:39
Steps I followed :
1. I have downloaded and install libx264 package from videolan.org
2. Then I have install ffmpeg :
# ./configure --enable-libx264 --enable-gpl --enable-shared --disable-muxer=v4l --disable-demuxer=v4l
I have disabled v4l, since i got an error in v4l files.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.