Phonon video player getting stuck - Raspberry Pi Forums


i trying play video using python phonon player in raspberry pi2, getting stuck after 2 3 seconds @ resolution of video 720 x 480. video smoothly playing other resolutions 160x200, 320x200, 320x240, 640x200, 640x480. actual resolution of video 720 x 480. in advance.

here code:

class ui_mainwindow(object):
def init(self):
self.setupui(mainwindow)
mainwindow.show()
src = phonon.mediasource(path + "video1.mp4")
self.media.setcurrentsource(src) self.media.play()

def setupui(self, mainwindow):
mainwindow.setobjectname(_fromutf8("mainwindow"))

mainwindow.resize(scr_w, scr_h)
mainwindow.move(0,-28)

self.centralwidget = qtgui.qwidget(mainwindow)
self.centralwidget.setobjectname(_fromutf8("centralwidget"))

self.media = phonon.mediaobject(mainwindow)
self.video_widget = phonon.videowidget(self.centralwidget)
phonon.createpath(self.media, self.video_widget)
self.audio_out = phonon.audiooutput(phonon.videocategory)
phonon.createpath(self.media, self.audio_out)

self.video_widget.setgeometry(0, 0, 720, 480)

mainwindow.setcentralwidget(self.centralwidget)



raspberrypi



Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support