FORUMS: list search recent posts

MPEG4 to H.264 conversion

COW Forums : FFmpeg

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
nayan kapadia
MPEG4 to H.264 conversion
on Mar 18, 2010 at 11:13:28 am

Hi,

I want to convert MPEG4(part 2) file into H.264 video file. Can someone has any idea/ sample code to do this.

thank you,
NBK


Return to posts index

Michael Rampe
Re: MPEG4 to H.264 conversion
on Mar 18, 2010 at 7:37:05 pm

ffmpeg -i input.mp4 -vcodec libx264 -vpre libx264-hq -b 1500k output.mp4

This will create a H.264 stream in a mp4 wrapper at 1500 kbps. It will be at the original image size as -s was not specified.

You will need libx264 installed and enabled for this line to work. libx264 produces H.264 streams and is highly recommended.


Return to posts index

nayan kapadia
Re: MPEG4 to H.264 conversion
on Mar 19, 2010 at 3:05:38 am

Thank you for your reply. I want to do MP4 to H.264 conversion using C program in ffmpeg. Do you have any idea/sample code for that?

Thank you,
Nayan Kapadia


Return to posts index


Michael Rampe
Re: MPEG4 to H.264 conversion
on Mar 19, 2010 at 4:15:38 am

Not too sure about what you mean by "C program".

Do you mean writing a program in C++ that uses ffmpeg or simply running ffmpeg in the command line?


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]