ccfilms
19th May 2005, 05:03
Hey guys, I'm an indie filmmaker who has been using nothing but professional applications for my work. Well, I ran across AviSynth and Vdub in my attempts to compress my films to different formats and now im in love with the different filters.
However, something that has always bugged me is colorspace and chromasampling. I've read many articles and used the search function on this forum alot int eh past few days but can't seem to find what I'm looking for. Basically, the original DV is pretty balanced when it comes to contrast and brightness and such. However, I like to take my DV footage and convert it to 24p (just until I get a nicer camera like that new JVC GY-HD100U HD 24p cam). Currently, I'm using TMPEG for that converting, however, when I do that I lose a bit of color depth (i can correct this for the most part in Sony Vegas though, which is my NLE of choise).
Well, I just found out how to do different de-interlacing and 24p converting with avisynth and I was quite intrigued. Here's the script i used:
Avisource("c:\dv.avi")
ConverttoYUY2(true)
BlindPP(cpu2="ooxxox")
LeakKernelBob(0,10,false,true)
#dgbob(0,8)
Tomsmocomp(0,-1,0)
convert60ito24p(0,0)
Lanczos4Resize(872,480)
LimitedSharpen()
I was also messing around with dgbob as a deinterlacer. This current script was just a test I was trying. But my goal here isn't about deinterlacing as much as it is DV color sampling in Avisynth.
Notice my images below (scroll down to the bottom). The original source DV, the TMPEG render (with deinterlacing, IVTC (for 60ito24p converting), and sharpening applied) and then look at the avisynth render.
As you can see, teh TMPEG lacks a bit of the color depth of the original (like i said, it was actually even worse before i applied a Sony Vegas Contrast +0.13 function to it). I must say one thing though, props to Donald Graft! You rock man! your post processing in DGDecode.dll are insanely good! They really do work! Good job man! I owe yah!
Now, the Avisynth file has more color depth, but some of the details (like some tree branches) are washed out... almost as if a contrast filter was applied. This is actually inherent even without deinterlacing, so it's not the deinterlacing method (like i said, im trying to figure out color sampling methods).
How can I apply avisynth filters and have it keep the color and details the same as the original (im not talking about de-interlacing here, im talking about chroma sampling). Can anyone help me with this? It's been kinda bothersome to me for my last two films, how the color sampling is a bit off compared to the original DV.
Note: as you can see, the Avisynth is way better than the TMPEG render. Why didn't i discover avisynth before now?!?!? I'm hyped! You can actually make out the stubble on the guy's face now! Sadly, those are screenshots from my film Sinking Ships, of which I'm almost completed with, so I won't be able to totally overhaul it with this new high quality method. Oh well. Next movie though!
DOWNLOAD THE EXAMPLE SCREENSHOTS HERE: JPG (337KB) (http://www.ccfilms.com/source.jpg) PNG (1.7MB) (http://www.ccfilms.com/source.png)
However, something that has always bugged me is colorspace and chromasampling. I've read many articles and used the search function on this forum alot int eh past few days but can't seem to find what I'm looking for. Basically, the original DV is pretty balanced when it comes to contrast and brightness and such. However, I like to take my DV footage and convert it to 24p (just until I get a nicer camera like that new JVC GY-HD100U HD 24p cam). Currently, I'm using TMPEG for that converting, however, when I do that I lose a bit of color depth (i can correct this for the most part in Sony Vegas though, which is my NLE of choise).
Well, I just found out how to do different de-interlacing and 24p converting with avisynth and I was quite intrigued. Here's the script i used:
Avisource("c:\dv.avi")
ConverttoYUY2(true)
BlindPP(cpu2="ooxxox")
LeakKernelBob(0,10,false,true)
#dgbob(0,8)
Tomsmocomp(0,-1,0)
convert60ito24p(0,0)
Lanczos4Resize(872,480)
LimitedSharpen()
I was also messing around with dgbob as a deinterlacer. This current script was just a test I was trying. But my goal here isn't about deinterlacing as much as it is DV color sampling in Avisynth.
Notice my images below (scroll down to the bottom). The original source DV, the TMPEG render (with deinterlacing, IVTC (for 60ito24p converting), and sharpening applied) and then look at the avisynth render.
As you can see, teh TMPEG lacks a bit of the color depth of the original (like i said, it was actually even worse before i applied a Sony Vegas Contrast +0.13 function to it). I must say one thing though, props to Donald Graft! You rock man! your post processing in DGDecode.dll are insanely good! They really do work! Good job man! I owe yah!
Now, the Avisynth file has more color depth, but some of the details (like some tree branches) are washed out... almost as if a contrast filter was applied. This is actually inherent even without deinterlacing, so it's not the deinterlacing method (like i said, im trying to figure out color sampling methods).
How can I apply avisynth filters and have it keep the color and details the same as the original (im not talking about de-interlacing here, im talking about chroma sampling). Can anyone help me with this? It's been kinda bothersome to me for my last two films, how the color sampling is a bit off compared to the original DV.
Note: as you can see, the Avisynth is way better than the TMPEG render. Why didn't i discover avisynth before now?!?!? I'm hyped! You can actually make out the stubble on the guy's face now! Sadly, those are screenshots from my film Sinking Ships, of which I'm almost completed with, so I won't be able to totally overhaul it with this new high quality method. Oh well. Next movie though!
DOWNLOAD THE EXAMPLE SCREENSHOTS HERE: JPG (337KB) (http://www.ccfilms.com/source.jpg) PNG (1.7MB) (http://www.ccfilms.com/source.png)