Skip to content

Possible to get full format details without format_additionalfeatures? #119

Answered by sbraz
Mchar7 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
pymediainfo defaults to full output, similarly to mediainfo -f.

With full output, the "Format" attribute is repeated, e.g. from the CLI:

Format                                   : DTS   
Format                                   : DTS XLL X 

With pymediainfo, info for repeated keys can be found under other_format:

In [9]: pymediainfo.MediaInfo.parse("dtsx.mkv").audio_tracks[0].other_format
Out[9]: ['DTS XLL X']

You can use to_data to dump all attributes from your track.

If you prefer a shorter output, you can just pass full=False to parse but you'll see less info this way:

In [7]: pymediainfo.MediaInfo.parse("dtsx.mkv", full=False).audio_tracks[0].format
Out[7]: 'DTS XLL X'

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Mchar7
Comment options

Answer selected by Mchar7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants