0

I have been trying to check if a video media is 360 degree with python vlc version 3.0.16 for the past 48 hours.

I know that I should get the media tracks then retrieve every track info and here is how I do that:

import vlc

mediaplayer=vlc.MediaPlayer()
media=vlc.Media('video.mp4')

media.parse_with_options(1,0)

while str(media.get_parsed_status()) != 'MediaParsedStatus.done':
     print('still parsing')

mediaplayer.set_media(media)
mediaplayer.play()

tracks=media.tracks_get()

print(next(tracks).video) # This where the problem is , 

next(tracks) is of MediaTrack object which is normal but next(tracks).video is of type LP_VideoTrack

anybody know why this is happening? LP_VideoTrack is nowhere in vlc.py as a class.

魏維德
  • 11
  • 3

0 Answers0