I'm new to using lib vlc. I am currently using it with Python. I would like to display text over the video for X amount of time then have it disappear.
Is this possible?
Now I did see something called marquee text. I'm not 100% sure what this is, but I m guessing it will scroll text across the screen? I'd rather it not move, but I can use it if need be.
If I am right about marquee text and it's my only option, could someone tell me why the following code isn't working? No text appears
Code: Select all
#Create the player
self.player = self.Instance.media_player_new()
self.player.video_set_marquee_int(0, 1) #Enable
self.player.video_set_marquee_int(3, 0) #Opccity NOTE: I also tried, (3,1) I'm not sure what the second param should be
self.player.video_set_marquee_int(6, 1000) # pixels size
self.player.video_set_marquee_int(4, 0) #position
self.player.video_set_marquee_int(5, 5000) #refresh millisec (or sec?)
self.player.video_set_marquee_int(7, 0) #timeout millisec, 0==forever
self.player.video_set_marquee_int(8, 1000) #x
self.player.video_set_marquee_int(9, 500) #y
t = "testtttttttttttttttttttttttttttttttttttt"
t = t.encode(sys.getfilesystemencoding())
self.player.video_set_marquee_string(1, t)