ffmpeg - h264 to xvid creates large file
Posted
by
fatnic
on Super User
See other posts from Super User
or by fatnic
Published on 2010-12-30T16:57:15Z
Indexed on
2010/12/30
17:56 UTC
Read the original article
Hit count: 309
I'm trying to use ffmpeg to convert a h264/aac video file to an xvid/mp3 file so I can play it in my ultra-cheap media player.
At the moment the converted video file is TWICE the size of the original mp4. Is there any way to get a smaller file size without loosing too much quality? Even a drop to -qmin 1 is pretty awful!
The command i'm using is
ffmpeg -i input.mp4 -vcodec libxvid -sameq -acodec libmp3lame -ab 128k -ac 2 output.avi
And the ffmpeg output is
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4'
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isomavc1
Duration: 01:34:27.69, start: 0.000000, bitrate: 1520 kb/s
Stream #0.0(und): Video: h264, yuv420p, 720x304 [PAR 1:1 DAR 45:19], 1387 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc
Stream #0.1(und): Audio: aac, 48000 Hz, stereo, s16, 128 kb/s
Output #0, avi, to 'output.avi':
Metadata:
ISFT : Lavf52.64.2
Stream #0.0(und): Video: mpeg4, yuv420p, 720x304 [PAR 1:1 DAR 45:19], q=2-31, 200 kb/s, 25 tbn, 25 tbc
Stream #0.1(und): Audio: libmp3lame, 48000 Hz, stereo, s16, 128 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
© Super User or respective owner