Skip to content

Instantly share code, notes, and snippets.

View wildlux's full-sized avatar

Paolo wildlux

View GitHub Profile
@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)'
#!/usr/bin/env python
import pygame
pygame.init()
percorso='13.mpg'
#percorso='/home/pi/MULTIMEDIA/13.mpg'
a=pygame.movie.Movie(percorso)
cine=pygame.movie.Movie(percorso)
pygame.movie.Movie(percorso)
#print cine
a.play()