Log in

View Full Version : Colorspace Conversion Nightmare


Cyberia
17th March 2003, 23:41
I'm a little frusrated right now, so bear with me.

I know the developers here are mostly volunteering their work, but could people PLEASE compile filters that work in all colorspaces?

I am having a nightmare in converting a particular clip. I have a RGB32 avi video of the Return of the King cartoon. It appears to be progressive (no interlacing at all) @29.97fps (every fifth frame is a repeat). It also has a moderate amount of noise.

Using AVISynth 2.51, I am encoding with Nandub so the output must be either RGB or YUV.
Right off the bat, Decimate does not accept RGB32, so I must convert to YUV or YV12.
But then I apply Msmooth, and it does not accept YUV! Only RGB32 or YV12.

BUT WAIT THERE'S MORE!
Then I want to apply Msharpen and IT only accepts YUV or RGB32!

Im screwed. There is no way to apply the filters I want without MULTIPLE colorspace conversions. The real killer is that Msmooth does not accept YUV and/or that Decimate does not accept RGB32. What other options are available to me? I would prefer to stay entirely in RGB32, but will accept ONE conversion to YUV if necessary.

Thanks.

N_F
18th March 2003, 00:20
I would suggest that you look into other filters that all work in the same colorspace. Check the FAQ at www.avisynth.org and you'll find more links to filters than you ever wanted to see.

In your case it would seem like the best option to find a sharpener that supports YV12 (asharp is the only one I've personally used, but there are several others that you'll find in the FAQ).

Belgabor
18th March 2003, 00:47
Well the trouble is that some filters are a real hassle or nearly impossible to code in some colorspaces. Iirc correctly Donald said something like this about his Decomb stuff in RGB.

Cyberia
18th March 2003, 00:53
Ok fine, Decomb can output to YUV. I am willing to make one conversion. But since Decomb is most likely going to be the FIRST filter applied, you'd think all his other filters would accept Decombs output natively, without ANOTHER conversion being necessary.

Guest
18th March 2003, 01:51
Originally posted by Cyberia
Ok fine, Decomb can output to YUV. I am willing to make one conversion. But since Decomb is most likely going to be the FIRST filter applied, you'd think all his other filters would accept Decombs output natively, without ANOTHER conversion being necessary. You'd think that after the advent of Avisynth 2.5, all my Avisynth filters and ported VirtualDub filters would be instantly modified to work with all color spaces. After all, these things are trivial to do and I have no other demands upon my time. :)

We are in a transition phase here. Things will take some time. If you ask for things politely, you'll have a much greater chance of having your requests placed high on my priority list.

BTW, RGB for Decomb would not be very difficult. Is there much demand for it by others?

Cyberia
18th March 2003, 03:37
Yes, yes, you are right Donald. I did not mean to criticize too much. I was just frustrated.

Is it your desire to have all plugins accept/output all color formats? I do a lot of transcoding from various sources so having this flexibility would be very appreciated.

In this case, just having a Decimate that accepts RGB would solve everything.

Thanks!
Cyb