PAL to NTSC telecining

Anything related to video and my tools that is not a support request.
DAE avatar
Sharc
Posts: 233
Joined: Thu Sep 23, 2010 1:53 pm

Re: PAL to NTSC telecining

Post by Sharc »

Yes, I am familiar with the usual film-to-PAL (24 => 25) DVD speedup and pitch shift issues. (The speedup can be a godsend for certain movies, when it's a relief to finish watching a couple of minutes earlier...... ;) ) .
Pitch shift can be an annoyance though with concert DVDs, especially for the few people (not me) with an "absolute hearing" (I don't know the correct term in English).

In my case the native footage is 25 fps, and so is the audio. So I actually had to slowdown it to 23.976 and eventually apply audio pitch correction for the sensitive listener. Then apply 2:3 telecine to 29.97. No big deal, I was just wondering whether there exists a special (or standardized) telecine pulldown pattern for direct 25 => 29.97 (NTSC). Apparently not.

By the way, from the wiki for PAL to NTSC:
http://avisynth.nl/index.php/Interlacin ... nterlacing

Code: Select all

....
Video = SeparateFields (Video) # So that you may deal with the individual fields.
Video = SelectEvery (Video, 8, 0,1, 2,3,2, 4,5, 7,6,7) 
.....
Shouldn't this be
Video = SelectEvery (Video, 8, 0,1, 2,3,2, 5,4, 7,6,7) in order not to break the Top-Bottom sequence?
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: PAL to NTSC telecining

Post by admin »

Sharc wrote: Shouldn't this be
Video = SelectEvery (Video, 8, 0,1, 2,3,2, 5,4, 7,6,7) in order not to break the Top-Bottom sequence?
Seems you are correct. Well spotted!

This gives a ratio of 10 output fields per 8 input fields. That converts 25 to 31.25. Why wouldn't they use a correct ratio such as 12 per 10. I must be missing something. :scratch:
DAE avatar
Sharc
Posts: 233
Joined: Thu Sep 23, 2010 1:53 pm

Re: PAL to NTSC telecining

Post by Sharc »

admin wrote:
Sharc wrote: Shouldn't this be
Video = SelectEvery (Video, 8, 0,1, 2,3,2, 5,4, 7,6,7) in order not to break the Top-Bottom sequence?
Seems you are correct. Well spotted!

This is giving a ratio of 10 output fields per 8 input fields. That converts 25 to 31.25. Why wouldn't they use a correct ratio such as 12 per 10. I must be missing something. :scratch:
That's the standard 2:3 telecining which is used for converting 23.976 to 29.97 (or 24 to 30, or 25 to 31.5).
How would a 12 per 10 pulldown look like? Would the usual playback HW understand it and IVTC it correctly? :scratch:

Edit:
I'll try
Selectevery(10, 0,1, 2,3,2, 5,4, 7,6,7,8,9) and see how it plays back (2 combed + 4 progressive frames)
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: PAL to NTSC telecining

Post by admin »

The spec for repeat flag handling does not require that the pattern is 3:2 or any other fixed pattern. However, I don't know what players will do with the 6/5 pattern. Please let us know. Do these players even do IVTC with hard telecine?
DAE avatar
Sharc
Posts: 233
Joined: Thu Sep 23, 2010 1:53 pm

Re: PAL to NTSC telecining

Post by Sharc »

Hard-telecine 6/5 was exactly my concern. I'll run an encode and report back how it behaves ....

Edit:
Here some results:

PC: The 12/10 telecined stream can be perfectly IVTCed with script+PC, as expected. Audio adjustment is minimum 24.75/25=0.99 (1% slowdown only, same as mentioned by Aleron Ives for the frame repeat method). It's a bit of a surprise to me that this method has not gained more attention in the past compared to the usual 2:3 method (24 <=> 25) with much stronger audio adjust.

TV: When streaming the 12/10 hard-telecined file to my TV I noticed the pulldown judder, hence my TV does not do IVTC. I assume it is just bobbing the fields, possibly even in combination with some interpolation. Still, the judder is acceptable and definitely less annoying compared to the more simple frame repeat approach.

HW standalone players: I didn't do any tests, but for mpeg2/DVD I think to remember that there existed 2 classes of DVD players: Flag reading players doing IVTC based on the RFF/TFF flags (the vast majority I believe), and some (more expensive) cadence reading DVD players performing IVTC based on the discovery of the fields cadence, with a fallback mode to flag reading. I don't know (I have actually some doubts) whether the cadence reading players were capable to track anything else but the standard 2:3 cadence.

I think we have collected all practical options now. Thanks everyone for sharing ideas.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: PAL to NTSC telecining

Post by admin »

Great information, Sharc! Thank you for your testing and analysis. Hopefully we are moving into an era of progressive video at a frame rate supported by all civilized nations.
DAE avatar
Aleron Ives
Posts: 126
Joined: Fri May 31, 2013 8:36 pm

Re: PAL to NTSC telecining

Post by Aleron Ives »

Unless you have to target DVD-Video as your output format, I don't think there's any reason to do any of this anymore. HDTVs support all framerates regardless of region, so if you have a Blu-ray player, you can just leave the video as 25 fps and burn it to a DVD-R in a MP4 or MKV container and play the stream without telecining it.
DAE avatar
Sharc
Posts: 233
Joined: Thu Sep 23, 2010 1:53 pm

Re: PAL to NTSC telecining

Post by Sharc »

Aleron Ives wrote:Unless you have to target DVD-Video as your output format, I don't think there's any reason to do any of this anymore. HDTVs support all framerates regardless of region, so if you have a Blu-ray player, you can just leave the video as 25 fps and burn it to a DVD-R in a MP4 or MKV container and play the stream without telecining it.
Basically yes, but I want to add a simple menu and therefore I author the files as a Blu-Ray disc / Blu-ray structure (or DVD in the past). I am aware that the Blu-ray standard includes 25p and 25i (with certain format restrictions), so I should actually be done with it. However, I learned to my very surprise that the support of 25/50 is optional for Blu-Ray standalones, and there seem to exist Blu-ray players which refuse to play 25fps footage even though it is Blu-ray compliant. I have not experienced this myself but there was a discussion about it in another forum (I still try to find it). So for my giveaways I decided to take the safe route and make it all "NTSC" compliant.
(The 25 fps player restriction is perhaps one reason why Blu-ray discs for sale in NTSC countries have original 25 fps productions always(?) converted to 23.976, 24 or 29.97. I have seen very ugly 29.97 converts with interpolation artefacts and blends which could have been avoided with pulldown techniques.)
Oh well, the PAL/NTSC heritage .....
DAE avatar
Aleron Ives
Posts: 126
Joined: Fri May 31, 2013 8:36 pm

Re: PAL to NTSC telecining

Post by Aleron Ives »

Yikes, thanks for that bit of information. I always buy the UK DVD/BD for PAL shows, because I'm not confident that the NTSC conversion will be handled properly, and I want the original video format, anyway. I wasn't sure if this was necessary for BD, because the standard should allow them to just use the PAL format for the North/South American release, but I've always played it safe and gotten UK BDs, because I can never find framerate information for BD releases to confirm that they're 25 fps. It seems I was right to be cautious and assume the people who author these discs don't know what they're doing. :wow:
DAE avatar
Sharc
Posts: 233
Joined: Thu Sep 23, 2010 1:53 pm

Re: PAL to NTSC telecining

Post by Sharc »

Doing some more research, I am not really convinced that 25/50fps support for Blu-ray is "mandatory in PAL regions only". It seems to be a quote from the "Blu-ray Demystified" book only, which is NOT a standard. But nevertheless, I would also recommended to avoid 'NTSC editions' of converted 25 fps PAL material. You can't be sure what you get. It's technically playable, but it can be very disappointing.
DAE avatar
jpsdr
Posts: 214
Joined: Tue Sep 21, 2010 4:16 am

Re: PAL to NTSC telecining

Post by jpsdr »

Sharc wrote: Pitch shift can be an annoyance though with concert DVDs, especially for the few people (not me) with an "absolute hearing" (I don't know the correct term in English).
...
and eventually apply audio pitch correction for the sensitive listener.
I forgot to said that, yes, music can be the exception, when you perfectly know a music/song, you can notice the speedup even in absolute.

The few times i've tried pitch correction, the result was... "howfull", and you'll harm even more a sensitive listener.
But, it was a little time ago (several years), so maybe now it's better... :?:

Otherwise, i've personnaly authored 25p (576 and 1080) Blu-Ray tricking with "fake interlaced" when encoding, and it played on my standalone player perfectly.
After, i didn't try on others players, so...
DAE avatar
Sharc
Posts: 233
Joined: Thu Sep 23, 2010 1:53 pm

Re: PAL to NTSC telecining

Post by Sharc »

Finally (!) I found the document which made me believe that not all Blu-Ray players support 25 fps ("PAL"), and converting 25 to 29.97 ("NTSC") might still be advisable to be on the safe side, even in the global Blu-Ray age.

Search for example for "50Hz" in the document here (e.g. Para. 3.3.1, 3.3.2, 6.2.1):
http://www.blu-raydisc.com/assets/Downl ... -18780.pdf
DAE avatar
Aleron Ives
Posts: 126
Joined: Fri May 31, 2013 8:36 pm

Re: PAL to NTSC telecining

Post by Aleron Ives »

What about if you omit menus? BDMV has many arbitrary restrictions that don't apply to stand alone video files, e.g. the low consecutive B-frame cap.
DAE avatar
jpsdr
Posts: 214
Joined: Tue Sep 21, 2010 4:16 am

Re: PAL to NTSC telecining

Post by jpsdr »

I've read indeed the document, it's... astonashing.
I mean, it's supposed to be a spec. Either a video format is supported, or it's not.
How can you have a spec with a format "wich may not be supported by all players"...?
It's totaly useless.
DAE avatar
Sharc
Posts: 233
Joined: Thu Sep 23, 2010 1:53 pm

Re: PAL to NTSC telecining

Post by Sharc »

No. It is NOT a spec. As the title says, it is just a White Paper (a tutorial if you like). That makes a huge difference.
I don't have access to the Blu-Ray spec. but I think to remember that it is a document of more than 1000 pages.
DAE avatar
jpsdr
Posts: 214
Joined: Tue Sep 21, 2010 4:16 am

Re: PAL to NTSC telecining

Post by jpsdr »

Ok.
DAE avatar
Sharc
Posts: 233
Joined: Thu Sep 23, 2010 1:53 pm

Re: PAL to NTSC telecining

Post by Sharc »

Eventually coming back to the original question, it seems that the usual method for 25p -> 29.97i conversion (hard-telecining) is simply

Code: Select all

changefps(59.94)
separatefields()
selectevery(4,0,3)   #selectevery(4,1,2) for alternate field order
weave()
Post Reply