blue videos with QGraphicsProxyWidget

Bug #1354901 reported by Milan Herbig
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
phonon-backend-gstreamer (Ubuntu)
New
Undecided
Unassigned

Bug Description

Since Ubuntu 14.04 LTS I have problem with displaying videos through QGraphicsProxyWidget. All videos are blue colored. Everything works fine with phonon-backend-vlc, and worked flawlessly on ubuntu 13.10 and older.

Platform: Ubuntu 14.04 (latest) x64 - all derivates are the same
Python: 2.7+ and PySide 1.2.1 or PyQt 4.10.4
Package version: phonon-backend-gstreamer 4.7.1+git20140403-0ubuntu1

Code to reproduce bug: (works both on PySide and PyQt)
------------------------------------------------------------------------------------------------------------------------------
from PyQt4.QtGui import *
from PyQt4.QtCore import *
from PyQt4.phonon import Phonon

app = QApplication([])
app.setApplicationName("MyApp")
file_path = u"/home/milan/small.mp4" # change here!

gv = QGraphicsView()
scene = QGraphicsScene(gv)
gv.setScene(scene)

media_src = Phonon.MediaSource(file_path)
media_obj = Phonon.MediaObject()
media_obj.setCurrentSource(media_src)
video_widget = Phonon.VideoWidget()
audio_out = Phonon.AudioOutput(Phonon.VideoCategory)
Phonon.createPath(media_obj, video_widget)
Phonon.createPath(media_obj, audio_out)
playerProxy = scene.addWidget(video_widget)

# rect = QGraphicsRectItem(0, 0, 100, 100)
# rect.setBrush(Qt.red)
# rect.setFlag(QGraphicsItem.ItemIsMovable)
# scene.addItem(rect)

media_obj.play()
gv.show()
app.exec_()
-------------------------------------------------------------------------------------------------------------------------

Code without QGraphicsProxyWidget: (to test phonon functionality)
-------------------------------------------------------------------------------------------------------------------------
from PyQt4.QtGui import *
from PyQt4.QtCore import *
from PyQt4.phonon import Phonon

app = QApplication([])
app.setApplicationName("MyApp")
file_path = u"/home/milan/small.mp4" # change here !

media_src = Phonon.MediaSource(file_path)
media_obj = Phonon.MediaObject()
media_obj.setCurrentSource(media_src)
video_widget = Phonon.VideoWidget()
audio_out = Phonon.AudioOutput(Phonon.VideoCategory)
Phonon.createPath(media_obj, video_widget)
Phonon.createPath(media_obj, audio_out)

media_obj.play()
video_widget.show()

app.exec_()
--------------------------------------------------------------------------------------------------------------------------

Since phonon-backend-gstreamer version has been updated to 4.7.1 with Ubuntu 14.04, I believe this is a bug which needs to be fixed.

Edit: Downgrading phonon-backend-gstreamer to version from Ubuntu 13.10 works fine.

Edit 2: This issue also affects Ubuntu 14.10 official beta (for now).

Revision history for this message
Milan Herbig (milanherbig) wrote :
description: updated
description: updated
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.