Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Announcements and Chat > General Discussion

Reply
 
Thread Tools Search this Thread Display Modes
Old 21st June 2016, 23:50   #1  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 1,056
Duplicating 249 out of every 1001 fields

Correct me if I'm wrong but couldn't 24 fps material be converted to 30,000/1,001 with no speed change whatsoever by duplicating 249 out of every 1001 fields, rather than slowing down by 0.1% and then duping every fourth field?
__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers.
Katie Boundary is offline   Reply With Quote
Old 22nd June 2016, 01:38   #2  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,829
I haven't done the math but even if it was correct it'd be a convoluted telecine process that'd be harder to reverse, and I suspect unlike the traditional pulldown pattern where for every five frames there's three "clean" frames and two "dirty" frames, the percentage of dirty frames would be a lot higher. It might be do-able now, but back in the early days of NTSC I doubt the technology existed, and it's probably still not worth it to correct an undetectable speed change, especially as DVD is a previous generation format and newer formats such as Bluray support 24p.
hello_hello is offline   Reply With Quote
Old 22nd June 2016, 02:05   #3  |  Link
johnmeyer
Registered User
 
Join Date: Feb 2002
Location: California
Posts: 2,695
A 0.1% speed change is completely impossible to detect, so there is no reason to avoid it on the video side. For the audio, modern speed change algorithms can handle even 1-2% speed changes without any discernable flanging or other issues. So for the audio, 0.1% speed change would be completely impossible to detect.

I do both of these things almost every day (add pulldown and adjust audio speed while maintaining the pitch) and have done extensive tests to make sure the results are optimal. Thus, I am quite certain about both of these statements.

I'd also point out that standard 3:2 pulldown is very easy to do and generates very predictable, and very uniform results. One thing you always want to avoid when adding pulldown is an irregular pattern. All pulldown accentuates the judder inherent in low framerate video (such as 24 fps film), but when you have an irregular pattern, any occasional extra or missing field will usually stick out like a sore thumb.
johnmeyer is offline   Reply With Quote
Old 22nd June 2016, 03:20   #4  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
Quote:
Originally Posted by Katie Boundary View Post
Correct me if I'm wrong but couldn't 24 fps material be converted to 30,000/1,001 with no speed change whatsoever by duplicating 249 out of every 1001 fields, rather than slowing down by 0.1% and then duping every fourth field?
Are you asking about hard-telecining it? If so, why? First, as johnmeyer mentioned, it's a complete waste of time. Second, hard-telecining is not at all encoder efficient and results in a much lower quality result for the same file size than if you had encoded it progressively to begin with. And third, you can soft-telecine it as easily as you can apply standard 3:2 pulldown.

It will change the length slightly, though, if the source is 23.976fps, and require reencoding the audio.
Attached Images
 
manono is offline   Reply With Quote
Old 22nd June 2016, 05:19   #5  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 1,056
Quote:
Originally Posted by johnmeyer View Post
A 0.1% speed change is completely impossible to detect, so there is no reason to avoid it on the video side. For the audio, modern speed change algorithms can handle even 1-2% speed changes without any discernable flanging or other issues. So for the audio, 0.1% speed change would be completely impossible to detect.
It's not about being able to "detect" anything. It's about appeasing the obsessive-compulsive demons. The guys at Mainframe have the same demons; they convert from 25p to 29.97 by duping 199 out of every 1001 fields.

Quote:
Originally Posted by manono View Post
Are you asking about hard-telecining it?
No.
__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers.
Katie Boundary is offline   Reply With Quote
Old 22nd June 2016, 06:58   #6  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Quote:
Originally Posted by Katie Boundary View Post
Correct me if I'm wrong but couldn't 24 fps material be converted to 30,000/1,001 with no speed change whatsoever by duplicating 249 out of every 1001 fields, rather than slowing down by 0.1% and then duping every fourth field?
Yes, theoretically it should be working.
Sharc is offline   Reply With Quote
Old 22nd June 2016, 07:34   #7  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
Quote:
Originally Posted by Katie Boundary View Post
The guys at Mainframe have the same demons; they convert from 25p to 29.97 by duping 199 out of every 1001 fields.
That's better than field-blending PAL to NTSC, but not nearly as good as encoding as progressive 25fps and then adding 3:2:3:2:2 pulldown. At least the hard telecine can be 'IVTC'd' back to progressive 25fps.
Quote:
Are you asking about hard-telecining it?
No.
So you're planning in leaving it as separate fields? If you plan on weaving it back into frames then it's hard telecined. And encoding it as 24fps and adding soft pulldown is a much better solution. Unless I'm misunderstanding something, Always possible.

Last edited by manono; 22nd June 2016 at 07:37.
manono is offline   Reply With Quote
Old 22nd June 2016, 15:36   #8  |  Link
colours
Registered User
 
colours's Avatar
 
Join Date: Mar 2014
Posts: 308
Quote:
Originally Posted by hello_hello View Post
I suspect unlike the traditional pulldown pattern where for every five frames there's three "clean" frames and two "dirty" frames, the percentage of dirty frames would be a lot higher.
The pattern of combed/clean frames would be different and have a period of 1250 frames, but the overall proportion of combed frames would remain at exactly 40% (i.e. 500 combed frames every 1250).
__________________
Say no to AviSynth 2.5.8 and DirectShowSource!
colours is offline   Reply With Quote
Old 22nd June 2016, 16:04   #9  |  Link
Ghitulescu
Registered User
 
Ghitulescu's Avatar
 
Join Date: Mar 2009
Location: Germany
Posts: 5,769
The 0.1% speed change was historically motivated.
The issue that caused this change was solved decades ago.
I still wonder why people do not abandon it and stay with 30fps, that would work also with old materials.

About duplicating frames - this is not a good method.
__________________
Born in the USB (not USA)
Ghitulescu is offline   Reply With Quote
Old 22nd June 2016, 17:28   #10  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,351
From 4 frames (8 fields) per 1/6 second to 5 frames (10 fields) per 1/6 second:

AA, BB, CC, DD → AA, BB, BC, CD, DD

And after 199 sequences of 5 frames, there must be 1 sequence of 4 frames.

Well, at least this is the way I would do it...

Quote:
Originally Posted by Ghitulescu View Post
I still wonder why people do not abandon it and stay with 30fps, that would work also with old materials.
The same reason why ASCII has not been incinerated yet, I presume.
filler56789 is offline   Reply With Quote
Old 22nd June 2016, 18:18   #11  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Quote:
Originally Posted by filler56789 View Post
From 4 frames (8 fields) per 1/6 second to 5 frames (10 fields) per 1/6 second:

AA, BB, CC, DD → AA, BB, BC, CD, DD

And after 199 sequences of 5 frames, there must be 1 sequence of 4 frames.

Well, at least this is the way I would do it...
Possible, but it would break the cadence which could cause a problem for some DVD players I think, e.g. trigger these to switch (temporarily) into video deinterlace mode.
Sharc is offline   Reply With Quote
Old 22nd June 2016, 20:23   #12  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
Quote:
Originally Posted by Sharc View Post
Possible, but it would break the cadence which could cause a problem for some DVD players I think, e.g. trigger these to switch (temporarily) into video deinterlace mode.
If it's hard telecined it will have been encoded as interlaced and the vast majority of players (the flag reading ones) are just going to deinterlace the whole thing anyway.

It's only the relatively few cadence readers that will perform an on-the-fly IVTC so-to-speak and might conceivably trip over that break in the usual cadence. But I don't think they will because it usually takes even a very good DVD player (think Oppo or Denon) a few frames to adjust.
manono is offline   Reply With Quote
Old 29th June 2016, 20:42   #13  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 1,056
Quote:
Originally Posted by manono View Post
That's better than field-blending PAL to NTSC, but not nearly as good as encoding as progressive 25fps and then adding 3:2:3:2:2 pulldown.
In other news, 2 is more than 1 but not as much as 3.

Quote:
Originally Posted by manono View Post
So you're planning in leaving it as separate fields?
No. Why the hell would I do that?

Quote:
Originally Posted by manono View Post
And encoding it as 24fps and adding soft pulldown is a much better solution.
The only solution worth considering.
__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers.
Katie Boundary is offline   Reply With Quote
Old 11th July 2016, 14:11   #14  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,744
By the way, when movies are converted (slowed-down) from 24p to 23.976p by the studios for Blu-rays for example, is the sound slowed-down too or is another method used (resynch every x minutes) ?
Music Fan is offline   Reply With Quote
Old 11th July 2016, 16:34   #15  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,496
Most likely simply slowed down. It's such a a tiny change it doesn't warrant doing anything more complicated. You'd have to resync probably at least once a minute to avoid it drifting noticeably if you weren't going to slow it down.
__________________
My AviSynth filters / I'm the Doctor
wonkey_monkey is offline   Reply With Quote
Old 11th July 2016, 18:35   #16  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,744
Ok, but anyway something has to be done ; otherwise, for a 2 hour movie (7200 sec), one would get a 7 second delay at the end, it's quite big.
But I wonder if changing audio's duration so slightly (0,1 %) is that simple ; calculations are maybe more complex than simply doubling or halving it, as if only one frame had to be added every 1000 frames keeping the fluidity (to make a comparison with video).
Music Fan is offline   Reply With Quote
Old 12th July 2016, 05:14   #17  |  Link
johnmeyer
Registered User
 
Join Date: Feb 2002
Location: California
Posts: 2,695
Quote:
Originally Posted by Music Fan View Post
Ok, but anyway something has to be done ; otherwise, for a 2 hour movie (7200 sec), one would get a 7 second delay at the end, it's quite big.
But I wonder if changing audio's duration so slightly (0,1 %) is that simple ; calculations are maybe more complex than simply doubling or halving it, as if only one frame had to be added every 1000 frames keeping the fluidity (to make a comparison with video).
Yes, it is that simple. One click. You can do it with or without pitch correction, but the change is so subtle, you'd probably never hear the pitch change.

The reason it is so simple is that audio is a completely different animal than video when it comes to changing duration. Why? Well, neglecting, for the moment, the sampling issues with digital audio, here is the big difference: film & video are a series of discrete objects; but audio is continuous. Thus, when you change playback speed of video, you end up either with repeated fields and/or frames, or you end up with lots of fields/frames that have been synthesized via blending of adjacent fields/frames, or via motion estimation. With audio, you just compress the waveform a little.

Even once you factor in the digital audio sampling issues, changing playback speed is still a trivial exercise because there are 48,000 audio samples per second, as opposed to (at most) 60 "samples" per second with video.

Thus, to a first approximation, video is discrete; audio is continuous.
johnmeyer is offline   Reply With Quote
Old 12th July 2016, 08:08   #18  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Quote:
Originally Posted by manono View Post
If it's hard telecined it will have been encoded as interlaced and the vast majority of players (the flag reading ones) are just going to deinterlace the whole thing anyway.

It's only the relatively few cadence readers that will perform an on-the-fly IVTC so-to-speak and might conceivably trip over that break in the usual cadence. But I don't think they will because it usually takes even a very good DVD player (think Oppo or Denon) a few frames to adjust.
Is it the standard rule or just good practice to set the Progressive_Frame flag to FALSE for ALL frames of a hard telecined stream?
Alternatively one could set the Progressive_Frame flag to TRUE for the "good" frames and to FALSE for the "combed" frames (e.g. HCenc has this option by selecting "auto detect" mode). Even a flag reading DVD player could then theoretically detect the cadence based on the pattern of the Progressive_Frame flag and initiate IVTC without having to analyze the frames. I have however seen a kind of strobing or flicker with adaptively changing Progressive_Frame flags (possibly also caused by the change of the chroma downsampling pattern), but I don't know whether the behavior of my player is the exception or the rule.
Sharc is offline   Reply With Quote
Old 12th July 2016, 08:15   #19  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,744
@ johnmeyer ;
Ok I see, but there are also samples in digital audio, it's not as continuous as analog.
Music Fan is offline   Reply With Quote
Old 13th July 2016, 02:12   #20  |  Link
johnmeyer
Registered User
 
Join Date: Feb 2002
Location: California
Posts: 2,695
Quote:
Originally Posted by Music Fan View Post
@ johnmeyer ;
Ok I see, but there are also samples in digital audio, it's not as continuous as analog.
That's why I said "to a first approximation." Actually, digital audio is even closer to being continuous than just a first approximation; it's pretty much the same thing when it comes to this specific task of slightly stretching or compressing the audio. And, the modern algorithms let you keep the pitch, even with +-5% changes, without getting any noticeable flanging or other artifacts.
johnmeyer is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 18:03.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.