View Full Version : Blurring and Discoloration In .VOB
Shinji-kun
29th August 2010, 16:11
I have been doing encoding on an anime trailer that I ripped from DVD. I use DGindex to make a .d2v project file and then I use MeGUI to encode the footage to H264. After completing the encoding (IVTC included in the AVS script) I noticed various substantial blocking artifacts throughout the video such as this:
http://i874.photobucket.com/albums/ab306/EVA-Unit01/snapshot20091224160423-1.jpg
http://i874.photobucket.com/albums/ab306/EVA-Unit01/berserk_trailer1-004mkv_snapshot_0001_20100829_111604.jpg
http://i874.photobucket.com/albums/ab306/EVA-Unit01/berserk_trailer1-002mkv_snapshot_0000_20100829_111417.jpg
I tried using the regular Deblock() command but if I set the strength to high it dulls the colorization of the video. In general there is too much blurring int the footage, which is very surprising as it is X264 (H264). Does anyone know an avisynth plugin that would be best for deblocking and sharpening the video?
mp3dom
29th August 2010, 17:06
Seems more like the wrong chroma YV12 upsampling. Have you changed the colorspace in your avs (to YUY2 or something else)? The blur on the latest image seems more than a bad ivtc frame which was deinterlaced with blend.
Shinji-kun
29th August 2010, 22:30
Have you changed the colorspace in your avs (to YUY2 or something else)?
I don't think so.
The blur on the latest image seems more than a bad ivtc frame which was deinterlaced with blend.
I remember that I used TIVTC with Tfm(PP=5) and TDecimate(mode=1). What settings (http://www.afterdawn.com/guides/archive/using_avisynth_page_11.cfm) will fix the problem?
LoRd_MuldeR
29th August 2010, 22:50
To fix the bad Chroma upsample, try lik this:
ConvertToYV12()
Last.MergeChroma(Last.PointResize((Last.width/2),(Last.Height/2)).Spline36Resize(Last.Width, Last.Height).Blur(0.5))
roozhou
30th August 2010, 03:56
Open your .avs in a media player, and did you see the same artifact? If yes, you are posting to the wrong forum coz this is not x264's fault.
Shinji-kun
30th August 2010, 13:41
I opened this script in Virtualdubmod and took the following screenshots.
LoadPlugin("C:\Users\User1\MeGUI_0.3.5_x86_WithoutInstaller_OfflinePackage\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("C:\Users\User1\Videos\Berserk Trailer.d2v", info=3)
Tfm()
TDecimate(mode=1)
ConvertToYV12()
Last.MergeChroma(Last.PointResize((Last.width/2),(Last.Height/2)).Spline36Resize(Last.Width, Last.Height).Blur(0.5))
http://i874.photobucket.com/albums/ab306/EVA-Unit01/berserktrailerchroma1.png
http://i874.photobucket.com/albums/ab306/EVA-Unit01/berserktrailerchroma2.png
Sharktooth
30th August 2010, 14:20
leave alone vdub, just post the screenshot from the media player playing the avs.
Shinji-kun
30th August 2010, 15:52
leave alone vdub, just post the screenshot from the media player playing the avs.
Well here's the script and the screen shots (attached) again.
LoadPlugin("C:\Users\User1\MeGUI_0.3.5_x86_WithoutInstaller_OfflinePackage\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("C:\Users\User1\Videos\Berserk Trailer.d2v", info=3)
Tfm()
TDecimate(mode=1)
ConvertToYV12()
Last.MergeChroma(Last.PointResize((Last.width/2),(Last.Height/2)).Spline36Resize(Last.Width, Last.Height).Blur(0.5))
The footage from the avs looks the same in virtualdub and media player classic. So NO it didn't make a difference "sharktooth".
nm
30th August 2010, 16:04
Upload the source clip and your encode to a file sharing service such as MediaFire.
Sharktooth
30th August 2010, 16:05
the usual chroma upsampling problem...
most probably it's due to the renderer, it surely does not depend on x264.
nm
30th August 2010, 16:19
the usual chroma upsampling problem...
most probably it's due to the renderer, it surely does not depend on x264.
I'd like to see the source because there are lots of 8x8 blocks and chroma combing artifacts in the screenshots.
Shinji-kun
30th August 2010, 22:53
The following links are short samples selected from the areas in which the above screen shots were taken from.
Clip 1 (http://www.mediafire.com/?77df8xm28w17i6z)
Clip 2 (http://www.mediafire.com/?6spl17rlp3whj05)
I am not sure what chroma upscaling is. Can someone give advice as to how to fix the problem?
Also an admin could move this thread to a more appropriate area if they think it's neccesary, since the problem apparently has more to do with avisynth, dgindex or something else.
mp3dom
30th August 2010, 23:22
We need the untouched source (vob?) that doesn't show the problem, not the already compressed one (mkv).
Shinji-kun
1st September 2010, 17:50
OK, Here is the vob. I ripped it with DVDDecrypter using IFO mode. File splitting was set to vobid.
EDIT: Does anyone know what the chroma issue has to do with the .vob? I posted a link to it and yet, no one is replying.:thanks:
7ekno
2nd September 2010, 10:18
Is there an NVidia VP4 video card in your system?
7ek
Ghitulescu
2nd September 2010, 13:08
Definitive, chroma upsampling bug and a bitrate setting too low for encoding.
Shinji-kun
2nd September 2010, 14:01
Is there an NVidia VP4 video card in your system?
No. Its an ATI Radeon HD video card.
Now does anyone actually know how to FIX the chroma upsampling problem? If so please reply with effective advice.
Ghitulescu
2nd September 2010, 14:16
Now does anyone actually know how to FIX the chroma upscaling problem? If so please reply with effective advice.
Did you actually read the answers?
Shinji-kun
2nd September 2010, 14:22
Did you actually read the answers?
What answers? I see no specific advice anywhere. Bitrate to low? Chroma upsampling? Well then why doesn't someone specifically state what bitrate should be used and how to correct the chroma upsampling?
Ghitulescu
2nd September 2010, 16:00
See Lord_Mulder's answer for CUB.
Nobody can tell you what bitrate to use, just use your senses, experience and time ;)
Shinji-kun
2nd September 2010, 16:12
That script didn't help.
Ghitulescu
2nd September 2010, 16:19
It worked - judging from the pictures in the next reply (yours).
Shinji-kun
2nd September 2010, 17:07
The only difference I perceive between the 2 sets of screenshots is the 2nd set (with avs script used) is slightly brighter color wise.
The problem still remains; there is blurring in the video where I took screenshots from and in other places. At this point I doubt the problem is due to chroma upsampling alone. The blurring is still evident after the script that mulder suggested was used. This suggests to me that the blurring must be being caused by another issue, i.e. blocking. Does anyone know how to fix the entire problem I described in the OP post.
Also there appears to be a lot of grain in the footage. Would SSXSharpen fix it?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.