Page 1 of 2
Video length isn't shown for mp4 but is for mkv
Posted: 28 Sep 2023 19:51
by rseiler
Does anyone know why? I'm speaking of the Length field on hover in the info tip.
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.
Re: Video length isn't shown for mp4 but is for mkv
Posted: 28 Sep 2023 22:03
by highend
XY version, OS, do you have a preview of .mp4 in the preview pane?
Re: Video length isn't shown for mp4 but is for mkv
Posted: 28 Sep 2023 22:10
by rseiler
Current version, Win11
I normally have preview pane off, but I enabled it and yes, all videos show up there.
Re: Video length isn't shown for mp4 but is for mkv
Posted: 11 Nov 2023 19:41
by rseiler
Anyone with other ideas?
Re: Video length isn't shown for mp4 but is for mkv
Posted: 12 Nov 2023 16:23
by admin
Assuming the length field is #27, what do you get when you select an MP4 file and run this script:
This will work as well if you use an English UI:
Re: Video length isn't shown for mp4 but is for mkv
Posted: 12 Nov 2023 20:57
by rseiler
Yes, it's 27.

- explorer_3K6lUd72hp.png (12.53 KiB) Viewed 1855 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.
Re: Video length isn't shown for mp4 but is for mkv
Posted: 12 Nov 2023 21:06
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)?
Re: Video length isn't shown for mp4 but is for mkv
Posted: 12 Nov 2023 21:06
by highend
viewtopic.php?p=150223#p150223
Run that with such an .mp4 file selected, show the output.
Re: Video length isn't shown for mp4 but is for mkv
Posted: 12 Nov 2023 21:21
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
Re: Video length isn't shown for mp4 but is for mkv
Posted: 12 Nov 2023 21:24
by highend
No audio, no video info. I'd say your codec is broken. Try to install the K-Lite codec package
Re: Video length isn't shown for mp4 but is for mkv
Posted: 12 Nov 2023 21:34
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.
Re: Video length isn't shown for mp4 but is for mkv
Posted: 12 Nov 2023 21:52
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.
Re: Video length isn't shown for mp4 but is for mkv
Posted: 12 Nov 2023 23:08
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.
Re: Video length isn't shown for mp4 but is for mkv
Posted: 12 Nov 2023 23:33
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^^
Re: Video length isn't shown for mp4 but is for mkv
Posted: 12 Nov 2023 23:41
by rseiler
Good idea. Yes, it does (once I enabled that column anyway, which I don't normally have on in Explorer).