Skip to content

Instantly share code, notes, and snippets.

@smathot
smathot / pygame-vlc.py
Created December 26, 2011 12:26
Use VLC to play videos on a PyGame surface
import os
import sys
import vlc
import pygame
def callback(self, player):
print
print 'FPS =', player.get_fps()
print 'time =', player.get_time(), '(ms)'