Answers for "convert mp4 with ffmpeg"


ffmpeg convert mov to mp4

ffmpeg -i -vcodec h264 -acodec mp2 my-video.mp4
Posted by: Guest on March-26-2020

how to convert video to mp4 with ffmpeg

ffmpeg -i input.webm -vsync vfr output.mp4
Posted by: Guest on July-08-2021

how to transcode a video in python using ffmpeg

ffmpeg -i input.mkv -c:a copy -s hd720 output.mkv
This modifies the video to 1280x720 in the output, but you can set the width and height manually if you want:

ffmpeg -i input.mkv -c:a copy -s 1280x720 output.mkv
This produces the exact same output as the earlier command. If you want to set custom sizes in FFmpeg, please remember that the width parameter (1280) comes before height (720).
Posted by: Guest on April-28-2020

Browse Popular Code Answers by Language