I would like to use ffmpeg to convert an mp4 to ‘low size’ mp4 …
I need an mp4 file with h263 video and aac audio (or some other settings supported by low cost mobile.) My main concern is that the video be playable on most devices.
What would be some possible ffmpeg commands to accomplish this?
Thanks in advance.
There are numerous ways to encode mp4 videos, and encoding them for mobile devices is even more complex. I’m not sure what you mean by “low cost mobile” do you mean low cost as in the device, or the bandwidth needed to play said video?
Either way, here a post to get you going: H.264 WEB VIDEO ENCODING TUTORIAL WITH FFMPEG
Examples
Here are some
ffmpegexamples from the post …Bitrates, scale and profiles …
From the examples there, some of the key things you might need to pay attention to are …
-b:v 500k-b:a 128kThose are bitrates of the video
vand audioa, the lower the number the lower the quality but also the better it might ‘play’ on a low end device.scale=-1:480That will scale the video down to a smaller size, see more info about that in the post)
-vprofile baselineThis seemly odd
baseline(or another appropriate profile parameter) can be important when encoding for certain lower-cost (e.g. Android) devices …