9
6
On a Ubuntu 10.04, I am trying to encode a raw video (YUV format) to a H.264 encoded video using below ffmpeg commands:
ffmpeg -i input.mp4 output.h264
but I get an error saying
Unsupported codec for output stream #0.0
Then when I try this option:
ffmpeg -i input.mp4 -formats h264 output.h264
it still does not encode.
Now I understood that ffmpeg uses libx264 for encoding to H.264 format. Now I have the package x264 - fast H.264 encoder installed on this Ubuntu.
My questions:
- Is there any relation between this libx264 which ffmpeg needs and x264 program?
- How do I install libx264 and make ffmpeg use this to allow me to encode a video to H.264 format?
What about your previous question, wasn't that solved? ffmpeg usage to encode a video to H264 codec format
– slhck – 2011-08-12T13:25:07.840@slhck - Thanks but, When I used:- ffmpeg -s 352x240 -i 352x240_420.yuv -vcodec libx264 out.mp4. It gave error - "Unknown encoder 'libx264'". Any further pointers. Is libx264 same as x264 library or something other. – goldenmean – 2011-08-12T15:44:50.547
Regarding compiling ffmpeg and x264 on Linux, see here: http://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide
– slhck – 2013-09-03T15:43:09.353