PDA

View Full Version : Which is the best video file format?


Deepak
30-Jun-2006, 21:50
I just got some video clips from my friend which she had recorded at a concert. For example the first video is in wmv format, res 640x480, duration 4:43 min and the file size is ~69MB. Isn't that a bit too much for a 4:43 min long video? Can I convert it into another format which is same quality wise but is smaller size wise? And which format should I convert it into? And how?

Thanks!

max-pain
30-Jun-2006, 22:43
Around 2 Mbit/s for the video isn't overkill for that resolution.

Bludd
01-Jul-2006, 00:13
Nothing is universally BEST. You also have to take into account the audio stream in those 69 MBs.

You could probably reencode the file to x264 at 1000 kbps or something with Vorbis audio at 80 kbps.

ERP
01-Jul-2006, 00:41
I think the latest WMV codec looks better for a given bitrate than most anything else I've looked at.
If you need it smaller, I'd drop the image size and the encoding rate proportionally.
I doubt you'd notice the size change to say 512x384 if your happy with the quality at 2Mbps. and at the same relative encoding level you could drop the video to 1280 Mbps.

Hector
01-Jul-2006, 00:49
H.264 all the way. You can try with x264 as stated above, or try the codec that comes with nero recode. It's very good. You can also try looking at www.doom9.org, the best site about digital video&audio I've ever seen.

Moloch
01-Jul-2006, 01:10
I wonder how the hell those *certain groups* get great quality out of 900-1200~ kilobits per second. using xvid?

Hector
01-Jul-2006, 09:25
With xvid and proper configuration you can get very high quality at dvd resolutions. For example, using 2 passes, Very high search precision, quarter pixel and GMC, and changing B-Frames modifier from 1.5 to 1 (this last makes the size of the file grow, but in my personal experience gives better quality as you don't see a so pronounced quality degradation between i frames).

Blazkowicz
02-Jul-2006, 00:17
I'm by not mean an expert in these coding things, but what I'd try is keep it in WMV (is that a WMV8 or WMV9? latter should be better) and just reencode to a lower bitrate (and maybe lower res).
The WMA audio stream could stay unchanged, no transcoding which could degrade it a bit? (although, sound quality is probably less than stellar?)

you can try with a 320x240 256kbits WMV video stream, would be a radical size reduction :) (I sometimes watch clips from the web of this kind, kind of watchable but with ffdshow's deblocking.)
WMV is good at low bitrates, I seem to like 256K WMV better than 256K MPEG4.
maybe try 512K 480x360, I don't know.

Moloch
02-Jul-2006, 00:46
With xvid and proper configuration you can get very high quality at dvd resolutions. For example, using 2 passes, Very high search precision, quarter pixel and GMC, and changing B-Frames modifier from 1.5 to 1 (this last makes the size of the file grow, but in my personal experience gives better quality as you don't see a so pronounced quality degradation between i frames).
Hmm.
Ill have to read up on xvid.
so many options...

Fodder
02-Jul-2006, 16:24
I suspect there's a fairly good reason the .. ah .. 'alternate distribution channels' are almost universally xvid.

_xxx_
03-Jul-2006, 09:31
I suspect there's a fairly good reason the .. ah .. 'alternate distribution channels' are almost universally xvid.

Because it's free? Doesn't do much else than DivX.

Fodder
03-Jul-2006, 13:44
Doesn't do much else than DivX.Doesn't do much less either though.

_xxx_
03-Jul-2006, 13:48
Doesn't do much less either though.

Well no, but XviD comes from old DivX codebase. AFAIK they're more or less compatible. XviD encoded movies run just fine in my DVD-player too (it supports DivX).

Hector
03-Jul-2006, 14:38
Well, if you want to use the the asp features of mpeg4 in divx you have to pay for the pro version, whereas xvid it's free, and gives more quality.

Ruined
14-Jul-2006, 23:20
IMO the best is VC-1/WMV. The size of the video simply depends how high quality you want it to be. Odds are your friend encoded it at 2mbps VBR, if you want have him re-encode it at a lower quality - such as 1mbps VBR - and you can cut it down to 34mb. If that is still too much, you can simply cut off more bitrate until its the size you want - however you will lose image quality the more you shave off.

Moloch
15-Jul-2006, 06:18
Because it's free? Doesn't do much else than DivX.
Um.. being free has nothing to do with it.. do you think they can't get divx for free :wink:
I think it has a lot more things you can tweak.

Simon F
17-Jul-2006, 08:41
IMO the best is VC-1/WMV.
Is that based on technical analysis or just that you've run the compressor?

Bludd
17-Jul-2006, 12:05
VC-1 is less advanced than MPEG4 AVC/h.264 so from an efficiency point of view, AVC beats VC-1 if you turn on all the relevant features. It will also make AVC insanely slow on everyday computers.

I'd like to see some Conroe benches with x264. That would be interesting. :)

pcchen
17-Jul-2006, 12:35
Yeah. Quicktime 7 has a relatively simple AVC encoder (it's H.264 support is quite limited), yet it took about 12 hours to encode a 14 minutes video at 1280x720, on a 1.42GHz PPC Mac mini. According to some tests, a 1.67GHz Core Duo Mac mini is roughly twice as fast as a 1.42GHz PPC Mac mini at H.264 encoding.

If a high clock Conroe is twice as fast as a 1.67GHz Core Duo, then it will "only" need 3 hours to encode a 14 minutes HD video ...

Blazkowicz
17-Jul-2006, 13:42
I'd say there's probably not one encoding better than all others, you have to consider which is the most common, patent/proprietary hassle, CPU hogging, worthy or not incremental gains.

same way as MP3 will play on anything and compares not badly with a high bitrate VBR LAME file, WMA is an advanced codec but microsoft shit, real audio get people to install a terrible player (most don't know of Real Alternative), etc. (though OGG theora is not present on the level of OGG vorbis)

decent and no playback headache would be xvid, advanced but microsoft is WMV9, then you have a number of comparable codecs actually (AVC/H264, real video, VP7)

it looks like audio to me, lots of comparable things, and no miracle, bitrate plays a big part in quality.

Bludd
17-Jul-2006, 20:01
I don't like Quicktime 7 AVC at all. It is too unsophisticated.

Hector
17-Jul-2006, 20:03
Quicktime 7 implementation gives AVC a bad name. It's horrid. Try x264 or nerodigital instead. If you are in a Mac Platform you can try with latest VLC too.

pcchen
19-Jul-2006, 09:51
Quicktime 7 is not good, yes. But it's integrated, and can be played everywhere. VLC player is not good enough, especially when your computer is not fast enough. Nero Digital is only available under Windows.
I've tried using x264 with CE-Quicktime profile, but it's certainly not user friendly, though x264 is a very good codec (I transcoded a DVD video to H.264 2Mbps using x264, and the result is very impressive).

Moloch
19-Jul-2006, 17:58
Here's a codec test at doom9, its from 2005 though.
http://www.doom9.org/index.html?/codecs-final-105-1.htm

Simon F
21-Jul-2006, 09:40
(I transcoded a DVD video to H.264 2Mbps using x264, and the result is very impressive).
Out of curiousity, do you know if that was using CABAC or just CAVLC?

Npl
21-Jul-2006, 18:04
I`d go with Xvid anyday. Any comparison I read placed it around or above MS WMV, only beaten by the h264 codecs.
Plus it has quite good software & Hardware support, many DVD-Player support it, you can even play it on PS2 with Homebrew Progs, open source, free. Try playing WMV on Linux (particulary non-Intel-Processors).

Once x264 gets more mature it should be the better option though.

pcchen
21-Jul-2006, 19:40
Out of curiousity, do you know if that was using CABAC or just CAVLC?

I think it uses CABAC, since x264 seems to default to CABAC.

Moloch
21-Jul-2006, 19:46
How does quicktime's h.264 compare to other codecs?

Zaphod
21-Jul-2006, 20:07
How does quicktime's h.264 compare to other codecs?As far as quality goes it's not horrible, but it is dog slow and extremely cumbersome to work with using common tools. Doom9.org did a thorough codec-shootout last year (http://www.doom9.org/codec-comparisons.htm) and not much have changed drastically since then.

BrynS
21-Jul-2006, 20:26
(I transcoded a DVD video to H.264 2Mbps using x264, and the result is very impressive). Isn't 2Mbps a bit too generous for a SD DVD transcode using the H.264 codec, especially if it's a 2.35:1 anamorphic encoding?

Have you tried H.264 at 1Mbps or 700-900kbps? I don't do as much as encoding now as I did previously, but for DVD transcodes I was getting fairly transparent encodes with XviD and some custom quantisation matrixes from Doom9 at about 1200-1400kbps with the original AC-3 audio. At 2Mbps, XviD should produce excellent results and I would of thought the significantly more computationally complex and efficient H.264 codec would cope with much less bitrate, unless that particular implementation isn't that optimised.:?:

Moloch
21-Jul-2006, 20:40
As far as quality goes it's not horrible, but it is dog slow and extremely cumbersome to work with using common tools. Doom9.org did a thorough codec-shootout last year (http://www.doom9.org/codec-comparisons.htm) and not much have changed drastically since then.
Thanks.

pcchen
26-Jul-2006, 05:02
Have you tried H.264 at 1Mbps or 700-900kbps? I don't do as much as encoding now as I did previously, but for DVD transcodes I was getting fairly transparent encodes with XviD and some custom quantisation matrixes from Doom9 at about 1200-1400kbps with the original AC-3 audio. At 2Mbps, XviD should produce excellent results and I would of thought the significantly more computationally complex and efficient H.264 codec would cope with much less bitrate, unless that particular implementation isn't that optimised.:?:

IMHO at 2Mbps both H.264 and MPEG-4 ASP (such as XviD) already shows some slight differences from typical 8Mbps MPEG-2, mainly lost of some details. At 1Mbps or lower, H.264 performs better than MPEG-4 ASP but both are not "equivalent" to 8Mbps MPEG-2, as the differences are very obvious.

It's generally accepted that H.264's coding efficiency is about twice as MPEG-2, that is, in theory, a 4Mbps H.264 should be about the same as 8Mbps MPEG-2. So I'm surprised by the performance of x264 in 2Mbps as the loses are quite small to my eyes.

For noisy sources (such as recording from my poor cable TV), H.264 seems perform better than XviD even at 2Mbps.