sbraz / pymediainfo

A Python wrapper around the MediaInfo library
https://pymediainfo.readthedocs.org/
Other
314 stars 57 forks source link

Can not get 'Source' field of video track with relative path #99

Closed AceCLee closed 3 years ago

AceCLee commented 3 years ago

MediaInfo GUI can parse this 'Source' field of mpls container. mediainfo I can not get this field with relative path, like this:

MediaInfo.parse("00001.mpls").to_data()

But I can get this field with absolute path, like this:

MediaInfo.parse(r"D:\xxx\xxx\xxx\00001.mpls").to_data()
sbraz commented 3 years ago

Hi, I can reproduce the issue with mediainfo 00001.mpls and mediainfo BDMV/PLAYLIST/00001.mpls, meaning this is a https://github.com/MediaArea/MediaInfoLib/ issue. Please open it there.

The presence of the Source field is linked to the presence of BDMV in the path. This is probably defined here.