Skip to content

Instantly share code, notes, and snippets.

@finoradin
Created August 22, 2016 16:07
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/3a47fa1a0c338a8e6b9e679da489089d to your computer and use it in GitHub Desktop.
Save finoradin/3a47fa1a0c338a8e6b9e679da489089d to your computer and use it in GitHub Desktop.
example of mediainfo 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">
<Complete_name>/Users/bfino/Downloads/VIDEO_LAYER_3-Brightsign.mov</Complete_name>
<Format>MPEG-4</Format>
<Format_profile>QuickTime</Format_profile>
<Codec_ID>qt </Codec_ID>
<File_size>644 MiB</File_size>
<Duration>6mn 30s</Duration>
<Overall_bit_rate_mode>Variable</Overall_bit_rate_mode>
<Overall_bit_rate>13.8 Mbps</Overall_bit_rate>
<Encoded_date>UTC 2014-09-12 20:23:11</Encoded_date>
<Tagged_date>UTC 2014-09-12 20:33:36</Tagged_date>
<Writing_library>Apple QuickTime</Writing_library>
</track>
<track type="Video">
<ID>1</ID>
<Format>AVC</Format>
<Format_Info>Advanced Video Codec</Format_Info>
<Format_profile>Main@L4.2</Format_profile>
<Format_settings__CABAC>Yes</Format_settings__CABAC>
<Format_settings__ReFrames>4 frames</Format_settings__ReFrames>
<Format_settings__GOP>M=1, N=15</Format_settings__GOP>
<Codec_ID>avc1</Codec_ID>
<Codec_ID_Info>Advanced Video Coding</Codec_ID_Info>
<Duration>6mn 30s</Duration>
<Bit_rate_mode>Variable</Bit_rate_mode>
<Bit_rate>12.3 Mbps</Bit_rate>
<Maximum_bit_rate>18.0 Mbps</Maximum_bit_rate>
<Width>720 pixels</Width>
<Clean_aperture_width>704 pixels</Clean_aperture_width>
<Height>480 pixels</Height>
<Clean_aperture_height>480 pixels</Clean_aperture_height>
<Display_aspect_ratio>4:3</Display_aspect_ratio>
<Clean_aperture_display_aspect_ratio>4:3</Clean_aperture_display_aspect_ratio>
<Frame_rate_mode>Constant</Frame_rate_mode>
<Frame_rate>29.970 fps</Frame_rate>
<Standard>NTSC</Standard>
<Color_space>YUV</Color_space>
<Chroma_subsampling>4:2:0</Chroma_subsampling>
<Bit_depth>8 bits</Bit_depth>
<Scan_type>Progressive</Scan_type>
<Bits__Pixel_Frame_>1.188</Bits__Pixel_Frame_>
<Stream_size>573 MiB (89%)</Stream_size>
<Language>English</Language>
<Encoded_date>UTC 2014-09-12 20:23:11</Encoded_date>
<Tagged_date>UTC 2014-09-12 20:33:36</Tagged_date>
<Color_range>Limited</Color_range>
<Color_primaries>BT.601 NTSC</Color_primaries>
<Transfer_characteristics>BT.709</Transfer_characteristics>
<Matrix_coefficients>BT.601</Matrix_coefficients>
<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">
<ID>2</ID>
<Format>PCM</Format>
<Format_settings__Endianness>Little</Format_settings__Endianness>
<Format_settings__Sign>Signed</Format_settings__Sign>
<Codec_ID>lpcm</Codec_ID>
<Duration>6mn 30s</Duration>
<Source_duration>6mn 31s</Source_duration>
<Bit_rate_mode>Constant</Bit_rate_mode>
<Bit_rate>1 536 Kbps</Bit_rate>
<Channel_s_>2 channels</Channel_s_>
<Channel_positions>Front: L R</Channel_positions>
<Sampling_rate>48.0 KHz</Sampling_rate>
<Bit_depth>16 bits</Bit_depth>
<Stream_size>71.4 MiB (11%)</Stream_size>
<Source_stream_size>71.6 MiB (11%)</Source_stream_size>
<Language>English</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">
<ID>3</ID>
<Type>Time code</Type>
<Format>QuickTime TC</Format>
<Duration>6mn 30s</Duration>
<Time_code_of_first_frame>01:13:22:00</Time_code_of_first_frame>
<Time_code__striped>Yes</Time_code__striped>
<Language>English</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