MP4 Video Codec

Think you found a bug in getID3()? Post here with details.
Post Reply
Pernod
getID3() contributor
Posts: 103
Joined: Sat Mar 21, 2009 5:30 pm
Are you a spambot?: no
Location: London, UK
Contact:

MP4 Video Codec

Post by Pernod » Tue Aug 28, 2012 2:37 pm

Analysing MP4 video files does not set ['video']['codec']. In the example below we see that ['video']['fourcc'] is set to avc1 which I would expect to mean that ['video']['codec'] = 'H.264/MPEG-4 AVC'.

You should be able to reproduce this issue with any standard mp4 file containing aac/avc.

Code: Select all

[2012.08.28 15:21:21] Array
[2012.08.28 15:21:21] (
[2012.08.28 15:21:21]     [GETID3_VERSION] => 1.9.3-20111213
[2012.08.28 15:21:21]     [filesize] => 371620212
[2012.08.28 15:21:21]     [filename] => Example.mp4
[2012.08.28 15:21:21]     [filepath] => D:/My Videos
[2012.08.28 15:21:21]     [filenamepath] => D:/My Videos/Example.mp4
[2012.08.28 15:21:21]     [avdataoffset] => 1331571
[2012.08.28 15:21:21]     [avdataend] => 371620212
[2012.08.28 15:21:21]     [fileformat] => mp4
[2012.08.28 15:21:21]     [audio] => Array
[2012.08.28 15:21:21]         (
[2012.08.28 15:21:21]             [dataformat] => mp4
[2012.08.28 15:21:21]             [codec] => ISO/IEC 14496-3 AAC
[2012.08.28 15:21:21]             [sample_rate] => 48000
[2012.08.28 15:21:21]             [channels] => 2
[2012.08.28 15:21:21]             [bits_per_sample] => 16
[2012.08.28 15:21:21]             [lossless] => 
[2012.08.28 15:21:21]             [channelmode] => stereo
[2012.08.28 15:21:21]             [streams] => Array
[2012.08.28 15:21:21]                 (
[2012.08.28 15:21:21]                     [0] => Array
[2012.08.28 15:21:21]                         (
[2012.08.28 15:21:21]                             [dataformat] => mp4
[2012.08.28 15:21:21]                             [codec] => ISO/IEC 14496-3 AAC
[2012.08.28 15:21:21]                             [sample_rate] => 48000
[2012.08.28 15:21:21]                             [channels] => 2
[2012.08.28 15:21:21]                             [bits_per_sample] => 16
[2012.08.28 15:21:21]                             [lossless] => 
[2012.08.28 15:21:21]                             [channelmode] => stereo
[2012.08.28 15:21:21]                         )
[2012.08.28 15:21:21] 
[2012.08.28 15:21:21]                 )
[2012.08.28 15:21:21] 
[2012.08.28 15:21:21]         )
[2012.08.28 15:21:21] 
[2012.08.28 15:21:21]     [video] => Array
[2012.08.28 15:21:21]         (
[2012.08.28 15:21:21]             [dataformat] => quicktime
[2012.08.28 15:21:21]             [resolution_x] => 720
[2012.08.28 15:21:21]             [resolution_y] => 404
[2012.08.28 15:21:21]             [fourcc] => avc1
[2012.08.28 15:21:21]             [frame_rate] => 23.976
[2012.08.28 15:21:21]         )
[2012.08.28 15:21:21] 
[2012.08.28 15:21:21]     [comments] => Array
[2012.08.28 15:21:21]         (
[2012.08.28 15:21:21]             [language] => Array
[2012.08.28 15:21:21]                 (
[2012.08.28 15:21:21]                     [0] => invalid
[2012.08.28 15:21:21]                 )
[2012.08.28 15:21:21] 
[2012.08.28 15:21:21]         )
[2012.08.28 15:21:21] 
[2012.08.28 15:21:21]     [encoding] => ISO-8859-1
[2012.08.28 15:21:21]     [mime_type] => video/quicktime
[2012.08.28 15:21:21]     [quicktime] => Array
[2012.08.28 15:21:21]         (
[2012.08.28 15:21:21]             [hinting] => 
[2012.08.28 15:21:21]             [controller] => standard
[2012.08.28 15:21:21]             [ftyp] => Array
[2012.08.28 15:21:21]                 (
[2012.08.28 15:21:21]                     [hierarchy] => ftyp
[2012.08.28 15:21:21]                     [name] => ftyp
[2012.08.28 15:21:21]                     [size] => 20
[2012.08.28 15:21:21]                     [offset] => 0
[2012.08.28 15:21:21]                     [signature] => isom
[2012.08.28 15:21:21]                     [unknown_1] => 1
[2012.08.28 15:21:21]                     [fourcc] => isom
[2012.08.28 15:21:21]                 )
[2012.08.28 15:21:21] 
[2012.08.28 15:21:21]             [moov] => Array
[2012.08.28 15:21:21]                 (
[2012.08.28 15:21:21]                     [hierarchy] => moov
[2012.08.28 15:21:21]                     [name] => moov
[2012.08.28 15:21:21]                     [size] => 1331543
[2012.08.28 15:21:21]                     [offset] => 20
[2012.08.28 15:21:21]                     [subatoms] => Array
[2012.08.28 15:21:21]                         (
[2012.08.28 15:21:21]                             [0] => Array
[2012.08.28 15:21:21]                                 (
[2012.08.28 15:21:21]                                     [hierarchy] => mvhd
[2012.08.28 15:21:21]                                     [name] => mvhd
[2012.08.28 15:21:21]                                     [size] => 108
[2012.08.28 15:21:21]                                     [offset] => 28
[2012.08.28 15:21:21]                                     [version] => 0
[2012.08.28 15:21:21]                                     [flags_raw] => 0
[2012.08.28 15:21:21]                                     [creation_time] => 3428975253
[2012.08.28 15:21:21]                                     [modify_time] => 3428975253
[2012.08.28 15:21:21]                                     [time_scale] => 600
[2012.08.28 15:21:21]                                     [duration] => 1543718
[2012.08.28 15:21:21]                                     [preferred_rate] => 1
[2012.08.28 15:21:21]                                     [preferred_volume] => 1
[2012.08.28 15:21:21]                                     [reserved] => 
[2012.08.28 15:21:21]                                     [matrix_a] => 1
[2012.08.28 15:21:21]                                     [matrix_b] => 0
[2012.08.28 15:21:21]                                     [matrix_u] => 0
[2012.08.28 15:21:21]                                     [matrix_c] => 0
[2012.08.28 15:21:21]                                     [matrix_d] => 1
[2012.08.28 15:21:21]                                     [matrix_v] => 0
[2012.08.28 15:21:21]                                     [matrix_x] => 0
[2012.08.28 15:21:21]                                     [matrix_y] => 0
[2012.08.28 15:21:21]                                     [matrix_w] => 1
[2012.08.28 15:21:21]                                     [preview_time] => 0
[2012.08.28 15:21:21]                                     [preview_duration] => 0
[2012.08.28 15:21:21]                                     [poster_time] => 0
[2012.08.28 15:21:21]                                     [selection_time] => 0
[2012.08.28 15:21:21]                                     [selection_duration] => 0
[2012.08.28 15:21:21]                                     [current_time] => 0
[2012.08.28 15:21:21]                                     [next_track_id] => 3
[2012.08.28 15:21:21]                                     [creation_time_unix] => 1346130453
[2012.08.28 15:21:21]                                     [modify_time_unix] => 1346130453
[2012.08.28 15:21:21]                                 )
[2012.08.28 15:21:21] 
[2012.08.28 15:21:21]                             [1] => Array
[2012.08.28 15:21:21]                                 (
[2012.08.28 15:21:21]                                     [hierarchy] => iods
[2012.08.28 15:21:21]                                     [name] => iods
[2012.08.28 15:21:21]                                     [size] => 21
[2012.08.28 15:21:21]                                     [offset] => 136
[2012.08.28 15:21:21]                                     [version] => 0
[2012.08.28 15:21:21]                                     [flags_raw] => 0
[2012.08.28 15:21:21]                                     [mp4_iod_tag] => 16
[2012.08.28 15:21:21]                                     [length] => 7
[2012.08.28 15:21:21]                                     [object_descriptor_id] => 79
[2012.08.28 15:21:21]                                     [od_profile_level] => 255
[2012.08.28 15:21:21]                                     [scene_profile_level] => 255
[2012.08.28 15:21:21]                                     [audio_profile_id] => 41
[2012.08.28 15:21:21]                                     [video_profile_id] => 21
[2012.08.28 15:21:21]                                     [graphics_profile_level] => 255
[2012.08.28 15:21:21]                                     [num_iods_tracks] => 0
[2012.08.28 15:21:21]                                     [audio_profile_name] => AAC Profile @ Level 2
[2012.08.28 15:21:21]                                     [video_profile_name] => AVC/H264 Profile
[2012.08.28 15:21:21]                                 )
[2012.08.28 15:21:21] 

Pernod
getID3() contributor
Posts: 103
Joined: Sat Mar 21, 2009 5:30 pm
Are you a spambot?: no
Location: London, UK
Contact:

Re: MP4 Video Codec

Post by Pernod » Sat Sep 08, 2012 10:03 am

Has this been accepted as a bug or do you need further evidence?

James Heinrich
getID3() v1 developer
Posts: 1432
Joined: Fri May 04, 2001 4:00 pm
Are you a spambot?: no
Location: Northern Ontario, Canada
Contact:

Re: MP4 Video Codec

Post by James Heinrich » Sat Sep 08, 2012 1:09 pm

I fully expect it is a bug, but I haven't yet investigated. I will post back when I have.

Post Reply