Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Compression Techniques MPEG4 to H.264 conversion

  • Michael Rampe

    March 18, 2010 at 7:37 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.

  • Nayan Kapadia

    March 19, 2010 at 3:05 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

  • Michael Rampe

    March 19, 2010 at 4:15 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?

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy