Comments (5)
Hi,
I took the liberty of fixing the formatting.
The other errors you might have seen happened during the call to parse()
. In your case, something different is happening: the duration is not detected properly.
Can you please do the following:
- show me the value of
track.to_data()
(just before you attempt to get its duration)? - check if calling
mediainfo.exe filename
differs frommediainfo.exe D:\path\to\filename
?
Also, does it happen for all files? If not, can you send a small example file along with a fully functional test script (it can be minimalistic, as long as it allows me to reproduce the issue).
from pymediainfo.
Track to data results:
{'track_type': 'General', 'count': '332', 'count_of_stream_of_this_kind': '1', 'kind_of_stream': 'General', 'other_kind_of_stream': ['General'], 'stream_identifier': '0', 'track_id': 1, 'other_track_id': ['1 (0x1)'], 'count_of_video_streams': '1', 'count_of_audio_streams': '1', 'video_format_list': 'MPEG Video', 'video_format_withhint_list': 'MPEG Video', 'codecs_video': 'MPEG Video', 'audio_format_list': 'MPEG Audio', 'audio_format_withhint_list': 'MPEG Audio', 'audio_codecs': 'MPEG Audio', 'complete_name': 'D:\\XML\\GUIPuller\\export\\LXFConvert\\414167.mpg', 'folder_name': 'D:\\XML\\GUIPuller\\export\\LXFConvert', 'file_name_extension': '414167.mpg', 'file_name': '414167', 'file_extension': 'mpg', 'completename_last': 'D:\\XML\\GUIPuller\\export\\LXFConvert\\414217.mpg', 'foldername_last': 'D:\\XML\\GUIPuller\\export\\LXFConvert', 'filenameextension_last': '414217.mpg', 'filename_last': '414217', 'fileextension_last': 'mpg', 'format': 'MPEG-TS', 'other_format': ['MPEG-TS'], 'format_extensions_usually_used': 'ts m2t m2s m4t m4s tmf ts tp trp ty', 'commercial_name': 'MPEG-TS', 'internet_media_type': 'video/MP2T', 'file_size': 2733622800, 'other_file_size': ['2.55 GiB', '3 GiB', '2.5 GiB', '2.55 GiB', '2.546 GiB'], 'overall_bit_rate_mode': 'CBR', 'other_overall_bit_rate_mode': ['Constant'], 'frame_rate': '59.940', 'other_frame_rate': ['59.940 FPS'], 'delay': '0.115815', 'other_delay': ['00:00:00.000'], 'file_creation_date': 'UTC 2020-12-11 17:51:44.321', 'file_creation_date__local': '2020-12-11 11:51:44.321', 'file_last_modification_date': 'UTC 2020-12-11 17:51:45.352', 'file_last_modification_date__local': '2020-12-11 11:51:45.352', 'fileextension_invalid': 'ts m2t m2s m4t m4s tmf ts tp trp ty'}
This issue does not happen for all files, however, I am working on an industry application and I would not be able to send you a sample file that fails. I understand if that makes it difficult to fix this issue, I mostly just meant to bring it to your attention, I was able to get around it by changing the working directory of my script.
Feel free to close the issue if you'd like, I was just very confused as to why the way the file is referenced would alter the tracks attribute, especially when other attributes were parsed correctly.
from pymediainfo.
You haven't answered that:
check if calling
mediainfo.exe filename
differs frommediainfo.exe D:\path\to\filename
?
If you can reproduce the issue with MediaInfo itself, it is not a pymediainfo issue.
from pymediainfo.
Hi @123epsilon did you try to run the mediainfo programme directly to see if the same issue occurs?
from pymediainfo.
I'm closing this, I assume the problem is with MediaInfo itself. Please reply if you want the issue reopened.
from pymediainfo.
Related Issues (20)
- Failing test_thread_safety HOT 10
- OSError: Failed to load library; Error occurred in macOS version 11.0.1 HOT 4
- build failure with setuptools_scm 6.0.1 on Python 2.7 HOT 7
- How to fetch `Format settings, GOP` info? HOT 6
- OSError: Failed to load library HOT 5
- Replace pkg_resources with importlib.metadata HOT 3
- How to use template, or specify --outputfile. HOT 1
- Deployment process in Aws lambda function[Not as a lambda layer] HOT 7
- when i use this pymediainfo, i meet some problem like that , see the picture below. it can't loading dylib. (python3.8 macOS 11.3) HOT 2
- Cannot load MediaInfo.dll (windows) from Python 3.8 HOT 10
- Duration for .webm videos returns as string HOT 1
- Mac Install issue: ModuleNotFoundError: No module named 'pymediainfo' HOT 4
- PyInstaller + macOS: "An error occured while opening" files with special characters HOT 5
- Error HOT 7
- output="" for MediaInfo.parse is equivalent to -f HOT 4
- Segmentation Fault HOT 8
- On Mac Os X HOT 3
- AttributeError: Undefined symbol "MediaInfo_Inform" since libmediainfo-update HOT 6
- Add support for macOS ARM HOT 12
- Wheels for Linux HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pymediainfo.