Video length isn't shown for mp4 but is for mkv

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
rseiler
Posts: 25
Joined: 25 Jun 2017 23:22

Video length isn't shown for mp4 but is for mkv

Post by rseiler »

Does anyone know why? I'm speaking of the Length field on hover in the info tip.

Image

Inside '"Select Standard Fields" I have Length checked.

When I hover over any mkv, the box includes a Length field. For mp4, however, it does not. I was curious if avi would, and it does.

highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Video length isn't shown for mp4 but is for mkv

Post by highend »

XY version, OS, do you have a preview of .mp4 in the preview pane?
One of my scripts helped you out? Please donate via Paypal

rseiler
Posts: 25
Joined: 25 Jun 2017 23:22

Re: Video length isn't shown for mp4 but is for mkv

Post by rseiler »

Current version, Win11

I normally have preview pane off, but I enabled it and yes, all videos show up there.

rseiler
Posts: 25
Joined: 25 Jun 2017 23:22

Re: Video length isn't shown for mp4 but is for mkv

Post by rseiler »

Anyone with other ideas?

admin
Site Admin
Posts: 64917
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Video length isn't shown for mp4 but is for mkv

Post by admin »

Assuming the length field is #27, what do you get when you select an MP4 file and run this script:

Code: Select all

echo property("#27");
This will work as well if you use an English UI:

Code: Select all

echo property("*Length");

rseiler
Posts: 25
Joined: 25 Jun 2017 23:22

Re: Video length isn't shown for mp4 but is for mkv

Post by rseiler »

Yes, it's 27.

explorer_3K6lUd72hp.png
explorer_3K6lUd72hp.png (12.53 KiB) Viewed 1620 times

Each script just returns this when an mp4 is selected:

Echo

Whereas if I select an mkv and run the same, it does in fact return the length beneath the word Echo.

admin
Site Admin
Posts: 64917
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Video length isn't shown for mp4 but is for mkv

Post by admin »

rseiler wrote: 28 Sep 2023 22:10 I normally have preview pane off, but I enabled it and yes, all videos show up there.
MP4 videos play in the preview tab (F12)?

highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Video length isn't shown for mp4 but is for mkv

Post by highend »

viewtopic.php?p=150223#p150223

Run that with such an .mp4 file selected, show the output.
One of my scripts helped you out? Please donate via Paypal

rseiler
Posts: 25
Joined: 25 Jun 2017 23:22

Re: Video length isn't shown for mp4 but is for mkv

Post by rseiler »

Yes to the preview playing, which is one reason I keep that off.
XY properties: 28
=================
#LinkTarget =
#ShortcutTarget =
#JunctionTarget =
#ResolveJunctions = G:\VCDs\Test.mp4
#ResolveJunctionsAll = G:\VCDs\Test.mp4
#Label =
#Tags =
#Comment =
#HardLinks = 1
#AspectRatio =
#audio.bitdepth =
#audio.bitrate =
#audio.channels =
#audio.length =
#audio.samplerate =
#mp3.album =
#mp3.artist =
#mp3.Comments =
#mp3.genre =
#mp3.title =
#mp3.track =
#mp3.year =
#date.created = 11/11/23 8:23:03 PM
#date.modified = 11/11/23 8:24:14 PM
#date.accessed = 11/12/23 12:08:47 PM
#image.dimensions =
#image.datetaken =
#version =

IDs with names & values: 24
===========================
#001 | Size: 156 MB
#002 | Item type: MP4 Video File
#003 | Date modified: 11/11/23 8:24 PM
#004 | Date created: 11/11/23 8:23 PM
#005 | Date accessed: 11/12/23 12:08 PM
#006 | Attributes: A
#009 | Perceived type: Video
#010 | Owner: Z68\b
#011 | Kind: Video
#019 | Rating: Unrated
#057 | Total size: 0.99 TB
#061 | Computer: Z68 (this PC)
#164 | File extension: .mp4
#165 | Filename: Test.mp4
#169 | Space free: 259 GB
#187 | Shared: No
#190 | Folder name: VCDs
#191 | File location: G:\VCDs
#192 | Folder: VCDs (G:)
#194 | Path: G:\VCDs\Test.mp4
#196 | Type: MP4 Video File
#202 | Link status: Unresolved
#254 | Space used: 74%
#295 | Sharing status: Not shared

IDs with names but not a value: 279
===================================
<snipped>

Unused IDs: 1
=============
#296

highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Video length isn't shown for mp4 but is for mkv

Post by highend »

No audio, no video info. I'd say your codec is broken. Try to install the K-Lite codec package
One of my scripts helped you out? Please donate via Paypal

rseiler
Posts: 25
Joined: 25 Jun 2017 23:22

Re: Video length isn't shown for mp4 but is for mkv

Post by rseiler »

If it was broken, wouldn't you expect mp4s to show a problem beyond this one narrow aspect?

I happen to already use K-Lite, so that's covered. I update it about once a week, so it's extremely current.

highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Video length isn't shown for mp4 but is for mkv

Post by highend »

I see that even the shell doesn't provide the minimal bit of info about that type of container. So in that aspect: Yeah, it's broken.
One of my scripts helped you out? Please donate via Paypal

rseiler
Posts: 25
Joined: 25 Jun 2017 23:22

Re: Video length isn't shown for mp4 but is for mkv

Post by rseiler »

Mediafinfo, the little helper app that K-Lite installs, knows all about it when invoked on a right-click, so that's another thing not showing a problem.

highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Video length isn't shown for mp4 but is for mkv

Post by highend »

How unexpected that mediainfo can read the metadata of that file *irony off*

Does Windows Explorer show the length of that file? If not: Again, it's broken^^
One of my scripts helped you out? Please donate via Paypal

rseiler
Posts: 25
Joined: 25 Jun 2017 23:22

Re: Video length isn't shown for mp4 but is for mkv

Post by rseiler »

Good idea. Yes, it does (once I enabled that column anyway, which I don't normally have on in Explorer).

Post Reply