-
Notifications
You must be signed in to change notification settings - Fork 58
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
MediaInfo parser throws TypeError when parsing mp4 file #100
Comments
Hi, I think I know why this happens, can you please attach the output of |
Sure, here is the output of that command: https://pastebin.com/c22VwSHm |
Thanks, it's a really interesting corner case caused by the pymediainfo creates attributes named The problem the code believes I'll try to provide a fix tonight. |
Wonderful! You can close this issue via commit or manually, I'll leave it up to you. |
This was a regression from 099192c when I moved away from generic exceptions. It happened when media files contained tracks of Type "Other", resulting in attributes in "General" such as "Other_Format_List".
This was a regression from 099192c when I moved away from generic exceptions. It happened when media files contained tracks of Type "Other", resulting in attributes in "General" such as "Other_Format_List".
This was a regression introduced by 099192c when I moved away from generic exceptions. It happened when media files contained tracks of Type "Other", resulting in attributes in "General" such as "Other_Format_List".
Can you please try the |
It isn't able to find some sort of library (I have no idea if this error is on my side):
|
Ah you need to either copy the DLL to the |
It works like a charm now. |
This was a regression introduced by 099192c when I moved away from generic exceptions. It happened with media files containing tracks of Type "Other", resulting in attributes such as "Other_Format_List" in the general track. We fix this by listing all repeated attributes instead of relying on them starting with "other_".
Glad I could help, I'm sorry about the regression, the funniest thing is that I needed a test file similar to yours to test this: pymediainfo/pymediainfo/__init__.py Line 209 in d981497
If I had properly tested it, I would have noticed that files with tracks of type Anyway I've released v5.0.3 which contains the fix, enjoy! |
Hello, I'm using the latest version of pymediainfo.
It works for all my mp4 files, except 1: windows media player is able to open it, but when I parse it with MediaInfo.parse() it raises a TypeError.
The problem is not with the win32 api path, because if I cd into the video's directory and execute the same command with a DOS path the same error is raised.
I'm new to python so I might have missed a stupid thing, in that case, sorry in advance :>
The text was updated successfully, but these errors were encountered: