Page 1 of 1

vlc.input.time error for h.264 mp4? (activeX in Matlab)

Posted: 28 Feb 2017 23:09
by janisy
Hi,

I'm using VLC activeX plugin with Matlab 2015b 32-bit on Windows 7 to play some .mp4 files supposedly requiring the h264 codec.

When playing this kind of files in particular, vlc.input.time and vlc.input.length gives me some ridiculous numbers. The first 15seconds, it insists time is 0. Then it goes suddenly from 2 to 185, then back to 32... etc.. The total length of a 2.5h video was only 507792ms.

Everything seems ok when playing crappy cellphone .mp4 or .avi

Does anyone know why this is and how I can fix this?

Thanks!

-Janis

Re: vlc.input.time error for h.264 mp4? (activeX in Matlab)

Posted: 01 Mar 2017 20:29
by da2424
Which VLC version do you use?
Sounds like a problem in libvlc itself. Could you test it with VLC 2.2.5 or 3.0 nightlies?

Re: vlc.input.time error for h.264 mp4? (activeX in Matlab)

Posted: 13 Apr 2017 17:39
by janisy
Hi, Thanks for the reply. Sorry for the late response.

I'm using VLC 2.2.4, which appears to be the latest official build.
I tried the 2.2.5 nightly from April 2017 as you recommended, but this is my first time trying a nightly so not sure if I did it correctly. I just downloaded the files in the latest thread and ran it. Anyway, the end result I think is the same. Even running the video in the player itself, the timer didn't start moving until at least 20s into the movie.

Re: vlc.input.time error for h.264 mp4? (activeX in Matlab)

Posted: 14 Apr 2017 14:57
by Jean-Baptiste Kempf
Does it work fine in the VLC application?