Giter VIP home page Giter VIP logo

Comments (5)

sbraz avatar sbraz commented on June 16, 2024

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 from mediainfo.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.

123epsilon avatar 123epsilon commented on June 16, 2024

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.

sbraz avatar sbraz commented on June 16, 2024

You haven't answered that:

check if calling mediainfo.exe filename differs from mediainfo.exe D:\path\to\filename?

If you can reproduce the issue with MediaInfo itself, it is not a pymediainfo issue.

from pymediainfo.

sbraz avatar sbraz commented on June 16, 2024

Hi @123epsilon did you try to run the mediainfo programme directly to see if the same issue occurs?

from pymediainfo.

sbraz avatar sbraz commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.