16
6
I need to encode a short video in a format that can be played with windows media player on windows xp without installing any additional codecs. For the recoding process I'm using ffmpeg.
I've already tried the msmpeg4v2
codec but the quality is horrible (compared to the original video you see large "blocks") so I'm looking for other codecs which work out of the box and have at least "ok" quality.
Since comments indicated that it might not be the codec but a bitrate issue, here's the command I used:
ffmpeg -i x.flv -vcodec msmpeg4v2 -acodec adpcm_ima_wav x.avi
Output:
Input #0, flv, from 'x.flv':
Metadata:
moovPosition : 39337765
avcprofile : 100
avclevel : 30
aacaot : 2
videoframerate : 25
audiochannels : 2
Duration: 00:06:19.52, start: 0.000000, bitrate: 836 kb/s
Stream #0:0: Video: h264 (High), yuv420p, 702x396 [SAR 2596:3679 DAR 354:283], 25 tbr, 1k tbn, 50 tbc
Stream #0:1: Audio: aac, 48000 Hz, stereo, s16
w:702 h:396 pixfmt:yuv420p tb:1/1000000 sar:2596/3679 sws_param:
Output #0, avi, to 'x.avi':
Metadata:
moovPosition : 39337765
avcprofile : 100
avclevel : 30
aacaot : 2
videoframerate : 25
audiochannels : 2
ISFT : Lavf53.32.100
Stream #0:0: Video: msmpeg4v2 (MP42 / 0x3234504D), yuv420p, 702x396 [SAR 2596:3679 DAR 354:283], q=2-31, 200 kb/s, 25 tbn, 25 tbc
Stream #0:1: Audio: adpcm_ima_wav ([17][0][0][0] / 0x0011), 48000 Hz, stereo, s16, 384 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> msmpeg4v2)
Stream #0:1 -> #0:1 (aac -> adpcm_ima_wav)
Press [q] to stop, [?] for help
frame= 9485 fps=436 q=31.0 Lsize= 31197kB time=00:06:19.48 bitrate= 673.5kbits/s
video:12628kB audio:17913kB global headers:0kB muxing overhead 2.149820%
3
Maybe the problem is your bitrate, not your codec. The preferred codec for Windows systems is, most likely, some sort of WMV.
– Der Hochstapler – 2012-06-12T19:19:42.467possible duplicate of Convert video into format which is most likely playable on a windows system
– slhck – 2012-06-12T19:20:10.777See my answer there for a link to the official Microsoft FAQ. But essentially, you're stuck with Windows Media Video – which FFmpeg won't produce. So either that or the ones you've tried. As @Oliver already said, try a higher bit rate or quality setting. I assume it just uses the default one. – slhck – 2012-06-12T19:21:52.413
The benefit of the MPEG codec is not size, but rather the fact that it is not a container like an AVI, and it is a stream based file that can be recorded via a hardware encoder, used on DVD media for stand-alone players, and it can be easily edited. So, to be clear, what you are asking about is a movie format you can encode using FFMPEG that will produce a size you are comfortable with, and will work with Windows Media Player without any additional downloads. Correct? – Bon Gart – 2012-06-12T19:22:43.937
Yes. WMV is fine, too. ther I get the same quality - so maybe there is indeed something wrong with the bitrate. – ThiefMaster – 2012-06-12T19:23:42.537
Already updated my question – ThiefMaster – 2012-06-12T19:24:47.577
To be a little nit-picky, please don't cut out the FFmpeg version and libav version infos. These are often relevant in debugging — that's why I said, complete, uncut output :) – slhck – 2012-06-12T19:28:53.563