Page 1 of 1

xvid -> h.264 question

Posted: 2007-04-30 09:18pm
by Stark
I'm still experimenting with moving some of my media to mp4/h.264. The quality/filesize is quite acceptable, and I'm even messing about with chapter marks and such.

However, I consistently get colour changes when re-encoding. The quality of the image itself is fine, but it's either too dark/too bright (sometimes at the same time, ie very large brightness range) or the colours are otherwise changed (ie the video goes all 'orangey'). I'm using both Nero Recode2 and SUPER, and I can't find any options regarding colour settings. Does anyone know anything that can help me with this?

Posted: 2007-04-30 09:52pm
by Praxis
I tend to prefer mp4 over h.264; I'm not sure why, but the iPod can take a higher bitrate mp4 file (2500) than h.264 (1500), maybe h.264 requires more processing power. And mp4 seems to have more support.

Unfortunately, having no familiarity with that software, I can't help much :( I use iSquint and the rare times I have color problems it's usually only slightly brighter and I don't bother to fix it.

Posted: 2007-04-30 09:55pm
by Stark
Yeah, h.264 needs a fair bit of grunt - not a problem in my environment, where it's only going to be used on computers, my 360, and various DV players.

My concern is simply that unlike converting for portable use, I won't keep the originals. Thus I'd like as close a conversion as possible... but I'm not sure what I'm doing wrong.

Posted: 2007-04-30 11:09pm
by Beowulf
Note for the clueless: H.264 is MP4. It's one of the codecs supported in the MPEG-4 standard. The two video codecs supported are MPEG-4 part 2, and MPEG-4 part 10. H.264 is MPEG-4 part 10.

Posted: 2007-05-01 12:44am
by Stark
Thanks for that. :roll:

Are the h.264 levels just standards? Ie, is there any point choosing 'level2.2' or whatever and then encoding at very low bitrates? They seem to just be bitrate/feature standards.

I've still got no luck with colour settings. It's kinda frustrating to get decent quality reencoding but have the colours messed up, particularly since none of the software I use seem to have any colour settings or options at all.

Posted: 2007-05-01 01:18am
by phongn
Wikipedia's H.264 article has a good about of information on the various levels.

Posted: 2007-05-01 01:31am
by Stark
Yeah, I've looked there. Unfortunately I don't really know much about video standards etc, so I'm not really sure I know what most of it means. :(

Posted: 2007-05-01 01:55am
by phongn
Essentially, Level 3 is enough for full NTSC/PAL SDTV resolution.

Posted: 2007-05-01 01:57am
by Stark
Oh I know that, but the list of levels has maximum bitrates etc - thus is the 'level' just a shorthand for various bitrate and feature settings? Ie, if you encode an h.264 file at SDTV size and bitrate, is that automatically level 3?

Posted: 2007-05-01 04:06am
by Stark
Some poking has lead me to examples on Macs where inappropriate colour profiles can lead to this kind of brightness issue. How would you change those sort of settings in a Windows environment? Can I just change the attributes of the file to lower brightness?

My experimentation suggests it's entirely a brightness issue: orange-heavy scenes go 'orangey', bright lights wash out whole scenes, etc.

Posted: 2007-05-06 03:25am
by Stark
I have found some more out about this issue. I found suggestions that under Windows the problem may be hardware/driver related. I also read that under VLC, the first instance will have the colour problem, and that any further instances of VLC will display properly.

I was able to test this extensively - indeed, it explained some anomalous experimentation results of my own - and it seems that the issue is at the player or driver level. The files themselves seem to be encoded properly, and no data is being lost. There are no updated drivers for my card (it's an 6600 Nvidia).

Ironically, some of the things I found on this issue go back to 2005 - apparently QT initally had a similar issue.

Posted: 2007-05-06 04:33am
by Resinence
Though it may decrease performance, you could try the latest 100.xx drives instead of the most current 6600 ones (90.xx?). Just a quick question, are you using a FFDshow codec to encode or a video for windows codec?

Posted: 2007-05-06 04:37am
by Stark
Yeah, the latest 6600 drivers are 93.74 (or something). I'm not sure how old that is... ;)

I'm using Nero Recode 2.5 atm. SUPER was introducing some interesting horizontal banding, but Recode is fine (it also allows me to mess with chapters etc).

So long as I keep an 'empty' VLC instance open, everything displays fine - apparently the first VLC instance uses the hardware settings/acceleration, while further instances don't. Thus, depending on the order I was opening the files I'd been experimenting with, my results could suddenly be reversed. :D

Posted: 2007-05-06 04:44am
by Resinence
VLC inheriting quicktimes bugs... =/

Posted: 2007-05-06 04:46am
by Stark
QT's *old* bugs, from like two years ago... :)

Posted: 2007-05-06 05:32am
by Durandal
Resinence wrote:VLC inheriting quicktimes bugs... =/
VLC doesn't link against the QuickTime APIs.

Posted: 2007-05-06 06:25am
by Stark
Does anything other than QT Pro let you edit the h.264 header information? Apparently the colour profile/gamma/etc can be changed using QT Pro, but I don't have it.