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 > (HD) DVD, Blu-ray & (S)VCD > (HD) DVD & Blu-ray authoring

Reply
 
Thread Tools Search this Thread Display Modes
Old 4th December 2019, 13:06   #1  |  Link
yellowolf
Registered User
 
Join Date: Nov 2019
Posts: 15
How to get the duration of a Blu-ray disk with millisecond accuracy?

I want to get the duration with millisecond accuracy and have tried BDInfo 0.7.5.5 (GUI). However, it reports the duration as hh:mm:ss without the precision of milliseconds. Any help would be deeply appreciated.

Last edited by yellowolf; 4th December 2019 at 13:16.
yellowolf is offline   Reply With Quote
Old 4th December 2019, 13:25   #2  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Number of frames / framerate.
Isn't the time resolution = 1/framerate, means for a 60fps it is 16.667 ms, or for a typical blu-ray movie @23.976 fps the time resolution is 41.708ms? But never 'milliseconds accuracy'.

Last edited by Sharc; 4th December 2019 at 13:30.
Sharc is offline   Reply With Quote
Old 4th December 2019, 17:50   #3  |  Link
ocean
Registered User
 
Join Date: Mar 2016
Posts: 142
Quote:
Originally Posted by yellowolf View Post
I want to get the duration with millisecond accuracy and have tried BDInfo 0.7.5.5 (GUI). However, it reports the duration as hh:mm:ss without the precision of milliseconds. Any help would be deeply appreciated.

Hi yellowolf, welcome to the forum, you can try mediainfo by selecting advanced mode:

https://www.videohelp.com/software/MediaInfo

ocean is offline   Reply With Quote
Old 5th December 2019, 10:43   #4  |  Link
yellowolf
Registered User
 
Join Date: Nov 2019
Posts: 15
Quote:
Originally Posted by ocean View Post
Hi yellowolf, welcome to the forum, you can try mediainfo by selecting advanced mode:

https://www.videohelp.com/software/MediaInfo

Hi ocean, thank you for your help, I never notice this feature before. As I want to detect the duration of quite a lot of BDs, I would like to use the command line version of MediaInfo. The basic usage is "mediainfo.exe k:\BDMV\PLAYLIST\00800.mpls". However, it seems that MediaInfo always takes over 3 minutes to list all the detailed information for each BD. I have tried some options to accelerate this progress but no gains. As what I need is only the duration, is it possible to shorten this process by using appropriate options of MediaInfo?
yellowolf is offline   Reply With Quote
Old 5th December 2019, 17:35   #5  |  Link
Ghitulescu
Registered User
 
Ghitulescu's Avatar
 
Join Date: Mar 2009
Location: Germany
Posts: 5,769
Quote:
Originally Posted by yellowolf View Post
How to get the duration of a Blu-ray disk with millisecond accuracy?



Now, seriously, why do you need this precision? In particular with DF the duration may actually differ across various players.
PS: not even the audio is required to be aligned with video at millisecond (IIRC it's 1/3 frame that is some 10 milliseconds).
__________________
Born in the USB (not USA)
Ghitulescu is offline   Reply With Quote
Old 5th December 2019, 19:03   #6  |  Link
ocean
Registered User
 
Join Date: Mar 2016
Posts: 142
Use the GUI interface to read, is immediate, example:


Last edited by ocean; 5th December 2019 at 19:07.
ocean is offline   Reply With Quote
Old 6th December 2019, 08:48   #7  |  Link
Ghitulescu
Registered User
 
Ghitulescu's Avatar
 
Join Date: Mar 2009
Location: Germany
Posts: 5,769
Why picking up 1h 32m 54s 610ms and not 1h 37m 53s 11f?

Let's say the movie has 140787 frames.
If the speed is 23.976fps, the time in seconds is almost 5872 seconds (xxx1, 99699699 etc etc).
But if it's 24/1.001, it will be already 6 millisenconds off. By true 24fs, it will play for ~5866 seconds: 6120 milliseconds less.
To further push this phylosophically discussion into the absurd, let's notice that the last frame has no proper duration (all other frames are replaced by the next image at its PTS (Presentation Time Stamp), that is its duration is given by the difference between those two PTSs. It should be also a PTS after the last frame (link-pts), but AFAIK is not mandatory used, many players giving the last frame the same duration as the preceding one/s or using pkt-duration (imprecise). The clock is also required to be within 4 millisecond tolerance.


Thus it all boils down to what the OP intends to do....
__________________
Born in the USB (not USA)
Ghitulescu is offline   Reply With Quote
Old 6th December 2019, 12:12   #8  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,469
Quote:
Originally Posted by Ghitulescu View Post
Why picking up 1h 32m 54s 610ms and not 1h 37m 53s 11f?
Indeed, it's a huge bug of MediaInfo!
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 6th December 2019, 14:48   #9  |  Link
yellowolf
Registered User
 
Join Date: Nov 2019
Posts: 15
Quote:
Originally Posted by ocean View Post
Use the GUI interface to read, is immediate,
Thanks a lot. Why MediaInfo gives more than one duration, among which some ones are with the totally same format and value? Which duration should I believe?
yellowolf is offline   Reply With Quote
Old 6th December 2019, 16:13   #10  |  Link
ocean
Registered User
 
Join Date: Mar 2016
Posts: 142
Thanks Ghitulescu for the clarification, mine was just an example where to read the time in milliseconds, it is clear if the frames are: 140787:23,976 (fps)= 5871,997:60=97,866.... the value can be 1h 37m 51s 997 ms.
ocean is offline   Reply With Quote
Old 6th December 2019, 16:50   #11  |  Link
yellowolf
Registered User
 
Join Date: Nov 2019
Posts: 15
Quote:
Originally Posted by Ghitulescu View Post
Why picking up 1h 32m 54s 610ms and not 1h 37m 53s 11f?

Let's say the movie has 140787 frames.
If the speed is 23.976fps, the time in seconds is almost 5872 seconds (xxx1, 99699699 etc etc).
But if it's 24/1.001, it will be already 6 millisenconds off. By true 24fs, it will play for ~5866 seconds: 6120 milliseconds less.
To further push this phylosophically discussion into the absurd, let's notice that the last frame has no proper duration (all other frames are replaced by the next image at its PTS (Presentation Time Stamp), that is its duration is given by the difference between those two PTSs. It should be also a PTS after the last frame (link-pts), but AFAIK is not mandatory used, many players giving the last frame the same duration as the preceding one/s or using pkt-duration (imprecise). The clock is also required to be within 4 millisecond tolerance.


Thus it all boils down to what the OP intends to do....
Thanks your scientific explanation. As a layman, I seem to have catch the point.
yellowolf is offline   Reply With Quote
Reply

Tags
blu-ray, duration

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 15:18.


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