Skip to content

Instantly share code, notes, and snippets.

@wildlux
Created November 15, 2013 17:50
Show Gist options
  • Save wildlux/7488610 to your computer and use it in GitHub Desktop.
Save wildlux/7488610 to your computer and use it in GitHub Desktop.
#!/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()
a.set_volume(1)
del cine
pygame.quit()
cine=pygame.display.set_mode((200,300))
cine=pygame.movie.Movie(percorso)
cine.play()
# funziona!
@wildlux
Copy link
Author

wildlux commented Nov 15, 2013

This code run audio and video from 13.mpg but crash after 20 second about!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment