Skip to content

Instantly share code, notes, and snippets.

@finoradin
Created August 22, 2016 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save finoradin/4abc1b907b23c95c1ac642f8bfbcf4b2 to your computer and use it in GitHub Desktop.
Save finoradin/4abc1b907b23c95c1ac642f8bfbcf4b2 to your computer and use it in GitHub Desktop.
example of mediainfo full XML output
<?xml version="1.0" encoding="UTF-8"?>
<Mediainfo
version="0.1"
ref="/Users/bfino/Downloads/VIDEO_LAYER_3-Brightsign.mov">
<File>
<track type="General">
<Count>308</Count>
<Count_of_stream_of_this_kind>1</Count_of_stream_of_this_kind>
<Kind_of_stream>General</Kind_of_stream>
<Kind_of_stream>General</Kind_of_stream>
<Stream_identifier>0</Stream_identifier>
<Count_of_video_streams>1</Count_of_video_streams>
<Count_of_audio_streams>1</Count_of_audio_streams>
<OtherCount>1</OtherCount>
<Video_Format_List>AVC</Video_Format_List>
<Video_Format_WithHint_List>AVC</Video_Format_WithHint_List>
<Codecs_Video>AVC</Codecs_Video>
<Video_Language_List>English</Video_Language_List>
<Audio_Format_List>PCM</Audio_Format_List>
<Audio_Format_WithHint_List>PCM</Audio_Format_WithHint_List>
<Audio_codecs>PCM</Audio_codecs>
<Audio_Language_List>English</Audio_Language_List>
<Other_Format_List>QuickTime TC</Other_Format_List>
<Other_Format_WithHint_List>QuickTime TC</Other_Format_WithHint_List>
<Other_Language_List>English</Other_Language_List>
<Complete_name>/Users/bfino/Downloads/VIDEO_LAYER_3-Brightsign.mov</Complete_name>
<Folder_name>/Users/bfino/Downloads</Folder_name>
<File_name>VIDEO_LAYER_3-Brightsign</File_name>
<File_extension>mov</File_extension>
<Format>MPEG-4</Format>
<Format>MPEG-4</Format>
<Format_Extensions_usually_used>mp4 m4v m4a m4b m4p 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma f4v</Format_Extensions_usually_used>
<Commercial_name>MPEG-4</Commercial_name>
<Format_profile>QuickTime</Format_profile>
<Internet_media_type>video/mp4</Internet_media_type>
<Codec_ID>qt </Codec_ID>
<Codec_ID_Url>http://www.apple.com/quicktime/download/standalone.html</Codec_ID_Url>
<Codec>MPEG-4</Codec>
<Codec>MPEG-4</Codec>
<Codec_Extensions_usually_used>mp4 m4v m4a m4b m4p 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma f4v</Codec_Extensions_usually_used>
<File_size>675621251</File_size>
<File_size>644 MiB</File_size>
<File_size>644 MiB</File_size>
<File_size>644 MiB</File_size>
<File_size>644 MiB</File_size>
<File_size>644.3 MiB</File_size>
<Duration>390490</Duration>
<Duration>6mn 30s</Duration>
<Duration>6mn 30s 490ms</Duration>
<Duration>6mn 30s</Duration>
<Duration>00:06:30.490</Duration>
<Duration>00:06:30:03</Duration>
<Duration>00:06:30.490 (00:06:30:03)</Duration>
<Overall_bit_rate_mode>VBR</Overall_bit_rate_mode>
<Overall_bit_rate_mode>Variable</Overall_bit_rate_mode>
<Overall_bit_rate>13841507</Overall_bit_rate>
<Overall_bit_rate>13.8 Mbps</Overall_bit_rate>
<Frame_rate>29.970</Frame_rate>
<Frame_rate>29.970 fps</Frame_rate>
<Frame_count>11703</Frame_count>
<Stream_size>304106</Stream_size>
<Stream_size>297 KiB (0%)</Stream_size>
<Stream_size>297 KiB</Stream_size>
<Stream_size>297 KiB</Stream_size>
<Stream_size>297 KiB</Stream_size>
<Stream_size>297.0 KiB</Stream_size>
<Stream_size>297 KiB (0%)</Stream_size>
<Proportion_of_this_stream>0.00045</Proportion_of_this_stream>
<HeaderSize>40</HeaderSize>
<DataSize>675509157</DataSize>
<FooterSize>112054</FooterSize>
<IsStreamable>No</IsStreamable>
<Encoded_date>UTC 2014-09-12 20:23:11</Encoded_date>
<Tagged_date>UTC 2014-09-12 20:33:36</Tagged_date>
<File_last_modification_date>UTC 2016-08-22 15:56:43</File_last_modification_date>
<File_last_modification_date__local_>2016-08-22 11:56:43</File_last_modification_date__local_>
<Writing_library>Apple QuickTime</Writing_library>
<Writing_library>Apple QuickTime</Writing_library>
<Encoded_Library_Name>Apple QuickTime</Encoded_Library_Name>
</track>
<track type="Video">
<Count>311</Count>
<Count_of_stream_of_this_kind>1</Count_of_stream_of_this_kind>
<Kind_of_stream>Video</Kind_of_stream>
<Kind_of_stream>Video</Kind_of_stream>
<Stream_identifier>0</Stream_identifier>
<StreamOrder>0</StreamOrder>
<ID>1</ID>
<ID>1</ID>
<Format>AVC</Format>
<Format_Info>Advanced Video Codec</Format_Info>
<Format_Url>http://developers.videolan.org/x264.html</Format_Url>
<Commercial_name>AVC</Commercial_name>
<Format_profile>Main@L4.2</Format_profile>
<Format_settings>CABAC / 4 Ref Frames</Format_settings>
<Format_settings__CABAC>Yes</Format_settings__CABAC>
<Format_settings__CABAC>Yes</Format_settings__CABAC>
<Format_settings__ReFrames>4</Format_settings__ReFrames>
<Format_settings__ReFrames>4 frames</Format_settings__ReFrames>
<Format_settings__GOP>M=1, N=15</Format_settings__GOP>
<Internet_media_type>video/H264</Internet_media_type>
<Codec_ID>avc1</Codec_ID>
<Codec_ID_Info>Advanced Video Coding</Codec_ID_Info>
<Codec_ID_Url>http://www.apple.com/quicktime/download/standalone.html</Codec_ID_Url>
<Codec>AVC</Codec>
<Codec>AVC</Codec>
<Codec_Family>AVC</Codec_Family>
<Codec_Info>Advanced Video Codec</Codec_Info>
<Codec_Url>http://developers.videolan.org/x264.html</Codec_Url>
<Codec_CC>avc1</Codec_CC>
<Codec_profile>Main@L4.2</Codec_profile>
<Codec_settings>CABAC / 4 Ref Frames</Codec_settings>
<Codec_settings__CABAC>Yes</Codec_settings__CABAC>
<Codec_Settings_RefFrames>4</Codec_Settings_RefFrames>
<Duration>390490</Duration>
<Duration>6mn 30s</Duration>
<Duration>6mn 30s 490ms</Duration>
<Duration>6mn 30s</Duration>
<Duration>00:06:30.490</Duration>
<Duration>00:06:30:03</Duration>
<Duration>00:06:30.490 (00:06:30:03)</Duration>
<Bit_rate_mode>VBR</Bit_rate_mode>
<Bit_rate_mode>Variable</Bit_rate_mode>
<Bit_rate>12301189</Bit_rate>
<Bit_rate>12.3 Mbps</Bit_rate>
<Maximum_bit_rate>17999872</Maximum_bit_rate>
<Maximum_bit_rate>18.0 Mbps</Maximum_bit_rate>
<Width>720</Width>
<Width>720 pixels</Width>
<Clean_aperture_width>704</Clean_aperture_width>
<Clean_aperture_width>704 pixels</Clean_aperture_width>
<Height>480</Height>
<Height>480 pixels</Height>
<Clean_aperture_height>480</Clean_aperture_height>
<Clean_aperture_height>480 pixels</Clean_aperture_height>
<Pixel_aspect_ratio>0.909</Pixel_aspect_ratio>
<Clean_aperture_pixel_aspect_ratio>0.909</Clean_aperture_pixel_aspect_ratio>
<Display_aspect_ratio>1.364</Display_aspect_ratio>
<Display_aspect_ratio>4:3</Display_aspect_ratio>
<Clean_aperture_display_aspect_ratio>1.333</Clean_aperture_display_aspect_ratio>
<Clean_aperture_display_aspect_ratio>4:3</Clean_aperture_display_aspect_ratio>
<Rotation>0.000</Rotation>
<Frame_rate_mode>CFR</Frame_rate_mode>
<Frame_rate_mode>Constant</Frame_rate_mode>
<Frame_rate>29.970</Frame_rate>
<Frame_rate>29.970 fps</Frame_rate>
<Frame_count>11703</Frame_count>
<Standard>NTSC</Standard>
<Resolution>8</Resolution>
<Resolution>8 bits</Resolution>
<Colorimetry>4:2:0</Colorimetry>
<Color_space>YUV</Color_space>
<Chroma_subsampling>4:2:0</Chroma_subsampling>
<Bit_depth>8</Bit_depth>
<Bit_depth>8 bits</Bit_depth>
<Scan_type>Progressive</Scan_type>
<Scan_type>Progressive</Scan_type>
<Interlacement>PPF</Interlacement>
<Interlacement>Progressive</Interlacement>
<Bits__Pixel_Frame_>1.188</Bits__Pixel_Frame_>
<Delay>4402000</Delay>
<Delay>1h 13mn</Delay>
<Delay>1h 13mn 22s 0ms</Delay>
<Delay>1h 13mn</Delay>
<Delay>01:13:22.000</Delay>
<Delay_Settings>DropFrame=No / 24HourMax=Yes / IsVisual=No</Delay_Settings>
<Delay_DropFrame>No</Delay_DropFrame>
<Delay__origin>Container</Delay__origin>
<Delay__origin>Container</Delay__origin>
<Stream_size>600437145</Stream_size>
<Stream_size>573 MiB (89%)</Stream_size>
<Stream_size>573 MiB</Stream_size>
<Stream_size>573 MiB</Stream_size>
<Stream_size>573 MiB</Stream_size>
<Stream_size>572.6 MiB</Stream_size>
<Stream_size>573 MiB (89%)</Stream_size>
<Proportion_of_this_stream>0.88872</Proportion_of_this_stream>
<Language>en</Language>
<Language>English</Language>
<Language>English</Language>
<Language>en</Language>
<Language>eng</Language>
<Language>en</Language>
<Encoded_date>UTC 2014-09-12 20:23:11</Encoded_date>
<Tagged_date>UTC 2014-09-12 20:33:36</Tagged_date>
<Buffer_size>15000000</Buffer_size>
<Color_range>Limited</Color_range>
<colour_description_present>Yes</colour_description_present>
<Color_primaries>BT.601 NTSC</Color_primaries>
<Transfer_characteristics>BT.709</Transfer_characteristics>
<Matrix_coefficients>BT.601</Matrix_coefficients>
<colour_description_present_Original>Yes</colour_description_present_Original>
<colour_primaries_Original>BT.601 NTSC</colour_primaries_Original>
<transfer_characteristics_Original>BT.601</transfer_characteristics_Original>
<matrix_coefficients_Original>BT.601</matrix_coefficients_Original>
</track>
<track type="Audio">
<Count>254</Count>
<Count_of_stream_of_this_kind>1</Count_of_stream_of_this_kind>
<Kind_of_stream>Audio</Kind_of_stream>
<Kind_of_stream>Audio</Kind_of_stream>
<Stream_identifier>0</Stream_identifier>
<StreamOrder>1</StreamOrder>
<ID>2</ID>
<ID>2</ID>
<Format>PCM</Format>
<Commercial_name>PCM</Commercial_name>
<Format_settings>Little / Signed</Format_settings>
<Format_settings__Endianness>Little</Format_settings__Endianness>
<Format_settings__Sign>Signed</Format_settings__Sign>
<Codec_ID>lpcm</Codec_ID>
<Codec>PCM</Codec>
<Codec>PCM</Codec>
<Codec_Family>PCM</Codec_Family>
<Codec_CC>lpcm</Codec_CC>
<Codec_settings>Little / Signed</Codec_settings>
<Codec_settings__Endianness>Little</Codec_settings__Endianness>
<Codec_settings__Sign>Signed</Codec_settings__Sign>
<Duration>390490</Duration>
<Duration>6mn 30s</Duration>
<Duration>6mn 30s 490ms</Duration>
<Duration>6mn 30s</Duration>
<Duration>00:06:30.490</Duration>
<Duration>00:06:30.490</Duration>
<Source_duration>391000</Source_duration>
<Source_duration>6mn 31s</Source_duration>
<Source_duration>6mn 31s 0ms</Source_duration>
<Source_duration>6mn 31s</Source_duration>
<Source_duration>00:06:31.000</Source_duration>
<Bit_rate_mode>CBR</Bit_rate_mode>
<Bit_rate_mode>Constant</Bit_rate_mode>
<Bit_rate>1536000</Bit_rate>
<Bit_rate>1 536 Kbps</Bit_rate>
<Channel_s_>2</Channel_s_>
<Channel_s_>2 channels</Channel_s_>
<Channel_positions>Front: L R</Channel_positions>
<ChannelLayout>L R</ChannelLayout>
<Sampling_rate>48000</Sampling_rate>
<Sampling_rate>48.0 KHz</Sampling_rate>
<Samples_count>18743520</Samples_count>
<Frame_count>390</Frame_count>
<Source_frame_count>391</Source_frame_count>
<Resolution>16</Resolution>
<Resolution>16 bits</Resolution>
<Bit_depth>16</Bit_depth>
<Bit_depth>16 bits</Bit_depth>
<Delay>4402000</Delay>
<Delay>1h 13mn</Delay>
<Delay>1h 13mn 22s 0ms</Delay>
<Delay>1h 13mn</Delay>
<Delay>01:13:22.000</Delay>
<Delay_DropFrame>No</Delay_DropFrame>
<Delay__origin>Container</Delay__origin>
<Delay__origin>Container</Delay__origin>
<Delay_relative_to_video>0</Delay_relative_to_video>
<Delay_relative_to_video>00:00:00.000</Delay_relative_to_video>
<Video0_delay>0</Video0_delay>
<Video0_delay>00:00:00.000</Video0_delay>
<Stream_size>74880000</Stream_size>
<Stream_size>71.4 MiB (11%)</Stream_size>
<Stream_size>71 MiB</Stream_size>
<Stream_size>71 MiB</Stream_size>
<Stream_size>71.4 MiB</Stream_size>
<Stream_size>71.41 MiB</Stream_size>
<Stream_size>71.4 MiB (11%)</Stream_size>
<Proportion_of_this_stream>0.11083</Proportion_of_this_stream>
<Source_stream_size>75072000</Source_stream_size>
<Source_stream_size>71.6 MiB (11%)</Source_stream_size>
<Source_stream_size>72 MiB</Source_stream_size>
<Source_stream_size>72 MiB</Source_stream_size>
<Source_stream_size>71.6 MiB</Source_stream_size>
<Source_stream_size>71.59 MiB</Source_stream_size>
<Source_stream_size>71.6 MiB (11%)</Source_stream_size>
<Source_StreamSize_Proportion>0.11112</Source_StreamSize_Proportion>
<Language>en</Language>
<Language>English</Language>
<Language>English</Language>
<Language>en</Language>
<Language>eng</Language>
<Language>en</Language>
<Encoded_date>UTC 2014-09-12 20:23:11</Encoded_date>
<Tagged_date>UTC 2014-09-12 20:33:36</Tagged_date>
</track>
<track type="Other">
<Count>66</Count>
<Count_of_stream_of_this_kind>1</Count_of_stream_of_this_kind>
<Kind_of_stream>Other</Kind_of_stream>
<Kind_of_stream>Other</Kind_of_stream>
<Stream_identifier>0</Stream_identifier>
<StreamOrder>2</StreamOrder>
<ID>3</ID>
<ID>3</ID>
<Type>Time code</Type>
<Format>QuickTime TC</Format>
<Commercial_name>QuickTime TC</Commercial_name>
<Duration>390490</Duration>
<Duration>6mn 30s</Duration>
<Duration>6mn 30s 490ms</Duration>
<Duration>6mn 30s</Duration>
<Duration>00:06:30.490</Duration>
<Duration>00:06:30.490</Duration>
<Time_code_of_first_frame>01:13:22:00</Time_code_of_first_frame>
<Time_code__striped>Yes</Time_code__striped>
<Time_code__striped>Yes</Time_code__striped>
<Language>en</Language>
<Language>English</Language>
<Language>English</Language>
<Language>en</Language>
<Language>eng</Language>
<Language>en</Language>
<Encoded_date>UTC 2014-09-12 20:23:11</Encoded_date>
<Tagged_date>UTC 2014-09-12 20:33:36</Tagged_date>
</track>
</File>
</Mediainfo>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment