PDA

View Full Version : A DVDRB PAL to NTSC script


nashcity
18th January 2007, 09:03
I'm looking a good avisynth script to convert my PAL DVD to NTSC. I really don't have much of an idea what I'm doing here. All I've been doing with DVDRB is DVD encoding and occasionally using various filters (undot, msharpen, fluxsmooth etc....) I guess I just want a script I can throw into DVDRB's filter editor so I can convert my PAL dvds to ntsc. Is it possible??? I've come across a couple of scripts:

Version 1

Loadplugin("C:\Program Files\AviSynth 2.5\plugins\mpeg2dec.dll")
Loadplugin("C:\Program Files\AviSynth 2.5\plugins\AC3Source.dll")
mpeg2source("E:\DVD\B DGIndex\test.d2v")
AC3Source("E:\DVD\B DGIndex\Test.ac3")
AssumeFPS(23.976,true)
Lanczos4Resize(720,480)

Version 2

LoadPlugin("MPEG2DEC.dll")
LoadPlugin("SmoothDeinterlacer.dll")
MPEG2Source("DRIVE:\PATH\VTS_xx_x.d2v")
SmoothDeinterlace(doublerate=true)
LanczosResize(720,480)
ChangeFPS(59.94) # or ConvertFPS(59.94)
SeparateFields()
SelectEvery(4,1,2)
Weave()
ConvertToRGB()


Thanks in advance for any help.

jptheripper
20th January 2007, 17:56
you are making life hard on yourself

do a search on dgpulldown


you want to reencode to 720x480, then apply flags to change the framerate and rebuild.

jdobbs has said many times he is working on including it.

jdobbs
20th January 2007, 18:01
You can't institute any filters that will change the frame count of the source. Doing so will likely cause DVD-RB to fail.

jptheripper
20th January 2007, 18:10
Of course jdobbs is right,

i was in-specific in saying "rebuild" and i should have said

1. reencode with resizing filter in dvdrb
2. apply framerate flags with dgpulldown
3. rebuild (movie only, sorry) with muxman, dvdlab, etc..

jdobbs
20th January 2007, 19:01
Actually I was answering the original post... :cool:

LakersFan
29th January 2007, 20:44
jdobbs,
i know you've mentioned on eventually implementing PAL to NTSC conversions, but are you able to give us an update or ETA? If not, that's ok. I'm not trying to push, just trying to see how close we really are. ;)

Thanks.

jdobbs
30th January 2007, 01:07
Sorry, it hasn't been high on the priority list. I haven't made much forward movement on that one.

LakersFan
30th January 2007, 05:57
No prob. Just wanted an idea. Thanks for answering. :)

Sn8kbordin
4th February 2007, 22:24
you are making life hard on yourself

do a search on dgpulldown


you want to reencode to 720x480, then apply flags to change the framerate and rebuild.

jdobbs has said many times he is working on including it.

So, if I understand correctly, I need to add line to AVS script in "Filter Editor" in DVD-RB PRO to resize to 720x480. Then change the frame rate outside the DVD-RB, and rebuild with DVD-RB. Do I have this right?

Where and how do I "apply flags to change the frame rate"?

Also, the source is PAL DVD wide screen, without any bars, will just resizing it to 720x480 (NTSC) change aspect ratio or will it look "normal"?

steptoe
8th February 2007, 22:53
Try looking at these function for converting PAL to NTSC and NTSC to PAL

http://forum.doom9.org/showthread.php?t=113256&page=5

I haven't tried these scripts/functions as I'm based in UK and my cheapo DVD player can handle PAL and NTSC without any problems and my TV doesn't have any problem displaying either, even though its quite old now


Seems to be a major problem in the US with most requests coming from over there. Maybe people need to start kicking up a fuss as to why its so difficult to be able to play PAL DVDs in the US

The world doesn't revolve around the US, but it appears a lot of companies seem to think so

jdobbs
9th February 2007, 01:06
The bottom line is: you can't do the conversion with filters in DVD-RB, because it will change the frame count.

My players will play PAL without any problems, as long as it's attached to the television with component connectors. Of course trying to output PAL to an NTSC TV via composite or SVIDEO output will cause it to choke... the TV expects NTSC through those inputs.

dwallersv
10th February 2007, 02:06
IS component video spec'd to handle arbitrary framerates?

I bought a cheapo Toshiba DVD player recently because it supported DivX so I could play my Xvid encoded material. It works great in terms of playability.

However, I've found that with PAL 25 fps material, it is has a lot of jerkiness in the video -- the hardware just doesn't know how to gracefully convert framerate from 25->29.97. It does a great job with 23.976 fps film format, as I suspect (but don't know for sure) that it's simply doing on-the-fly 3:2 pulldown.

Anyway, to watch PAL source material, I've been transcoding to NTSC framerates using avisynth ConvertFPS() function. I'm not have very good results -- I usually demux the original audio, and then remux it in with the framerate converted video. I always have problems with it falling out of sync as the program progresses.

Anyone have a suggestion or solution for how to address this?

therat
10th February 2007, 04:20
I bought a cheapo Toshiba DVD player recently because it supported DivX so I could play my Xvid encoded material. It works great in terms of playability.

However, I've found that with PAL 25 fps material, it is has a lot of jerkiness in the video -- the hardware just doesn't know how to gracefully convert framerate from 25->29.97. It does a great job with 23.976 fps film format, as I suspect (but don't know for sure) that it's simply doing on-the-fly 3:2 pulldown.

Anyway, to watch PAL source material, I've been transcoding to NTSC framerates using avisynth ConvertFPS() function. I'm not have very good results -- I usually demux the original audio, and then remux it in with the framerate converted video. I always have problems with it falling out of sync as the program progresses.

Anyone have a suggestion or solution for how to address this?

are you talking about jerkiness when watching xvids or DVDs?

Boulder
10th February 2007, 13:59
IS component video spec'd to handle arbitrary framerates?

I bought a cheapo Toshiba DVD player recently because it supported DivX so I could play my Xvid encoded material. It works great in terms of playability.

However, I've found that with PAL 25 fps material, it is has a lot of jerkiness in the video -- the hardware just doesn't know how to gracefully convert framerate from 25->29.97. It does a great job with 23.976 fps film format, as I suspect (but don't know for sure) that it's simply doing on-the-fly 3:2 pulldown.

Anyway, to watch PAL source material, I've been transcoding to NTSC framerates using avisynth ConvertFPS() function. I'm not have very good results -- I usually demux the original audio, and then remux it in with the framerate converted video. I always have problems with it falling out of sync as the program progresses.

Anyone have a suggestion or solution for how to address this?
Simply resize to NTSC resolution in Avisynth, encode at 25fps and use DGPulldown to go 25->29.97fps. Author and burn. No need to touch the audio at all.

dwallersv
11th February 2007, 17:33
Simply resize to NTSC resolution in Avisynth, encode at 25fps and use DGPulldown to go 25->29.97fps. Author and burn. No need to touch the audio at all.

I'll try that. What does DGPulldown do in the case of 25->29.97?

I'm familiar with the 3:2 pulldown (telecine) process, and how this is implemented via flags in the stream that cause the decoder to perform the 3:2 frame-mixing process on the fly during play.

Is there a similar pulldown pattern to go from 25->29.97, and it's supported by mpeg decoders? If so, cool!

As for resizing, I don't even need to do that -- the DVD player has a really flexible display format menu that handles the necessary resizing on the fly.

@therat

Yes, I'm talking about viewing Xvid compressed material directly. I don't know if this is a violation of the TOU, but I'll take the chance: My purpose here is in viewing British comedy and other TV shows not available in the US. I recieve this source material as Xvid encoded PAL. The sole reason I sprung $70 at COSTCO for this DVD player was its support for DivX encoded material.

It works great in terms of being to play back just about anything encoded with DivX or Xvid codecs. Doesn't barf at non-NTSC framerates. Handles 23.976 fps qiute well. It doesn't seem to have a good algorithm, though, for dealing with PAL framerates. so there is constant jerking of the video.

dwallersv
11th February 2007, 17:40
URP... DGPulldown is an MPEG2 tool. Doesn't apply to MP4 streams, eh?

Boulder
11th February 2007, 19:41
Since your post is in the DVD Rebuilder forum, one assumes that you have an MPEG2 source. Nevertheless, you can do as I advised, just encode to MPEG2 with any program you wish and use DGPulldown on the resulting m2v file.

Still, you might be breaking the rules but I leave that part to the moderators to determine.

wmansir
12th February 2007, 05:24
Not only is this a probable Rule 6 violation, the new topic is beyond the domain of this sub-forum.