Log in

View Full Version : Problem with hybrid DVD


@Tron@
21st December 2008, 21:09
I have a problem when encoding DVD (here sample on Rapid a DVD (http://rapidshare.com/files/174704538/VTS_01_1.VOB.html), sample on mediafire A DVD (http://www.mediafire.com/?iwsdhhluz9z)), video shakes on the edges, or something else.

Here is a sample rip (http://www.mediafire.com/?mvby2myybb2) with the problem seen in 1-6 seconds, and not only.

Here's the script: LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mvtools-v2.3.1\mvtools2.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\masktools-v2.0a35\mt_masktools-25.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\FFT3Dfilter.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\TTempsmooth.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Removegrain.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\deblock.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MaskTools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\degrainmedian.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\RemoveGrain.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Repair.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\nnedi.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\TBilateral\TBilateral.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\medianblur.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\EEDI2v092 multithreaded\EEDI2_imp.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Gradfun2db.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Addgrain.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\SangNom.dll")
Import("C:\Program Files\AviSynth 2.5\plugins\MCTemporalDenoise.v1.1.24.avsi")
Import("C:\Program Files\AviSynth 2.5\plugins\LSFmod.v1.3.avsi")
Import("C:\Program Files\AviSynth 2.5\plugins\ftoon.avs")
Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpenFaster.avs")
Import("C:\Program Files\AviSynth 2.5\plugins\Deblock_QED.avs")
Import("C:\Program Files\AviSynth 2.5\plugins\isodd.avs")
Import("C:\Program Files\AviSynth 2.5\plugins\mrestore.avs")
Import("C:\Program Files\AviSynth 2.5\plugins\Cdeblend.avs")
Import("C:\Program Files\AviSynth 2.5\plugins\TempGaussMC_beta1mod.avsi")
Import("C:\Program Files\AviSynth 2.5\plugins\MCBob.avs")
Import("C:\Program Files\AviSynth 2.5\plugins\aaf.avs")

DGDecode_mpeg2source("C:\VIDEO_TS\VTS_01_1.d2v", cpu=4)
ColorYUV(levels="TV->PC")
Tweak(cont=1.04)
tfm().tdecimate()
asharp(1,3,0.25,true)
MCTemporalDenoise(settings="low",blksize=16,pel=4,flat=true,Slimit=4)
ftoon(sstrength=110)
aaf(aam=-0.9,rep=true)
SetMemoryMax (1024)
Crop(2, 2, -2, -2)
Spline64Resize(1280, 720)


About DVD DGIndex say

iDCT_Algorithm=6
YUVRGB_Scale=1
Luminance_Filter=0,0
Clipping=0,0,0,0
Aspect_Ratio=16:9
Picture_Size=720x480
Field_Operation=0
Frame_Rate=29970 (30000/1001)
Location=0,0,3,75500

FINISHED 90.19% FILM

It will be grateful for the help and advice as to correct it.

@Tron@
28th December 2008, 16:48
No one can help with this problem or give a few tips????

thetoof
28th December 2008, 17:23
1 - You don't need to load/import all the dll/avsi if they are in the plugins folder of avisynth.

2 - The uploaded vob is simply telecined (i.e. not hybrid).
You can always apply hybrid decimation just to be sure. One of your options is:
animeivtc(mode=5) #load in vdub, file-run video analysis pass, wait till the end
Then replace the above line by animeivtc(mode=5,pass=2) and reload in vdub

Post the resulting timecode.txt (not attached, in a post) to get some help understanding what it means.

You can try tweaking the settings; more info in the docs.

@Tron@
28th December 2008, 22:17
1 - You don't need to load/import all the dll/avsi if they are in the plugins folder of avisynth.

2 - The uploaded vob is simply telecined (i.e. not hybrid).
You can always apply hybrid decimation just to be sure. One of your options is:
animeivtc(mode=5) #load in vdub, file-run video analysis pass, wait till the end
Then replace the above line by animeivtc(mode=5,pass=2) and reload in vdub

Post the resulting timecode.txt (not attached, in a post) to get some help understanding what it means.

You can try tweaking the settings; more info in the docs.


He obtained the result is quite strange ... in VD - 100.00% film and DGIndex say 90.19% FILM ... where is true?


timecodes.txt -
# timecode format v1
Assume 149.850150
# TDecimate v1.0.3 by tritical
# Mode 5 - Auto-generated mkv timecodes file
0,4659,119.880120
# vfr stats: 100.00% film 00.00% video
# vfr stats: 5825 - film 0 - video 5825 - total
# vfr stats: longest vid section - 0 frames
# vfr stats: # of detected vid sections - 0

Nightshiver
28th December 2008, 22:33
If your sample is just telecined, then in DGIndex, you can simply just "Force Film" and that should take care of it.

@Tron@
28th December 2008, 23:21
If your sample is just telecined, then in DGIndex, you can simply just "Force Film" and that should take care of it.


Can you explain what exactly i need do, that should be able to ... on items :confused:

In DGIndex also showed 96.21% FILM

thetoof
28th December 2008, 23:49
First thing - I don't get why you have framerates such as 149.850150 and 119.880120... could you upload a small m2v sample of that section? DGindex / select a section / video-field operation-Honor pulldown flags / save and demux video / upload

What may be going on here is a mix of soft and hard pulldown on your source, which force film will most likely fail to recover, but that any avisynth ivtc filter will (decomb, tivtc, animeivtc (which uses tivtc + a bunch of other filters)...)

RunningSkittle
29th December 2008, 04:47
tivtc looks fine on the posted sample

@Tron@
29th December 2008, 15:20
could you upload a small m2v sample of that section? DGindex / select a section / video-field operation-Honor pulldown flags / save and demux video / upload


Here it is:
http://www.mediafire.com/download.php?bniji20mvzz

And some info:
D2V Fix Output

Field order transition: 3 -> 2
900 6 0 23836672 0 1 2 72 d3 f0 e1 f2 e2 b2 e3 f0 e1 f2 e3
d00 6 0 24193024 0 1 2 92 b2 b2 a2 b2 b2 a2 b2 b2 a2 b2 b2 a2 b2 b2 a2
corrected...
900 6 0 23836672 0 1 2 72 d3 f0 e1 f2 e2 b2 e3 f0 e1 f2 e2
d00 6 0 24193024 0 1 2 92 b2 b2 a2 b2 b2 a2 b2 b2 a2 b2 b2 a2 b2 b2 a2

thetoof
30th December 2008, 01:12
Is this really the sample on which hybrid decimation gave you the above timecode??

This is what I get with animeivtc(mode=5,aa=0):
# timecode format v1
Assume 29.970030
# TDecimate v1.0.3 by tritical
# Mode 5 - Auto-generated mkv timecodes file
0,835,23.976024
836,838,17.982018
839,894,23.976024
895,897,17.982018
898,917,23.976024
# vfr stats: 99.91% film 00.09% video
# vfr stats: 1150 - film 1 - video 1151 - total
# vfr stats: longest vid section - 0 frames
# vfr stats: # of detected vid sections - 0

@Tron@
30th December 2008, 02:04
Is this really the sample on which hybrid decimation gave you the above timecode??

This is what I get with animeivtc(mode=5,aa=0):
# timecode format v1
Assume 29.970030
# TDecimate v1.0.3 by tritical
# Mode 5 - Auto-generated mkv timecodes file
0,835,23.976024
836,838,17.982018
839,894,23.976024
895,897,17.982018
898,917,23.976024
# vfr stats: 99.91% film 00.09% video
# vfr stats: 1150 - film 1 - video 1151 - total
# vfr stats: longest vid section - 0 frames
# vfr stats: # of detected vid sections - 0

Yes. Maybe i did something wrong ...

So what i need to do to fix it ( lines ) ????

thetoof
30th December 2008, 06:17
as I said
animeivtc(mode=5) #analysis pass (see the docs for more info)
then reload as
animeivtc(mode=5,pass=2)

That's it.