Activity › Forums › Compression Techniques › MPEG4 to H.264 conversion
-
MPEG4 to H.264 conversion
Posted by Nayan Kapadia on March 18, 2010 at 11:13 amHi,
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,
NBKMichael Rampe replied 16 years, 2 months ago 2 Members · 3 Replies -
3 Replies
-
Michael Rampe
March 18, 2010 at 7:37 pmffmpeg -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.
-
Nayan Kapadia
March 19, 2010 at 3:05 amThank 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 -
Michael Rampe
March 19, 2010 at 4:15 amNot 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?
Reply to this Discussion! Login or Sign Up