Menu

#366 Quicktime MovieFPS different from MediaInfo frame rate

More_attribute
closed-works-for-me
5
2014-09-04
2012-02-02
No

Occasionally I get MOV files that transcode incorrectly because our transcoder (FlipFactory) is looking at a frame rate different from the frame rate that MediaInfo is reporting on (I use MediaInfo to decide automatically how to transcode the file). The Quicktime player is showing (presumably) the same frame rate that my transcoder is looking at. You can see in the attachment an example of this low FPS. It certainly seems like the frame rate that MediaInfo is reporting on is the correct frame rate so this is a request to report the same (incorrect) FPS that the Quicktime player is showing (in a new tag presumably) so I can reject these files and have the user re-export them correctly.

You can download the file here...

https://comcastmediacenter.sharefile.com/d/s6bac7ce34774340b

Additionally if you can provide any information on what this strange frame rate is, how it is being created, etc. that would help a lot. If we can calculate or otherwise capture this situation with the current MediaInfo output that obviously solves the problem as well.

Thanks much. Love MediaInfo!

MediaInfo reports the following...

General
Count : 279
Count of stream of this kind : 1
Kind of stream : General
Kind of stream : General
Stream identifier : 0
Count of video streams : 1
Count of audio streams : 1
Video_Format_List : AVC
Video_Format_WithHint_List : AVC
Codecs Video : AVC
Video_Language_List : English
Audio_Format_List : PCM
Audio_Format_WithHint_List : PCM
Audio codecs : PCM
Audio_Language_List : English
Complete name : C:\Users\poconn200\Videos\SD Known Good\AVC_480p_3x2_2997_PCM_b.mov
Folder name : C:\Users\poconn200\Videos\SD Known Good
File name : AVC_480p_3x2_2997_PCM_b
File extension : mov
Format : MPEG-4
Format : MPEG-4
Format/Extensions usually used : mp4 m4v m4a m4b m4p 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma f4v
Commercial name : MPEG-4
Format profile : QuickTime
Internet media type : video/mp4
Codec ID : qt
Codec ID/Url : http://www.apple.com/quicktime/download/standalone.html
Codec : MPEG-4
Codec : MPEG-4
Codec/Extensions usually used : mp4 m4v m4a m4b m4p 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma f4v
File size : 17712113
File size : 16.9 MiB
File size : 17 MiB
File size : 17 MiB
File size : 16.9 MiB
File size : 16.89 MiB
Duration : 30030
Duration : 30s 30ms
Duration : 30s 30ms
Duration : 30s 30ms
Duration : 00:00:30.030
Overall bit rate : 4718511
Overall bit rate : 4 719 Kbps
Stream size : 15263
Stream size : 14.9 KiB (0%)
Stream size : 15 KiB
Stream size : 15 KiB
Stream size : 14.9 KiB
Stream size : 14.91 KiB
Stream size : 14.9 KiB (0%)
Proportion of this stream : 0.00086
HeaderSize : 15237
DataSize : 17696874
FooterSize : 2
IsStreamable : Yes
Encoded date : UTC 2011-07-26 18:14:47
Tagged date : UTC 2011-07-26 18:14:47
File creation date : UTC 2011-12-06 21:35:02.313
File creation date (local) : 2011-12-06 14:35:02.313
File last modification date : UTC 2011-07-27 13:33:26.000
File last modification date (local) : 2011-07-27 06:33:26.000
Writing library : Apple QuickTime
Writing library : Apple QuickTime
Writing library/Name : Apple QuickTime

Video
Count : 224
Count of stream of this kind : 1
Kind of stream : Video
Kind of stream : Video
Stream identifier : 0
ID : 2
ID : 2
Format : AVC
Format/Info : Advanced Video Codec
Format/Url : http://developers.videolan.org/x264.html
Commercial name : AVC
Format profile : Main@L3.0
Format settings : 2 Ref Frames
Format settings, CABAC : No
Format settings, CABAC : No
Format settings, ReFrames : 2
Format settings, ReFrames : 2 frames
Format settings, GOP : M=2, N=24
Internet media type : video/H264
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Codec ID/Url : http://www.apple.com/quicktime/download/standalone.html
Codec : AVC
Codec : AVC
Codec/Family : AVC
Codec/Info : Advanced Video Codec
Codec/Url : http://developers.videolan.org/x264.html
Codec/CC : avc1
Codec profile : Main@L3.0
Codec settings : 2 Ref Frames
Codec settings, CABAC : No
Codec_Settings_RefFrames : 2
Duration : 30030
Duration : 30s 30ms
Duration : 30s 30ms
Duration : 30s 30ms
Duration : 00:00:30.030
Source duration : 333993
Source duration : 5mn 33s
Source duration : 5mn 33s 993ms
Source duration : 5mn 33s
Source duration : 00:05:33.993
Bit rate : 3178457
Bit rate : 3 178 Kbps
Width : 720
Width : 720 pixels
Height : 480
Height : 480 pixels
Pixel aspect ratio : 1.000
Display aspect ratio : 1.500
Display aspect ratio : 3:2
Rotation : 0.000
Frame rate mode : CFR
Frame rate mode : Constant
Frame rate : 29.970
Frame rate : 29.970 fps
Frame count : 900
Source frame count : 900
Standard : NTSC
Resolution : 8
Resolution : 8 bits
Colorimetry : 4:2:0
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8
Bit depth : 8 bits
Scan type : Progressive
Scan type : Progressive
Interlacement : PPF
Interlacement : Progressive
Bits/(Pixel*Frame) : 0.307
Stream size : 11931146
Stream size : 11.4 MiB (67%)
Stream size : 11 MiB
Stream size : 11 MiB
Stream size : 11.4 MiB
Stream size : 11.38 MiB
Stream size : 11.4 MiB (67%)
Proportion of this stream : 0.67362
Source stream size : 11931146
Source stream size : 11.4 MiB
Source stream size : 11 MiB
Source stream size : 11 MiB
Source stream size : 11.4 MiB
Source stream size : 11.38 MiB
Language : en
Language : English
Language : English
Language : en
Language : eng
Language : en
Encoded date : UTC 2011-07-26 18:14:46
Tagged date : UTC 2011-07-26 18:14:47
Color primaries : BT.601-6 525, BT.1358 525, BT.1700 NTSC, SMPTE 170M
Transfer characteristics : BT.709-5, BT.1361
Matrix coefficients : BT.601-6 525, BT.1358 525, BT.1700 NTSC, SMPTE 170M
Source_Duration_LastFrame : 303963

Audio
Count : 198
Count of stream of this kind : 1
Kind of stream : Audio
Kind of stream : Audio
Stream identifier : 0
ID : 1
ID : 1
Format : PCM
Commercial name : PCM
Format settings : Little / Signed
Format settings, Endianness : Little
Format settings, Sign : Signed
Codec ID : sowt
Codec ID/Url : http://www.apple.com/quicktime/download/standalone.html
Codec : PCM
Codec : PCM
Codec/Family : PCM
Codec/Url : http://www.apple.com/quicktime/download/standalone.html
Codec/CC : sowt
Codec settings : Little / Signed
Codec settings, Endianness : Little
Codec settings, Sign : Signed
Duration : 30030
Duration : 30s 30ms
Duration : 30s 30ms
Duration : 30s 30ms
Duration : 00:00:30.030
Bit rate mode : CBR
Bit rate mode : Constant
Bit rate : 1536000
Bit rate : 1 536 Kbps
Channel(s) : 2
Channel(s) : 2 channels
Channel positions : Front: L R
ChannelLayout : L R
Sampling rate : 48000
Sampling rate : 48.0 KHz
Samples count : 1441440
Frame count : 1441440
Resolution : 16
Resolution : 16 bits
Bit depth : 16
Bit depth : 16 bits
Stream size : 5765704
Stream size : 5.50 MiB (33%)
Stream size : 5 MiB
Stream size : 5.5 MiB
Stream size : 5.50 MiB
Stream size : 5.499 MiB
Stream size : 5.50 MiB (33%)
Proportion of this stream : 0.32552
Language : en
Language : English
Language : English
Language : en
Language : eng
Language : en
Encoded date : UTC 2011-07-26 18:14:46
Tagged date : UTC 2011-07-26 18:14:47

Discussion

  • Patrick O'Connor

     
  • Jerome Martinez

    Jerome Martinez - 2012-02-02
    • assigned_to: nobody --> zenitram
    • milestone: --> More_attribute
    • labels: --> Libray - File recognition
    • status: open --> closed-works-for-me
     
  • Jerome Martinez

    Jerome Martinez - 2012-02-02

    Buggy files... You are not the first one with such buggy file.

    OK, some explainations about the numbers from MediaInfo:
    Duration : 30030 --> This is the duration from track header (in miliseconds)
    Source duration : 333993 --> This is the duration from media header (in miliseconds). A media header is inside a track header, don't try to understand the reason there is two durations for the same track in a QuickTime file!
    Frame rate : 29.970 --> Frame rate of most of the frames (actually: all of them but 1)
    Frame count : 900 --> Count of frame
    Source_Duration_LastFrame : 303963 --> The intersting part. last frame duration is not 33 milisecond (as the other ones at 29.97), but 33+303963 miliseconds (>5 minutes!)

    Now, some maths :).
    You can see that Source duration is "900 frames at 29.97" + Source_Duration_LastFrame = 30030 + 303963 = 33993.
    Source duration divided by count of frames is... 371 miliseconds of average time per frame, or... 2.69 fps :). (1 divided by frame duration in seconds)

    Conclusion: you have already all the pieces of data you need to detect such buggy files. MediaInfo already does separation between frame rate of all frames except the last one and the duration of the last frame, because you are not the first one to have such weird file (if you have an idea about the reason of such configuration, I am interested in the explaination). I don't plan to display the fps QuickTime displays, but it is easy to compute it (if "Source duration" duration exists, Frame count / ("Source duration" / 1000) , else "Frame rate" field)

    Note: same logic for Source_Duration_FirstFrame field, for the... First frame instead of the last frame. You should test both Source_Duration_FirstFrame and Source_Duration_LastFrame

     
  • Patrick O'Connor

    Wow, this is great information. thank you so much. I'm happy.

     

Log in to post a comment.

MongoDB Logo MongoDB