ledy
ledy

Reputation: 1617

detect Baseline/Profile of mp4 video

How to find out the baseline/profile of a mp4 video file?

The unix tool file only says ISO Media, MPEG v4 system, version 2 But there are differences between mp4s.

Upvotes: 1

Views: 2853

Answers (2)

blahdiblah
blahdiblah

Reputation: 33991

FFprobe is a great tool for getting video information, including profile, and can output a variety of easily parsed formats.

Upvotes: 1

Sebastian Annies
Sebastian Annies

Reputation: 2468

you could use the mediainfo tool on the file. Output is like this:

...
Codec/CC                                 : avc1
Codec profile                            : [email protected] 
Codec settings                           : 2 Ref Frames
Codec settings, CABAC                    : No
...

or if you want to find out without an external tool you would need to parse the MP4 up to /moov/trak/mdia/minf/stbl/stsd/avc1/avcC . In the avcC box you can find the SPS (sequence parameter set) and that data structure contains the fields profile_idc and level_idc. Annex A of the 14496-10 specification then allows you to translate these two fields to actual level and profile.

Upvotes: 5

Related Questions