View Full Version : DIB format converting
Taktaal
16th December 2007, 16:05
I'm trying to degrain a movie through Avisynth/x264, but I keep getting the error avis [error]: unsupported input format (DIB ) whenever I try including a degrain filter.
Now I'm a bit confused because as far as the Avisynth wiki is concerned, DIB as an image format isn't even supported by Avisynth. I originally thought it was just another name for RGB, but ConvertToYV12() fails with the same error message.
Also If I try to load the movie with
DirectShowSource("movie.grf", pixel_type="YV12")
there's no effect either, It's still loaded as DIB and fails to degrain or convert to YV12.
Is there a way to convert DIB to a format supported by other Avisynth filters like RGB or YV*?
Sagekilla
16th December 2007, 17:11
Typically when I get a DIB error, that's when I narfed up somewhere in the script. What I mean by that is when it SHOULD be Spline36Resize(1280,720) it ends up being Spline36Reszie(1280,720) by accident. Check to make sure you're typing everything in properly, and that the parameters you're using actually exist. Can you post the script you're trying to use?
Edit: To clarify DIB isn't a imaeg format. What the error message is saying is that there's an input error, something went wrong with how it parsed the avisynth script so it couldn't pass it off properly to x264.
Sagekilla
16th December 2007, 17:14
Ignore everything I just said, I was wrong. DIB is RGB format, you're using the improper color space for the image. Remove the pixel_type="YV12" and replace with pixel_type="RGB", then add ConvertToYV12() right after. Your script should look like this:
DirectShowSource("movie.grf", pixel_type="RGB")
ConvertToYV12()
DegrainScriptHere()
squid_80
16th December 2007, 17:35
Combine both the previous answers and you'll get the real problem. :)
The error message from x264 means exactly what it says: DIB (otherwise known as RGB most of the time) is unsupported by x264. But why would avisynth use RGB even when you've got converttoyv12() in the script? When there's an error in the script somewhere. The easiest solution is to open your script in virtualdub and see if it will tell you what the error is.
(My x264 builds used to have special handling for avisynth input and would actually tell the user what the error was if one occured; unfortunately these changes were never adopted.)
Sagekilla
16th December 2007, 17:39
Combine both the previous answers and you'll get the real problem. :)
The error message from x264 means exactly what it says: DIB (otherwise known as RGB most of the time) is unsupported by x264. But why would avisynth use RGB even when you've got converttoyv12() in the script? When there's an error in the script somewhere. The easiest solution is to open your script in virtualdub and see if it will tell you what the error is.
(My x264 builds used to have special handling for avisynth input and would actually tell the user what the error was if one occured; unfortunately these changes were never adopted.)
I think it's screwing up with the fact that he still has Pixel_type="YV12" I could be wrong though. In any case, try what I said above Taktaal and see if it solves it.
Taktaal
16th December 2007, 17:59
Thanks everyone. There was indeed an error in the script, and opening the .avs in Virtualdub allowed me to debug it.
It seems that Avisynth outputs its default error message in DIB format which leads to the pretty generic x264 error.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.