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

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
janisy
New Cone
New Cone
Posts: 3
Joined: 28 Feb 2017 22:39

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

Postby janisy » 28 Feb 2017 23:09

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

da2424
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 16 Apr 2013 16:57

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

Postby da2424 » 01 Mar 2017 20:29

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?

janisy
New Cone
New Cone
Posts: 3
Joined: 28 Feb 2017 22:39

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

Postby janisy » 13 Apr 2017 17:39

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 14 Apr 2017 14:57

Does it work fine in the VLC application?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 21 guests