View Full Version : tmpgenc has dodgy yuy2->rgb conversion?
OogaBooga
23rd June 2002, 07:49
has anyone else found this problem? maybe i have one of the tmpgenc settings wrong. i do tv capture to avi files then convert to mpeg using tmpgenc 2.55 plus. if i capture using uncompressed yuy2, tmpgenc can't open the file properly - i get blue pictures. if i capture using rgb24 and compress using huffyuv (convert to yuy2) then tmpgenc can open the file but the colours have a greenish tinge. to get the right colours i have to open the avi in virtualdub and frameserve using uncompressed rgb. i found this problem with tmpgenc 2.54a and 2.55. is there a setting in tmpgenc to fix the colour conversion?
i would capture straight to yuy2 to avoid rgb->yuy2 conversion but i get an error: cannot start graph.
zambelli
23rd June 2002, 09:38
AFAIK, TMPGEnc can only read RGB24 files.
OogaBooga
23rd June 2002, 15:28
i remember reading somewhere that tmpgenc does all its processing in rgb because its filters only work in rgb. if the input is yuy2 then it will be converted to rgb, processed then converted back to yuy2 for mpeg compression. so my problem is that the yuy2->rgb conversion in tmpgenc is a bit dodgy and gives funny colours, whereas it's rgb->yuy2 conversion seems fine.
zambelli
24th June 2002, 12:15
Oh, I see. Try creating an Avisynth script:
AVISource("x:\whatever.avi")
ConvertToRGB24
And then open that .avs script in TMPGEnc. Make sure you have the .avs reader plugin installed in TMPGEnc, as well as the vfapi plugin. Perhaps the Avisynth conversion algorithm will be of better quality.
OogaBooga
24th June 2002, 13:29
it seems the problem wasn't with avi files but rather with avs scripts. if i open a huffyuv compressed avi file in tmpgenc then the colours are fine. the weird colours occur if i open an avs script that opens the avi file. this happens whether i include ConvertToRGB24 or not. this doesn't happen if i open the avs script in virtualdub then frameserve to tmpgenc. maybe it is a bug with avisynth 1.05. i'll have to try 1.06 when i find the time. makes me wonder if all my dvd rips also have funny colours...
spyder
25th June 2002, 18:51
This seems to be pretty common for people frameserving with AVISynth. I suggest you try adding ConvertToRGB() to the AVS script. I have never seen ConvertToRGB24 used. Maybe I just don't know about it. The reason HuffYUV works correctly is because TMPGEnc can request RGB output from the codec. I have this same problem with any YUV format from AVISynth(especially through MPEG2DEC.dll). For VCD I must always add ConvertToRGB() on my AVS scripts from GKnot. Don't forget the () because they seem to speed the process up.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.