Question

I have a lot of MP4 files on my server. And my aim is to get them to stream on android mobiles.

The resolution of the videos are at 480×272 and this is not a problem because I tested it and most androids are able to stream it. But the problem is the size of the video. The streaming is slow and it buffers a lot because of its size.

I need a converter that can decrease the size to around 50-60MB. With only a little decrease in quality. If possible, the output file should overwrite the input file.

Can you think of any way I can do this work in minimum time? My server is CENTOS and I have FFMPEG, MP4Box installed.

Was it helpful?

Solution

There are quite a few approaches to this issue. A quick one would be to change the video size by setting the video bit-rate:

ffmpeg -i input.mp4 -b:v 768k -acodec copy output.mp4

Alternatively, for h264 you can specify the output quality, e.g. using -qp or -crf options, that would change the video size accordingly. See x264 FFmpeg Options Guide for details.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top