PDA

View Full Version : Convert PAL (25i) to NTSC (23.976i)


FatBoyGod
19th March 2005, 13:08
Is there any way to do this? I've been trawling the search results, and everything is just a little too techy for a complete newb.

Cheers

neuron2
19th March 2005, 15:18
NTSC is 29.97, not 23.976. What exactly are you trying to do?

FatBoyGod
19th March 2005, 15:26
I can't seem to get rid of the flashing that occurs when the camera pans in an encode I'm doing. I figured if I could get it back to it's original framerate, these would disappear. It's driving me insanr that no combination of filters seem to do the trick

neuron2
19th March 2005, 15:32
Please post a short clip of the unprocessed *source* video. It's not clear what you mean by "flashing". Are you encoding at the original 25fps, or are you changing it for the encode? Are you deinterlacing?

FatBoyGod
19th March 2005, 16:01
How do I get a clip from the vob files I have? I've opened the vob in vdub, but it won't let me save it to anything without processing it.

neuron2
19th March 2005, 16:42
You can use VOBSplit from the doom9 full download page. Meanwhile, what do you mean by "flashing"? Maybe a few screenshots could make it clear to us.

FatBoyGod
19th March 2005, 17:44
Wow, it doesn't make it easy does it?

I've made a short clip here http://www.lastartifice.com/sample

if you need more, I'll put a longer one up, if you'll pardon the expression

neuron2
19th March 2005, 18:19
Nothing that is worthwhile is easy. :)

OK, I have the clip. It's interlaced but I still can't guess what you mean by flashing. Again, can you please tell us what you mean by flashing, or otherwise describe the problem you are having?

FatBoyGod
19th March 2005, 18:32
I put an encoded clip of the same segment with the vob. Maybe I'm describing it wrongly, I guess you could call it ghosting.

edit: It was encoded using autoGK, so I don't know what the avs looks like

edit 2: that's a lie, here's a script I found:

LoadPlugin("e:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("e:\PROGRA~1\AutoGK\filters\decomb.dll")
file="****\agk_tmp\interlace.log"
global sep="-"
function IsMoving() {
global b = (diff < 1.0) ? false : true}
mpeg2source("****\agk_tmp\x5.d2v")
c = SelectRangeEvery(180,18)
global clip = c
c = WriteFile(c, file, "a", "sep", "b")
c = FrameEvaluate(c, "global a = IsCombed(clip, 32)")
c = FrameEvaluate(c, "IsMoving")
c = FrameEvaluate(c,"global diff = 0.50*YDifferenceFromPrevious(clip) + 0.25*UDifferenceFromPrevious(clip) + 0.25*VDifferenceFromPrevious(clip)")
crop(c,0,0,4,4)

Paulcat
19th March 2005, 18:35
Probably it's jumpy during camera movement. Going from PAL to NTSC gave me the same weird jittering sometimes, it's normally not noticable on the PC but boy it's pretty evident on a DVD player!

Will DGPulldown allow him to go from 25 fps to 29.976 fps? If so, that might be the easiest route...

neuron2
19th March 2005, 18:53
FatBoy, it's field blended garbage from an NTSC->PAL conversion. You can't fix it. Just deinterlace it and leave it as is.

Search for "blended fields" to get a better understanding.

FatBoyGod
19th March 2005, 20:05
damn, didn't realise the problem was so prevalent. I guess I'll just have to live with it then. bugger. At least it doesn't look so bad on the TV.

scharfis_brain
19th March 2005, 20:32
if it was telecined FILM before the standards conversion
restore24 may be able to 're-progressivize' it.

neuron2
20th March 2005, 04:39
Hey scharfi, tell me with no spin, do any of these deblenders actually work acceptably in other than very limited circumstances? I'd appreciate your experience, as mine is limited.

scharfis_brain
20th March 2005, 05:07
restore24 works VERY well with
24p -> 60i -> 50i conversions.
(that's the thing it was invented for)

but it also works for
25p -> 60i blend conversions
or
24p -> 60i analogue conversions (they do also contain blends)

it is even able to handle
30p -> 50i

but it works best with the first mentioned type of conversion.

Yesterday, I tried it on the intro of starship voyager.
I was astonished!
No jerks at all!
This intro is tough stuff for a deblender, because the nebula scene hardly contains any edges to build a blend detection on.

but if the source is really bad, restore24 will fail like every other image based method, too!

(telecide fails too on bad video, doesn't?)

neuron2
20th March 2005, 05:11
(telecide fails too on bad video, doesn't?) Of course, that's why I asked the question!

FatBoyGod
20th March 2005, 13:33
Sweet, sounds like it will do the trick. Is there a step by step around somewhere? I've never used avisynth on it's own, i've always useg gk or agk, so I have no idea where to start.

Cheers guys

FatBoyGod
21st March 2005, 21:44
Hi, I'm using vdubmod 1.5.10.1, but it keeps giving me and avisynth script open failed message, I'm just using the example script, but changeing the video locations, nothing else.

Could somebody please help me, I don;t mean to whine, but damn me if I'm not pulling my hair out. I've made a d2v file with dgindex, which I guess would be used at the start of the script, and I've hard coded the locations of each of the dlls. I've really never used vdub other than to split or join movies.

neuron2
21st March 2005, 22:03
Post the full exact script that fails and the full exact error message!

FatBoyGod
21st March 2005, 22:26
### Set this value to 2/3 of your Systems RAM (I have 768MB),
# if your machine ceeps crashing using this script
#setmemorymax(512)


#### ensure modifying the paths to your *.AVS and *.DLL files

# load the needed functions
import("C:\Documents and Settings\Fatboy\Desktop\restore24\restore24.avs")

# load the needed plugins
loadplugin("C:\Documents and Settings\Fatboy\Desktop\restore24\plugins\masktools.dll")
loadplugin("C:\Documents and Settings\Fatboy\Desktop\restore24\plugins\tdeint.dll")
loadplugin("C:\Documents and Settings\Fatboy\Desktop\restore24\plugins\leakkerneldeint.dll")
loadplugin("C:\Documents and Settings\Fatboy\Desktop\restore24\plugins\mpeg2dec3.dll") #or dgdecode.dll

loadplugin("C:\Documents and Settings\Fatboy\Desktop\restore24\plugins\avisynth_c.dll")
loadcplugin("C:\Documents and Settings\Fatboy\Desktop\restore24\plugins\smartdecimate.dll")
loadCplugin("C:\Documents and Settings\Fatboy\Desktop\restore24\plugins\ibob.dll")



# load the Video, use postprocessing for better blend-recognition on MPEG Video
mpeg2source("F:\X files stuff\XFILES_DISC2\VIDEO_TS5\x5.d2v",cpu=4,iPP=true)
#AVISource("video.avi")

# setup the correct Fieldorder, when using sources other than MPEG2.
#AssumeTFF()
#AssumeBFF()

### create the clip that is used for blend detection
a2=r24kernelbob(0) # best blend detection, slow
a0=ibob() # fastest method, maybe unprecise for detecting blends

### create the clip to be shown after the blends had been killed

b2=TDeint(mode=1,tryweave=false)# best resolution as possible gets restored, slow
b1=r24kernelbob(7) # much faster than TDeint(), but not the best resolution
b0=a0 # ultrafast, but only for speedfreaks


### call restore24 using both clips

# recommened, best, slow (a2, b2)
# standard, medium, medium: (a2, b1)
# not recommened, medium, fast: (a0, b1)
# never recommened, worst, fastest: (a0, b0)

restore24(a2, b2)

### eventually downscale it to NTSC-resolution (hides some artifacts)

# lanczosresize(width,480)

it's pretty much the script from the download. and the error message is Avisynth open failure:
Avisynth: script open failed!

neuron2
21st March 2005, 23:26
>it's pretty much the script from the download

What download (please give me the URL)?

Scharfi should set you straight on this since he recommended it. :)

SeeMoreDigital
22nd March 2005, 00:55
Is it something like this (http://82.2.167.237/Uploaded_Files/Doom9_Forum_files/720x480@23.976.zip) that you are looking for?

The Mpeg4 encode is 720x480 @ 23.976fps with 4:3 DAR signalling. So if you don't have the relevant Mpeg4 DSdec filter, it wont be displayed correctly!


Cheers

FatBoyGod
22nd March 2005, 09:53
http://forum.gleitz.info/attachment.php?attachmentid=70159 is the download link, and this is the thread (http://forum.doom9.org/showthread.php?s=&threadid=75432&highlight=restore24)it came from

FatBoyGod
22nd March 2005, 09:56
Is it something like this that you are looking for?

The Mpeg4 encode is 720x480 @ 23.976fps with 4:3 DAR signalling. So if you don't have the relevant Mpeg4 DSdec filter, it wont be displayed correctly!


Cheers

Holy cow, how the hell did you do that? Was it easy? Easy enough for a complete muppet like myself to understand?

neuron2
22nd March 2005, 15:03
Originally posted by FatBoyGod
http://forum.gleitz.info/attachment.php?attachmentid=70159 is the download link, and this is the thread (http://forum.doom9.org/showthread.php?s=&threadid=75432&highlight=restore24)it came from Then you should post over there for assistance with it!