PDA

View Full Version : Best script for going from ntsc to pal


goldrake72
6th July 2004, 22:28
Hi,
i'm looking for a script that does a perfect ntsc to pal
conversion.Is there a way for going directly from
29.97 to 25 without doing the inverse telecine to 23.976??
The problem is that i'd like to keep the same lenght of
the original ntsc video(like pro transcoders do)
without stretching the audio for the pal conversion.Infact if i use the inverse telecine i have to accelerate the video from 23.976 to 25 fps to match the pal video standard and after that i have to
strech the audio to lip-sync the video.
Please help me.

thanks

Manao
6th July 2004, 22:43
The proper way to do it is the way you described : inverse telecine to 23.976 and assuming 25 fps ( thus speeding up the audio to keep the sync ).

It's how professionnals do it when making PAL DVD from NTSC one ( it isn't true for animes, but most of the guys who do ntsc animes -> pal can't be called professionals )

If you want to keep the audio intact, you'll need to interpolate frames. That can be done, but it will lead to video artifacts.

On te other hand, a speed up of the audio from 23.976 to 25 won't be perceptible.

goldrake72
6th July 2004, 22:50
and what about with this script? : from ntsc 29.97 to pal 25

LoadPlugin("MPEG2DEC.dll")
LoadPlugin("SmoothDeinterlacer.dll")
MPEG2Source("d:\testvideo.d2v")
converttoyuy2(interlaced=true)
SeparateFields()
Weave()
SmoothDeinterlace(doublerate=true,lacethresh=3,staticthresh=5)
ConvertFPS(50) # or ChangeFPS(50)
LanczosResize(720,576)
SeparateFields()
SelectEvery(4,1,2)
Weave()
ConvertToRGB()

the problem is that i can't use mpeg2dec.dll but i have to use
mpeg2dec3.dll and i still have some ghost artifacts on fast
movements...is there a way to solve this problem??

thanks

Manao
6th July 2004, 22:59
i still have some ghost artifacts on fast movements...is there a way to solve this problem??Yes, by doing what I told you on the previous post.

If you really don't want to speed up the audio, then do an IT, and use MVConvertFPS ( MVTools, have a look on the avisynth development forum ) to change the framerate of the video. But you'll get artifacts ( motion at least will be good )

this (http://forum.doom9.org/showthread.php?s=&threadid=76634&highlight=pal+ntsc) should also interest you.

BTW, why do you want interlaced video in RGB ?

goldrake72
6th July 2004, 23:24
ok thanks,
where can i get mvtools??
is there a link for that?

thanks

Manao
6th July 2004, 23:28
You'll find a link in that discussion (http://forum.doom9.org/showthread.php?s=&threadid=76041&perpage=20&pagenumber=4), along with how to use it.

I see I wasn't able to convince you not to go with interpolation, though.

goldrake72
6th July 2004, 23:39
yes you've convinced me! ^_^

the fact is the here in italy we some anime edited onto vhs.
I want to take the video from the original ntsc japan dvd(much better video quality!) convert it to pal and sync the italian soundtrack to
the converted video.Every time i do this i have to perform
inverse telecine to get 23.97 progressive video.Then i speed
up the video to 25 and i have to stretch the audio(about 4%) to have
perfect lip-sync.With wavelab you can speed the audio without
changing the pitch.But there's a friend of mine who uses the
script i've posted ang he gets nearly perfect conversions
form 29.97 to 25 without having to stretch the audio because
the length of the converted video is identical to the lenght
of the italian soundtrack on vhs(converted professionaly from ntsc).
Mpeg2dec.dll doesn't work on my pc.I have to use mpeg2dec.dll
and with that library i get ghost artifacts....

but i want to try mvtools...

goldrake72
7th July 2004, 00:15
hi guys,
could you help me with the mvtools?
if i write mvconvertfps(fps=25)

and open the script with virtualdub i get an error saying

mvconvertfps invalid arguments???

which is he correct use of mvconvertfps??
why i get the error???

thanks

Manao
7th July 2004, 06:47
MVTools work with a server / client system : you first have to analyse the video with MVAnalyse, and then to use MVConvertFPS. Basically, the script will be the following : backward_vectors = source.MVAnalyse(isb = true)
forward_vectors = source.MVAnalyse(isb = false)
converted_clip = source.MVConvertFPS(backward_vectors, forward_vectors, fps = 25)There are a lot of parameters to both MVAnalyse and MVConvertFPS if you want to tweak their settings, use the documentation and the thread I pointed to to do so.