DV Info Net

DV Info Net (https://www.dvinfo.net/forum/)
-   Convergent Design Odyssey (https://www.dvinfo.net/forum/convergent-design-odyssey/)
-   -   Clarification Needed for a Rather Confusing Process (https://www.dvinfo.net/forum/convergent-design-odyssey/479854-clarification-needed-rather-confusing-process.html)

Mark Job June 3rd, 2010 05:09 PM

Clarification Needed for a Rather Confusing Process
 
Hi Dan, Tommy, and especially anyone else out there who's really technically inclined:

I need a clarification on several points on how the Flash XDR (This may also apply to the Nano Flash) removes the redundant frames to detect the Canon 24F format. In the Flash XDR you must have the 3:2 pull down activated in order to remove the *redundant frames* from what is always sent out of the camera circuitry to tape or HD-SDI uncompressed out as an interlaced 59.94i Hz signal. OK. I get that. I also understand why you must enable 3:2 pull down so that the removal of the redundant frames can be performed on the fly in real time during the video capture process.

*What I really don't get is how come the Flash XDR indicates a speed of 23.98 fps on its screen as it's doing this ? So I need a clarification on two points. The mathematical calculation for this process is clear enough........

59.94 minus 3 divided by 2 = 23.976 ! Not 23.98 or 24 ! Now hang on-this rabbit hole goes much deeper than even this.

When the recording is finished and my CF cards are full, I then import them into Avid Media Composer to edit via my usual clip based workflow, but I run into a rather confusing situation at this point. If I setup a media composer project for 23.976 fps with my 1080 full raster HD footage from my XDR, MC will not import the XDCAM clips ! Now, if I setup another project for 24p, then MC imports the XDCAM clips from my XDR and all is well.

But this doesn't make any sense ?!?!?!?

1. After recording with 3:2 pull down removal from a Canon camcorder with the speed switch set at 24F, what is *The Final Resulting Speed of the Recorded Clips ?*

i.e. 23.976 fps, 23.98 fps, or 24p ?

2. According to the import specifications of my Avid Media Composer editing app, the Sony XDCAM HD 4:2:2 1920 x 1080 clips which are coming from my XDR are in 24p ! This is impossible ! How can the resulting clip actually be in true 24p ?

** What is the XDR doing to change this clip to that speed, because math is math and there's no way you can get 24p from the equation I listed above. No way ! It's impossible !

A) Is the XDR speeding up the clip speed after it comes in from the camera ?
B) How is the audio treated ?

i.e. Is the audio being stretched (Sped up slightly to match the higher speed of 24p) ? Please clarify if you can. I would like to understand this in my own brain.

Adam Stanislav June 3rd, 2010 09:42 PM

23.98 and 23.976 are the same, except one is rounded up to two decimal points and the other to three. The actual exact rate is 24000/1001, i.e. 24000 frames per 1001 seconds.

Peter Moretti June 4th, 2010 07:30 AM

Quote:

Originally Posted by Mark Job (Post 1534603)
...
When the recording is finished and my CF cards are full, I then import them into Avid Media Composer to edit via my usual clip based workflow, but I run into a rather confusing situation at this point. If I setup a media composer project for 23.976 fps with my 1080 full raster HD footage from my XDR, MC will not import the XDCAM clips ! Now, if I setup another project for 24p, then MC imports the XDCAM clips from my XDR and all is well.

...

2. According to the import specifications of my Avid Media Composer editing app, the Sony XDCAM HD 4:2:2 1920 x 1080 clips which are coming from my XDR are in 24p ! This is impossible ! How can the resulting clip actually be in true 24p ?

...

Mark, what error message are you getting when you try to import the file into a 23.976 project?

If you have a small nano file you want me to try to import in my MC install, I'll give it a shot and see if I see the same 24P issue.


-Peter

Mark Job June 4th, 2010 11:02 AM

Doesn't Make Sense (???)
 
Quote:

Originally Posted by Adam Stanislav (Post 1534692)
23.98 and 23.976 are the same, except one is rounded up to two decimal points and the other to three. The actual exact rate is 24000/1001, i.e. 24000 frames per 1001 seconds.

...Hi Adam: How can 23.976 fps be the same thing as 23.98 fps when it must be "rounded *up two decimal points* and the other three," as you expressed it ?

Mark Job June 4th, 2010 11:07 AM

Avid Import Error Message
 
Quote:

Originally Posted by Peter Moretti (Post 1534801)
Mark, what error message are you getting when you try to import the file into a 23.976 project?

If you have a small nano file you want me to try to import in my MC install, I'll give it a shot and see if I see the same 24P issue.


-Peter

....Hi Peter: I'll shoot something small and email it over to you. I'm really busy today, so it may not be until this weekend that I get one ready for you to try. Thanks for your offer to test this in your Avid Media Composer. The thing is this could also be an MC bug, because MC in 4.0.5.x release is supposed to allow multiple frame rate and resolutions within the same project *anyway,* but this feature doesn't seem to be working right.

Adam Stanislav June 4th, 2010 11:18 AM

Quote:

Originally Posted by Mark Job (Post 1534861)
...Hi Adam: How can 23.976 fps be the same thing as 23.98 fps when it must be "rounded *up two decimal points* and the other three," as you expressed it ?

The rounding happens when some software (or hardware) is telling you what rate the clip is using. The actual rate is 24000 / 1001, so it is neither 23.98 nor 23.976. 24000 / 1001 is the only way to say the precise rate because if you divide 24000 by 1001 you will get a periodic number which has an infinite number of decimal points (23.9760976097609760... with the "9760" being repeated forever).

Hence the user interface of software and hardware has to round the number (or show you 2400 / 1001, but most do not as it would confuse many people). And some round it to 2 decimal places, some to 3 decimal places. But only in what it shows you. Internally they use the precise 2400 / 1001 in either case.

Garrett Low June 4th, 2010 11:20 AM

Quote:

Originally Posted by Mark Job (Post 1534861)
...Hi Adam: How can 23.976 fps be the same thing as 23.98 fps when it must be "rounded *up two decimal points* and the other three," as you expressed it ?

Mark, it's basic rounding of numbers. 23.976 rounded to two decimal places is 23.98. And both would be rounded to 24.0 if carrying to 1 decimal place. It's just a way of representing the number with less precision.

Garret

Luben Izov June 4th, 2010 11:40 AM

test with FCP
 
Quote:

Originally Posted by Garrett Low (Post 1534867)
Mark, it's basic rounding of numbers. 23.976 rounded to two decimal places is 23.98. And both would be rounded to 24.0 if carrying to 1 decimal place. It's just a way of representing the number with less precision.

Garret

Agreed... and save screen space on NF/XDR.
Mark, why don't you use CD converting tool and try one of this files on your FCP and see if it shows 24fps or 23.976fps. or send me a small file via FTP and I'll try it if you don't have a FCP. FCP always shows the exact frame rate.
Also, please check what pulldown your MC is set to show in your settings. Not that it matters but see if it is 2:3:2:3 or it is 2:3:3:2. You could capture the tape with MC set for one of the above pulldowns and audio rate at 30fps and see after that what your MC would show for that file - 23.976fps or 24fps.
Let me know please if I could help you with FCP
Luben

Mark Job June 4th, 2010 01:00 PM

Something is Missing Here (??????????)
 
Hi Adam, Garrett, and Luben: OK. I get the numbers rounding. I follow your logic wit this, but the rounding issue is not what's got me seriously stumped here. To me, and please do correct me if I'm wrong about this, but how can there be anything other but one mathematical certainty to the following math equation ?

Ergo: The process by which we are extracting the Canon 24 F (Not P) from my XL H1 HD-SDi output OR HDV recorded cassette, would be 59.94i minus 3 divided by 2 (3:2 pull down removal) = 23.976. (Not 23.98, nor 24.1001) It is absolutely mathematically impossible to arrive at any other frame rate other than 23.976 fps which is exactly 50 % of 59.94 Hz..

So one of my questions was how does the Flash XDR or Nano Flash for that matter, come up with a true 24p, because this is what I understood from Dan of what you get at the end of the day on your recorded CF cards.

The secondary question was about importing my XDR clips into AMC and AMC has a project setting for clips recorded at 23.976 (But not for clips recorded at 23.98 (Rounded) Nor is their a project for 24.1001), but there is also a project for 24p - which works perfectly.

Adam Stanislav June 4th, 2010 01:32 PM

Mark, it is not 24.1001, it is 24000 / 1001, or twenty-four thousand frames per one thousand and one second.

The same with 59.94. It is actually 60000 / 1001 (sixty thousand fields, i.e. thirty thousand frames, per one thousand and one second).

So, yes, the conversion is mathematically precise.

As for the pulldown, the 3:2 name is kind of mathematically incorrect (but commonly used). You actually get 4:5 of the original rate. You are converting from 60i to 24p. 60i has 60 fields, that is 30 (interlaced) frames. 30 * 4 / 5 = 24. And 30000 / 1001 * 4 / 5 = 24000 / 1001 * 4 / 5 = 23.98 (when rounded to two decimal places).


Mark Job June 4th, 2010 01:43 PM

I'm Totally Confused :-(
 
Quote:

Originally Posted by Adam Stanislav (Post 1534907)
Mark, it is not 24.1001, it is 24000 / 1001, or twenty-four thousand frames per one thousand and one second.

The same with 59.94. It is actually 60000 / 1001 (sixty thousand fields, i.e. thirty thousand frames, per one thousand and one second).

So, yes, the conversion is mathematically precise.

As for the pulldown, the 3:2 name is kind of mathematically incorrect (but commonly used). You actually get 4:5 of the original rate. You are converting from 60i to 24p. 60i has 60 fields, that is 30 (interlaced) frames. 30 * 4 / 5 = 24. And 30000 / 1001 * 4 / 5 = 24000 / 1001 * 4 / 5 = 23.98 (when rounded to two decimal places).


Hey Adam: OK. Now I'm totally confused ! My camera does not record a *True 60i. My camera records everything @ 59.94i Now you're telling me 3:2 is not really 3:2 - It's 4:5 ?!?! Logic is little bird in tree !!!

Mark Job June 4th, 2010 01:52 PM

Is My XDR Stretching the Video Speed ?
 
Hi Adam, Luben, and Garett: OK. So then this explanation would seem to imply some sort of speed stretching. (??) Is this correct ? The 23.976 is being S T R E T C H E D over to 24.00000 ?

Adam Stanislav June 4th, 2010 02:22 PM

Still confused? I guess I am not as good a teacher as I thought. :)

OK, here is a more detailed explanation.

When TV was invented, it was 60i in the US, 50i in Europe. When color was added, they slowed it down to 60000 / 1001 and 50000 / 1001 respectively.

Now, when film was being converted to TV video by telecine, they decided not to resample it but came up with the 2:3 pulldown. It works like this (and has for decades):

You start with four 24fps frames and you scan them. These are progressive frames, let's call them Ap, Bp, Cp, and Bp. You convert each progressive frame into two "interlaced" fields (I put it into quotation marks because they are not true interlaced, since they were shot progressive). Let's call them Ao, Ae, Bo, Be, Co, Ce, Do, De (o for odd, e for even).

And now to make the 48 fields per second into 60 fields per second, you send them to the video stream like this (or a variation of this):

Ao, Ae, Bo, Be, Bo, Ce, Co, De, Do, De.

It is called 2:3 pulldown because you convert one frame to 2 fields, the next one to 3 fields, then again 2 and 3 and 2 and 3, etc.

Many video cameras shoot at 24p (or 24000 / 10001) and apply the 2:3 pulldown to the stream before saving it or sending it out over HD-SDI and such.

The nanoFlash can determine whether the signal it receives was processed that way (by comparing the different fields and seeing the pattern). It can convert the above mentioned 60"i" stream into:

Ao, Ae, Bo, Be, Co, Ce, Do, De.

In other words, it throws out the redundant fields. And then it can save it as a 24p stream:

Ap, Bp, Cp, Dp.

That is all there is to it.

No time-stretching happens. If your camera shoots at 23.98p and applies the 2:3 pulldown, the nF will restore the original 23.98p and your player will play it at 23.98p. If your camera shoots at true 24p and applies the 2:3 pulldown, the nF will restore the original 24p and your player will play it at 24p if it can (only the more recent ones can, and DVD players generally cannot) or 23.98 otherwise.

The 60000 / 1001, 50000 / 1001, and 24000 / 1001 are the video standards. The exact 24p is a film standard. Video has evolved from television, hence the weird looking rates.

And yes, I wish in the days of HDTV the cameras would shoot true 24p, but most do not.

Luben Izov June 4th, 2010 03:41 PM

Great job Adam
 
Well done!
Mark, please look at Telecine - Wikipedia, the free encyclopedia for other way presented, basically the same info.
Sorry for not be able to reply earlier..... editing with Director....

Mark Job June 4th, 2010 06:57 PM

I Now Understand
 
Quote:

Originally Posted by Luben Izov (Post 1534956)
Well done!
Mark, please look at Telecine - Wikipedia, the free encyclopedia for other way presented, basically the same info.
Sorry for not be able to reply earlier..... editing with Director....

Hey Adam & Luben: Thanks Adam for taking the time to run through the more detailed explanation of 2:3 cadence :-) I hope you and Luben & Garrett won't be annoyed to learn I already well understood this longer explanation. What was tripping me up was thinking Canon's 24 *F* was not really a 24 *P*, when in fact **IT TRULY IS** only it is burried in a 60 Hz interlaced signal. It is not that the XDR is stretching anything, rather, it's simply ***DISCARDING*** the unnecessary cadence (Frames) to rebuild the 24 Fps which my Canon camera was shooting in the first place.

** I guess Canon would have to come up with their Funky 24 F format because...

A) The built in Helical Scanning HDV VTR cannot record in a 24 fps progressive manner.
B) Canon was too cheap to pay the guy who owns the patent on 24p the royalties ;-)


All times are GMT -6. The time now is 03:37 AM.

DV Info Net -- Real Names, Real People, Real Info!
1998-2024 The Digital Video Information Network