Page 1 of 1

libvlc_video_get_track /set_track id inconsistency

Posted: 19 Jun 2014 17:34
by siwS
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

Re: libvlc_video_get_track /set_track id inconsistency

Posted: 20 Jun 2014 10:35
by siwS
-- 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?

Re: libvlc_video_get_track /set_track id inconsistency

Posted: 09 Jul 2014 03:23
by Jean-Baptiste Kempf
Look at the logs. But I think it's probably a VLC bug.

Did you try libVLC 2.2.0?