dan_joe
24th November 2006, 02:39
I still consider myself a newbie in all video and audio related stuff, but I wasn't sure about posting over there, so I posted here since this is mainly an AviSynth question.
Anyways, I should explain myself in regards to blurring a pixelated edge. A friend of mine told me of a strange problem with the US LazyTown DVDs. The show is filmed with a green screen in the background. and it seems that whenever a characters head or hair would go in front of this green screen, the edge would be pixelated or blocky; I'm a newbie with the terms too, so I might be using the wrong words. When I finally bought a DVD, I only saw the problem after processing it. I never saw it when I played in my DVD player or when using VLC Media Player (with Deinterlace disabled) or with Media Player Classic anywhere else.
Here's an example of what I'm talking about:
http://img167.imageshack.us/img167/9350/forcedfilmpcscalevdubmoxq5.th.png (http://img167.imageshack.us/my.php?image=forcedfilmpcscalevdubmoxq5.png)
This is an untouched and not resized yet of the Full Frame Aspect Ratio of 4:3. This is what I did to get that screenshot. I used DVD Decrypter to get the full VOBs of this episode out. I used the DGIndex 1.4.8 with Forced Film selected and PC Scale chosen. I'm not sure if this could affect this, but in the Options menu I have these checkmarked:
Correct Field Order
Use Full Paths
Use DirectDraw Overlay
And in Help, I have these checkmarked:
DirectDraw Overlay
VFAPI Plug-in.
Then I did "Save Project" (not any other option), after that I opened the .avs file with VirtualDubMod, went to frame 10299, then I chose Video>'Snapshot source frame'. And just in case here's .avs script without the full path:
DGDecode_mpeg2source("VTS_03_1.d2v",info=3)
Here's the BMP captured with DGIndex and then converted to PNG:
http://img93.imageshack.us/img93/4127/dgindexsamplepcscalebmpav9.th.png (http://img93.imageshack.us/my.php?image=dgindexsamplepcscalebmpav9.png)
The problem is not as present as the first picture I linked, you can see a little pixelation on the leftside of the pink wig.
Finally, my question. How do I get the processed video to look like it does in DGIndex? I have tried Unfilter and it did what it was supposed to do and protect the edges. Same with MSmooth. I tried using the Blur filter in VirtualDubMod and it did blur that strange pixelation but I'll use that as a last resort. Here's the result of the blurring in VirtualDubMod (I had to "Copy Source frame to clipboard" here, pasted it in Adobe Photoshop, then saved as PNG):
http://img90.imageshack.us/img90/3372/forcedfilmpcscalevdubmovb8.th.png (http://img90.imageshack.us/my.php?image=forcedfilmpcscalevdubmovb8.png)
I had to "Copy Source frame to clipboard" here, paste it in Adobe Photoshop, then save as PNG because making a snapshot of the output frame didn't work, I should go and test that out some more though.
Is there a filter or plugin I can use that will detect the pixelated edges and blur it? I did try to search for an answer with keywords like pixelated edges, but I think they were mainly about deinterlacing and jaggy edges. And other searches showed edge protection. Another search showed up with MVTools with an edge mask, but does that involve protecting the edges? Thanks for any help or nudging in the right direction.
EDIT (11-24-2006): Didée pointed out that I didn't finish describing how I got the first screenshot, that's been fixed now. It's strange how I missed that... Also added how I got the third one, which I need to test out some more.
Anyways, I should explain myself in regards to blurring a pixelated edge. A friend of mine told me of a strange problem with the US LazyTown DVDs. The show is filmed with a green screen in the background. and it seems that whenever a characters head or hair would go in front of this green screen, the edge would be pixelated or blocky; I'm a newbie with the terms too, so I might be using the wrong words. When I finally bought a DVD, I only saw the problem after processing it. I never saw it when I played in my DVD player or when using VLC Media Player (with Deinterlace disabled) or with Media Player Classic anywhere else.
Here's an example of what I'm talking about:
http://img167.imageshack.us/img167/9350/forcedfilmpcscalevdubmoxq5.th.png (http://img167.imageshack.us/my.php?image=forcedfilmpcscalevdubmoxq5.png)
This is an untouched and not resized yet of the Full Frame Aspect Ratio of 4:3. This is what I did to get that screenshot. I used DVD Decrypter to get the full VOBs of this episode out. I used the DGIndex 1.4.8 with Forced Film selected and PC Scale chosen. I'm not sure if this could affect this, but in the Options menu I have these checkmarked:
Correct Field Order
Use Full Paths
Use DirectDraw Overlay
And in Help, I have these checkmarked:
DirectDraw Overlay
VFAPI Plug-in.
Then I did "Save Project" (not any other option), after that I opened the .avs file with VirtualDubMod, went to frame 10299, then I chose Video>'Snapshot source frame'. And just in case here's .avs script without the full path:
DGDecode_mpeg2source("VTS_03_1.d2v",info=3)
Here's the BMP captured with DGIndex and then converted to PNG:
http://img93.imageshack.us/img93/4127/dgindexsamplepcscalebmpav9.th.png (http://img93.imageshack.us/my.php?image=dgindexsamplepcscalebmpav9.png)
The problem is not as present as the first picture I linked, you can see a little pixelation on the leftside of the pink wig.
Finally, my question. How do I get the processed video to look like it does in DGIndex? I have tried Unfilter and it did what it was supposed to do and protect the edges. Same with MSmooth. I tried using the Blur filter in VirtualDubMod and it did blur that strange pixelation but I'll use that as a last resort. Here's the result of the blurring in VirtualDubMod (I had to "Copy Source frame to clipboard" here, pasted it in Adobe Photoshop, then saved as PNG):
http://img90.imageshack.us/img90/3372/forcedfilmpcscalevdubmovb8.th.png (http://img90.imageshack.us/my.php?image=forcedfilmpcscalevdubmovb8.png)
I had to "Copy Source frame to clipboard" here, paste it in Adobe Photoshop, then save as PNG because making a snapshot of the output frame didn't work, I should go and test that out some more though.
Is there a filter or plugin I can use that will detect the pixelated edges and blur it? I did try to search for an answer with keywords like pixelated edges, but I think they were mainly about deinterlacing and jaggy edges. And other searches showed edge protection. Another search showed up with MVTools with an edge mask, but does that involve protecting the edges? Thanks for any help or nudging in the right direction.
EDIT (11-24-2006): Didée pointed out that I didn't finish describing how I got the first screenshot, that's been fixed now. It's strange how I missed that... Also added how I got the third one, which I need to test out some more.