Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tracks only works in some cases, xml empty #23

Closed
eamonnkenny opened this issue Mar 21, 2016 · 2 comments
Closed

tracks only works in some cases, xml empty #23

eamonnkenny opened this issue Mar 21, 2016 · 2 comments

Comments

@eamonnkenny
Copy link

mediainfo -f --Output=XML filename.webm works fine.
but since latest pip upgrade of pymediainfo from 1.4.0 to 2.0 finding that tracks information doesn't exist anymore. Well in fact dom is empty upon loading when it clearly isn't when running mediainfo.

Tried a different machine with 1.4.0 installed and worked on same file. Then upgraded using pip to 2.0 and found that same file fails.

Try downloading: http://peep.scss.tcd.ie/WebContent/corpus/dail_files/20080520_LCb/20080520_LCb.webm as a test case. Note, xmlwf shows XML from mediainfo is well-formed.

@sbraz
Copy link
Owner

sbraz commented Mar 21, 2016

This seems to be an issue with Python 2. It works fine with Python 3.
It might be related to #22 which is also something that fails on Python 2 but not Python 3. I have not yet been able to identify the issue.
Version 2.0 does not call the binary but relies on the library. If you want to mimic the old behaviour until it is fixed, you can do something like pymediainfo.MediaInfo(subprocess.check_output(["mediainfo", "--output=XML", "-f", "20080520_LCb.webm"]))
I'm attaching your video sample for future reference: 20080520_LCb.webm.zip

@sbraz sbraz closed this as completed in ab7833f Mar 21, 2016
@sbraz
Copy link
Owner

sbraz commented Mar 21, 2016

The problem was with the unicode characters in the XML output. Please try with the git version (pip install -U --user git+https://github.com/sbraz/pymediainfo/)
I will be making a new release shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants