[Bug 1354901] [NEW] blue videos with QGraphicsProxyWidget
Milan Herbig
milanherbig at gmail.com
Sun Aug 10 17:22:13 UTC 2014
Public bug reported:
Since Ubuntu 14.10 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.10 (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.10, I believe this is a bug which needs to be fixed.
** Affects: phonon-backend-gstreamer (Ubuntu)
Importance: Undecided
Status: New
** Tags: gstreamer phonon python qgraphicsproxywidget
** Attachment added: "Screenshot image"
https://bugs.launchpad.net/bugs/1354901/+attachment/4173958/+files/screen.png
** Description changed:
Since Ubuntu 14.10 LTS I have problem with displaying videos through
- QGraphicsProxyWidget. All videos are blue colored. Everything wors fine
+ 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.10 (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.10, I believe this is a bug which needs to be fixed.
--
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to phonon-backend-gstreamer in Ubuntu.
https://bugs.launchpad.net/bugs/1354901
Title:
blue videos with QGraphicsProxyWidget
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/phonon-backend-gstreamer/+bug/1354901/+subscriptions
More information about the kubuntu-bugs
mailing list