phonon

Media player/recorder (phonon)

a 夏天 提交于 2019-12-05 23:44:57
I would like to develop a media player/recorder. The primary target platform is Windows, support for other OSs would be nice, but that's not a high priority. It should be able to play formats like wav, mp3, avi. It should also be able to record audio (microphone) and video (webcam or capture card). As I have some experience with QT and C++, I looked at QT (4.7.2) phonon with DS backend. But unfortunately I was unable to play a simple AVI, even with the MediaPlayer sample that comes with the QT demos. I could only hear sound, but saw no video. The developer machine is a 64-bit Vista. I also

How to port Qt4.6 Phonon based media-application to Qt 5.1?

坚强是说给别人听的谎言 提交于 2019-12-05 21:29:35
I have a Qt 4.6 based application which use QtWebView to load a HTML page with tag inside to play a network multimedia source on Windows platform. Instead of using the default PHONON playback engine i build another PHONON back-end engine to handle the media download, demuxer,decoder, rendering etc. It works pretty well. However i need to update to Qt 5.1 to benefit the improvement and bug fix in latest QtWebView. From Qt 4.8 PHONON was dropped and when porting to Qt 5.1 my self implemented playback engine is unknown to QtWebView and my app doesn't work at all. Does any body have an idea how to

Transparency of QDeclarativeView containing QML on top of a QWidget playing a video (using either phonon or libvlc)

巧了我就是萌 提交于 2019-12-05 12:40:09
I am currently developing a video player. The GUI as the topmost layer is written in QML. It should be transparent to lower layers. It contains control elements, some Lists etc., It's displayed using a QDeclarativeView . Description QDeclarativeView *upperLayer = new QDeclarativeView(this); upperLayer->setSource(QUrl("/home/projects/QtVideo/qml/videoControl.qml")); upperLayer->setStyleSheet(QString("background: transparent"); upperLayer->setResizeMode(QDeclarativeView::SizeRootObjectToView); uperLayer->showFullScreen(); The layer underneath is a QWidget: I use the libvlc to display the video

Show ubuntu (linux) notifications with Qt

半腔热情 提交于 2019-12-04 08:56:19
I was working with Phonon multimedia framework in Qt, and it popups a message (like the volume notification message that popups when one changes the volume), because my audio device is not fully configurated, is it possible to launch my own notification from Qt? Please see the image above. Thank you very much. AFAIK using libnotify is the way to go, if you dont want to use this method I found after some digging around on the net: system("notify-send 'The Message Title' 'Your Message Text' '-t' 5000"); the -t parameter is for the notification timeout. you can read up on notify-send here: ubuntu

Play mp3 using Python, PyQt, and Phonon

ε祈祈猫儿з 提交于 2019-12-03 09:57:47
问题 I been trying all day to figure out the Qt's Phonon library with Python. My long term goal is to see if I could get it to play a mms:// stream, but since I can't find an implementation of this done anywhere, I will figure that part out myself. (figured I'd put it out there if anyone knew more about this specifically, if not no big deal.) Anyway, I figured I'd work backwards from a working example I found online. This launches a file browser and will play the mp3 file specified. I wanted to

Displaying WebCam video with Qt

百般思念 提交于 2019-12-03 09:22:39
问题 I'm using Qt 4.5 (2009.03) on Linux Gnome (Ubuntu 9.04) and would like to display video captured by my webcam in a Phonon::VideoWidget of my Qt application. I have a first implementation using the v4l2 API where I do the YUV2 to RGB conversion and fill a QImage my self. It works well but it is not very efficient. A collegue used gStreamer to do the same thing and it was much much faster. Since then I found out about phonon and would like to use it. Everything is configured and set up except

Play mp3 using Python, PyQt, and Phonon

匆匆过客 提交于 2019-12-03 00:29:57
I been trying all day to figure out the Qt's Phonon library with Python. My long term goal is to see if I could get it to play a mms:// stream, but since I can't find an implementation of this done anywhere, I will figure that part out myself. (figured I'd put it out there if anyone knew more about this specifically, if not no big deal.) Anyway, I figured I'd work backwards from a working example I found online. This launches a file browser and will play the mp3 file specified. I wanted to strip out the file browser stuff and get it down to the essentials of executing the script and having it

Qt phonon video player example C++ or python

 ̄綄美尐妖づ 提交于 2019-11-29 12:15:08
Does anyone have a working example of a video player built using Qt phonon? (in C++ ) See my related question here . I am unable to build one using Python. A working example of a video player built using Qt phonon: Dragon Player And here you find the Mplayer created with Phonen too, including all the sources: Phonon MPlayer . You need to login, then you can browse the source code by clicking on "Source" and then "Browse". EDIT: Oh, and of course the Media Player Example in the Qt Assistant, you should have a look at this, too. It plays both audio and video. I have written a Simple Video Player

Play a video with custom overlay graphics

♀尐吖头ヾ 提交于 2019-11-28 06:34:34
问题 I want to play a video (with sound) in a simple GUI with "play" and "stop" buttons etc. There are classes and widgets in Qt's Phonon module for doing that, and several examples. OK, so that seems to be simple. But now I need to draw some custom graphics (that depend on the current time in the video) on top of the streamed video image. I have not found anything about this in the Qt documentation. What's the canonical way of doing this? Do I just create a custom VideoWidget widget and override