Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to bring down disk space of my file-sharing website suggest me an audio codec and video codec which works with FFMPEG and can reduce file size with little or no loss in quality . Thanks.

share|improve this question

migrated from stackoverflow.com Jun 7 '11 at 6:22

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 1 down vote accepted

H264 compressed video with aac audio is a commonly used combination, however you should be aware that recompressing any media file will always yield to a loose of quality, regardless of the codecs being used.

Here is a post on how to generate such a media file with ffmpeg. An example from that page says:

Two-Pass encode using the fast preset. Two-pass encoding is usually used when you want a specific output file size:

ffmpeg -i input -pass 1 -vcodec libx264 -preset fast -b 512k -threads 0 \
    -f mp4 -an -y /dev/null && ffmpeg -i input.avi -pass 2 -acodec libfaac -ab 128k \
    -ac 2 -vcodec libx264 -preset fast -b 512k -threads 0 output.mp4
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.