I can't get VLC to report a particular size of MPEG file correctly. I don't think this is an O/S issue, so I'm airing it in General Troubleshooting, but in case it is I'm running VLC 2.1.1 on a 19TB non-RAID film archive in W8v1 on an AMD Trinity desktop.
I have a lot of 1024Mb MPEG files in the archive captured on a Winfast PVR analog TV card at a fixed bitrate of 6000 automatically split at 1024Mb - about 22m42s in duration.
VLC will report the length of most of these correctly and allow me to specify start and stop times in XSPF playlists, but every so often it insists on calling the length 37 seconds. It plays the file completely but with the seconds counter turning over once every 45 seconds.
MS Media Player, Media Player Classic and PowerDVD - and Windows Explorer were all able to read the length of these files correctly.
I carried out two tests on this behaviour to see what was happening.
In the first test I played a XSPF playlist with start and stop times specified on a 22m42s file that VLC recognized.
<?xml version="1.0" encoding="UTF-8"?>
<playlist xmlns="http://xspf.org/ns/0/" xmlns:vlc="http://www.videolan.org/vlc/playlist/ns/0/" version="1">
<title>Playlist</title>
<trackList>
<track>
<location>file:///I:/H22/D2292/LaBohemeP2x5.mpg</location>
<duration>1360207</duration>
<extension application="http://www.videolan.org/vlc/playlist/0">
<vlc:id>0</vlc:id>
<vlc:option>file-caching=300</vlc:option>
<vlc:option>start-time=66.000</vlc:option>
<vlc:option>stop-time=300.000</vlc:option>
</extension>
</track>
</trackList>
<extension application="http://www.videolan.org/vlc/playlist/0">
<vlc:item tid="0"/>
</extens11024,,
</playlist>
VLC had no trouble with this, starting and finishing the track as speciifed, but when the <location> tag was pointed to LaBohemeP1x5.mpg, whose length VLC doesn't recognize, the track completed before getting to the 66th second.
In the second test I used DVTool.exe to truncate LaBohemeP1x5.mpg by 1024 bytes from 107069968b to 107068944b, after which VLC was able to recognize its length and play the specified clip.
This looks to me like a maths foulup.