libvlc_video_get_track /set_track id inconsistency

This forum is about all development around libVLC.
siwS
New Cone
New Cone
Posts: 2
Joined: 12 Feb 2014 11:59

libvlc_video_get_track /set_track id inconsistency

Postby siwS » 19 Jun 2014 17:34

Hello,
I use libvlc for my application and i just noticed this weird problem.

There are some .mov files with one video stream, whose video track id is inconsistent with the id that vlc returns on
libvlc_video_get_track().

More over, every time the video is restarted (as i initialize my list player media files with "input-repeat=-1" )
the libvlc_video_get_track() function returns a new increased id.
(some ids that was returned: 12, 14, 17, 25, 32, ..., 67 ...)

As a result, when i libvlc_video_set_track() using the track.ID that vlc provides with libvlc_media_tracks_get, the result is the track -1 (not displayed).

This only happens with two .mov files (happens everytime with those two), and works properly for all the other media files i have tested.
Audio tracks behave normally on those two files.

Anyone know why is this happening and if there is any way i can fix it?

Thanks a lot in advance,
Sophia

siwS
New Cone
New Cone
Posts: 2
Joined: 12 Feb 2014 11:59

Re: libvlc_video_get_track /set_track id inconsistency

Postby siwS » 20 Jun 2014 10:35

-- I also noticed that on those files, vlc returns 3 video tracks instead of 1, which it should.

On mediafile analysis of the file, there is only one video stream as you can see on the screenshot,
while videotracklist created by calling libvlc_media_tracks_get returns 3 elements.

Image

Could it be that media is corrupted?

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: libvlc_video_get_track /set_track id inconsistency

Postby Jean-Baptiste Kempf » 09 Jul 2014 03:23

Look at the logs. But I think it's probably a VLC bug.

Did you try libVLC 2.2.0?
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 “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 32 guests