Search code examples
pythonvlclibvlc

Python bindings for vlc don't working propetly


If i jump to miliseconds, vlc jump to miliseconds + 190

    # VLC player controls
    self.Instance = vlc.Instance()
    self.player = self.Instance.media_player_new()


    # OpenFile
    self.OnStop(None)
    # Creation
    self.Media = self.Instance.media_new(unicode("10min.mp4"))
    self.player.set_media(self.Media)
    # Report the title of the file chosen


    # set the window id where to render VLC's video output
    self.player.set_hwnd(self.videopanel.GetHandle())


   self.player.set_time(200)

It jumps to 390 etc, so i made simple walkaround: self.player.set_time(time - 190)

but if time is < 190 i have exception.... Somebody had this problem with vlc bindings?


Solution

  • I guess VLC may jump between key frames only for specific media types.