Log in

View Full Version : 25i to 23.976p conversion


albert1234
29th April 2010, 21:25
Hello Guys:)

I have some PAL DVD's in which the video is hard telecined@25 interlaced fps using bottom field first.
I want to convert those videos back to original 23.976fps progressively.

After reading lots and lots of articles I have used some plugins but I am not able to get the desired quality.
I am currently using MeGUI with the following filters-

LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\TomsMoComp.dll")
LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\TemporalCleaner.dll")
LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\TIVTC.dll")
LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\SmoothDeinterlacer.dll")
LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\MSharpen.dll")
LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\Decomb.dll")
LoadPlugin("C:\Program Files\megui\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("C:\trail1.d2v", info=3)
LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\ColorMatrix.dll")
ColorMatrix(hints=true, interlaced=true, threads=0)
LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\TDeint.dll")
TDeint(mode=1,order=-1)
crop( 8, 8, -8, 0)
ChangeFPS(23.976)
Lanczos4Resize(720,528) # Lanczos4 (Sharp)
LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\UnDot.dll")
Undot() # Minimal Noise


Also note that I have to manually convert the frame rate to 23.976 which makes the video slight shuttering.

Please give ur views on-
1. The Deinterlace plugin being used
2. The Detelecine plugin being used
3. The frame rate of the video

Pls help me to solve this problem; any new suggestions/improvements/corrections are most welcome. :thanks:

Guest
29th April 2010, 21:30
Telecined PAL is rare on DVDs. In fact, I have never seen a telecined PAL DVD. Also, deinterlacing a telecined source is not a good way to proceed.

So please post a link to an unprocessed source sample.

Gser
29th April 2010, 22:51
lolwut You're using TDeint and ChangeFPS. Try tfm(d2v="C:\trail1.d2v", slow=2, hint=false) and AssumeFPS("ntsc_film"). Then you'll also have to slow down the audio. ChangeFPS will remove frames in this case which is not what you would normally want.

Warperus
29th April 2010, 23:00
albert1234
1) Do not use deinterlace at all
2) AFAIK there is no such thing as 25i in PAL DVD. Assuming it's 50i, we have standard 2:2 pulldown. You can simply weave fields instead of anything else. Slight color degradation is possible, but other than that you should be ok.
3) AssumeFPS is more common for PAL conversions. You'll have to work additionally with sound though.

crop( 8, 8, -8, 0)
...
Lanczos4Resize(720,528) # Lanczos4 (Sharp)You are blurring the whole image for unknown reason and transform it into non-standard resolution. What do you want from these transformations?

Guest
30th April 2010, 00:12
standard 2:2 pulldown We've had this discussion several times already. "standard 2:2 pulldown" does not exist. It just means "progressive". Yes, there can be a one-field phase shift that is fixed by field matching, but that is not pulldown. Pulldown means a top or bottom field is repeated, which is not the case for progressive PAL, with or without a phase shift.

[Yes, I know my old Decomb documentation erroneously refers to 2:2 pulldown.]

Instead of guessing, the OP should post a sample as I requested.

albert1234
30th April 2010, 05:35
Sorry neuron2, I don't know how to trim a dvd-video; so that the I can get a short .vob file :(

But to make things a bit more clear, I am posting u the mediainfo of the file-

ID : 224 (0xE0)
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, Matrix : Default
Bit rate mode : Constant
Bit rate : 7 768 Kbps
Nominal bit rate : 8 000 Kbps
Width : 720 pixels
Height : 576 pixels
Display aspect ratio : 4/3
Frame rate : 25.000 fps
Standard : PAL
Colorimetry : 4:2:0
Scan type : Interlaced
Scan order : Bottom Field First
Bits/(Pixel*Frame) : 0.749

poisondeathray
30th April 2010, 05:44
you could use dgsplit or dgindex (mark in/mark out) to cut a sample

FYI, mediainfo can be inaccurate - it just reads the header information (e..g it might be progressive flagged as interlaced or vice versa, or some other pattern). It's more important to examine the actual content

albert1234
30th April 2010, 09:46
:D Hoosh! at last uploaded clips;
my net connection really sucks, took 1.5 hrs to upload two 20MB clips!!!

OK back to the topic, both the clips are music videos.

Even they are from same source they are applied with different interlacing; very hard to determine, check it out-

http://www.mediafire.com/download.php?hjhyjy3hyjt (http://www.mediafire.com/download.php?hjhyjy3hyjt)

http://www.mediafire.com/download.php?k0m2xnhczgr

pls reply asap :thanks:

albert1234
30th April 2010, 09:49
Try tfm(d2v="C:\trail1.d2v", slow=2, hint=false) and AssumeFPS("ntsc_film").

whats with "tfm(d2v="C:\trail1.d2v", slow=2, hint=false)" :confused:

Audionut
30th April 2010, 10:48
srestore(frate=23.976)

That got rid of most of the blends.

http://avisynth.org/mediawiki/Srestore

edit: that works on the first sample.

For the second sample,

TempGaussMC_beta2(edimode="eedi2")
srestore()

http://forum.doom9.org/showthread.php?p=1378526#post1378526

I'd suggest splitting the footage so you can apply different scripts to each different section of video.
But I am also no where near the best when it comes to these things. Hopefully someone more knowledgeable drops by.

manono
30th April 2010, 12:29
The first one - Beautiful.vob - can't be fixed. It's been blend deinterlaced already and can't be unblended. Parts of it also seem to have had an improper interlaced resize done on it. It was made by idiots.

The second one, as Audionut says, just needs a bobber and and SRestore.

Gser
30th April 2010, 20:22
whats with "tfm(d2v="C:\trail1.d2v", slow=2, hint=false)" :confused:

figure it out

albert1234
30th April 2010, 20:53
srestore(frate=23.976)

That got rid of most of the blends.

http://avisynth.org/mediawiki/Srestore




I know how to use.dll plugin files in MeGUI script creator but I dont know how to use .avs script files.

On the above mentioned website there is "srestore.avsi" script. How to use it??

Audionut
1st May 2010, 04:00
Using your avs file in the first post as a template.

LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\mt-masktools.dll")
LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\removegrain.dll")
LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\repair.dll")
LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\mvtools2.dll")
LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\verticalcleaner.dll")
LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\eedi2.dll")
LoadPlugin("C:\Program Files\megui\tools\dgindex\DGDecode.dll")
LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\ColorMatrix.dll")
import("C:\Program Files\megui\tools\avisynth_plugin\srestore.avsi")
mpeg2source("C:\trail1.d2v", info=3)
ColorMatrix(hints=true, interlaced=true, threads=0)
TempGaussMC_beta2(edimode="eedi2")
srestore()
crop( 8, 8, -8, 0)
Lanczos4Resize(720,528)


Do note that this will be slow. It's slow for a reason. TempGaussMC is one of the better bobbers.
If it's to slow, you could replace TempGaussMC with a different bobber. I don't know of any other decent bobbers as I don't deal with interlacing all that often.

albert1234
1st May 2010, 05:54
Using your avs file in the first post as a template.

LoadPlugin("C:\Program Files\megui\tools\avisynth_plugin\mt-masktools.dll").........................I don't know of any other decent bobbers as I don't deal with interlacing all that often.

Thanks man for the script but MeGUI gives me error saying
ScriptError : there is no function named "TempGaussMC_beta2"

Audionut
1st May 2010, 07:34
Sorry, add this.

import("C:\Program Files\megui\tools\avisynth_plugin\TempGaussMC_beta2.avsi")

albert1234
2nd May 2010, 09:04
Sorry, add this.

import("C:\Program Files\megui\tools\avisynth_plugin\TempGaussMC_beta2.avsi")

Now MeGUI is giving new error!
It says -

The file C:\trail1.avs cannot be opened.
Error msg for ur refrence:Script Error: There is no function named "mt_makediff"
(C:\Program Files\megui\tools\avisynth_plugin\TempGaussMC_beta2.avsi, line 349)
(C:\Program Files\megui\tools\avisynth_plugin\TempGaussMC_beta2.avsi, line 159)
(C:\trail1.avs, line 9)

Audionut
2nd May 2010, 09:39
http://manao4.free.fr/masktools-v2.0a41.zip
http://home.arcor.de/kassandro/prerelease/RemoveGrain-1.0.rar
http://avisynth.org.ru/mvtools/mvtools-v2.5.10.zip
http://web.missouri.edu/~kes25c/EEDI2v092.zip
http://home.arcor.de/kassandro/prerelease/VerticalCleaner.rar

You need to rename the "mt-masktools-25.dll" to "mt-masktools.dll"

Depending on the CPU you have, you can use either the sse2 or sse3 versions removegrain, repair and verticalcleaner. Rename each of the files, removing the sse2 or sse3 part depending on which you choose. ie: rename "removegrainsse2.dll" to "removegrain.dll"

Copy mt-masktools.dll, removegrain.dll, repair.dll, verticalcleaner.dll, mvtools2.dll and eedi2.dll to,

C:\Program Files\megui\tools\avisynth_plugin\