View Full Version : Any way to set colourspace of error footage?
zettai
16th April 2004, 14:44
Odd problem this one.
Me and some friends have been working on the Premiere AviSynth Plugin but we cant get 24bit RGB working without inherent instability so we decided to not support it and get everyone to just convert to 32 bit.
The only problem is that the default error message subtitle in AviSynth is output in RGB24 so if anything goes wrong they get a 10 second clip with nothing but blackness because the plugin doesn't support RGB24.
Two possible solutions I can think of are:
1) Some sort of include that changes the colourspace of error subtitles.
or
2) Some way of bringing up the error in a messagebox like VirtualDubMod does. How do those messagebox alerts work?
Thanks for any help.
Richard Berg
17th April 2004, 00:14
IIRC, VDub traps errors directly as C++ expressions. Probably not an option for you.
Why not just Invoke a ConvertToRGB32 on the video clip you're sending to Premiere?
zettai
17th April 2004, 00:23
Originally posted by Richard Berg
Why not just Invoke a ConvertToRGB32 on the video clip you're sending to Premiere?
It is actually the process of detecting incoming 24bit which is causing the instability. We've tried other methods but we have decided at the moment that it wasn't much of a loss to not check for 24bit... except of course that you can't see the error messages.
Richard Berg
17th April 2004, 06:09
Why detect? ConvertToRGB32 is a simple no-op if it's already 32-bit.
zettai
17th April 2004, 09:12
I don't think we are understanding each other entirely.
The error messages are not RGB32. Sure footage can be converted to RGB32 but the error messages cannot because the premiere pluging does not use avisynth itself, it just imports from AVIFile, so in order to convert to rgb32 in the plugin you'd have to detect if it's RGB24 and add padding bytes and this is the part we can't get to be stable.
See my problem?
C++ expressions may be the way to go, we just need to know what they are :)
zettai
17th April 2004, 12:40
OK, I've looked at the vdub source and it seems easy enough to recreate.
esby
17th April 2004, 12:46
you may wrap your avs inside of another one.
avisource("myavs.avs")
convertToRGB32()
esby
Not even that is necessary. As Richard Berg said, just invoke a ConvertToRGB32() after the script, even if it throws an error, the error message will be converted to RGB32 too.
zettai
17th April 2004, 13:23
Originally posted by mf
Not even that is necessary. As Richard Berg said, just invoke a ConvertToRGB32() after the script, even if it throws an error, the error message will be converted to RGB32 too.
I know this but the people getting the error are people who are getting the avisynth script all wrong so there's a good chance they are not doing this :)
No, by the premiere plugin :).
Richard Berg
17th April 2004, 17:22
I didn't see you were using AviFile. That means you have to do the work yourself, like in the VDub code, yes.
esby
18th April 2004, 03:31
Oh my two cents...
in that case:
Directshowsouce("myavs.avs")
(But that might be very evil from another point of view :D)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.