MediaInfo icon indicating copy to clipboard operation
MediaInfo copied to clipboard

Duration Display Issue in v25.03: Unable to Show Seconds for Files Over 1 Hour

Open NBAMVP opened this issue 9 months ago • 0 comments

Description

When analyzing video files with a duration exceeding 1 hour (e.g., 1 hour 26 minutes 44 seconds), MediaInfo v25.03 only displays the duration up to minutes (e.g., "1 h 26 min") and omits the seconds. For files shorter than 1 hour, the duration is displayed with full precision, including seconds (e.g., "26 min 44 s"). I would like to configure MediaInfo to always display the duration with seconds, even for files longer than 1 hour (e.g., "1 h 26 min 44 s").

Here is a screenshot showing the issue:
![Duration Display Issue](Please insert the link to duration_display_issue.png)

Steps to Reproduce

  1. Open MediaInfo v25.03 (GUI) on Windows 10 (64-bit).
  2. Drag and drop a video file with a duration longer than 1 hour (e.g., 1 hour 26 minutes 44 seconds).
  3. Check the "Duration" field in the "General" section.
  4. The duration is displayed as "1 h 26 min" (seconds are omitted).

Expected Behavior

The duration should be displayed with full precision, including seconds, for all video files (e.g., "1 h 26 min 44 s").

Actual Behavior

For files longer than 1 hour, the duration is displayed only up to minutes (e.g., "1 h 26 min").

Attempts to Resolve

I have tried the following methods to resolve this issue, but none have worked:

  1. Preferences > Tree & Text: The "Tree & Text" tab shows "Not yet...", indicating no settings are available. See screenshot:
    ![Tree & Text Not Yet](Please insert the link to tree_and_text_not_yet.png)
  2. Preferences > Custom: I tried editing the custom template (e.g., "PTERWEB") to change the duration format from %Duration/String3% to %Duration/String4%, but I couldn’t find the exact line to modify, and the change didn’t affect the display.
  3. Language File Modification: I searched for "Duration" in the language file (C:\Program Files\MediaInfo\Plugin\Language\en.csv) and found 14 matches, but none of them defined the duration format (e.g., %Duration/String3%). The entries were mostly labels (e.g., Duration;Duration). See screenshot:
    ![Language File Search](Please insert the link to language_file_search.png)

Environment

  • MediaInfo Version: v25.03 (GUI, Windows 64-bit)
  • Operating System: Windows 10 (64-bit)
  • Sample File: The issue occurs with a video file located at G:\MTN_m3u8DL-RE_v0.3.0-beta_win-x64_20241203\Aneri\720p_2025-03-21_18-1.mpegts. I can provide the file if needed (it is a 1-hour-26-minute-44-second MPEG-TS file).

Additional Information

  • I understand that the default format might be %Duration/String3%, which omits seconds for durations over 1 hour. I would like to use %Duration/String4% to display the full duration.
  • A temporary workaround using the CLI (mediainfo --Inform="General;%Duration/String4%" "file_path") works, but I would prefer a GUI solution.

Feature Request

If this behavior cannot be changed through existing settings, I would like to request a feature to allow users to configure the duration display format in the GUI (e.g., an option to always show seconds).

Thank you for your time and assistance!

Image Image Image Image

NBAMVP avatar Mar 22 '25 06:03 NBAMVP