Questions tagged [phonon]

Phonon is the multimedia API provided by Qt.

Phonon is the multimedia API provided by Qt. It is the standard abstraction for handling multimedia streams within the KDE Software Compilation 4.

Features:

  • Centralized configuration of audio and video: configuration of hardware and media frameworks are offered in a single, centralized dialog.
  • Purpose driven design: instead of demanding that you select special audio outputs for applications, Phonon applications describe what kind of sound output they make and lets you select for these categories individually.
  • Automated device selection: pluggable audio and video devices like USB or Bluetooth headsets become easy to use with Phonon. Phonon acts on information and signals from Solid, which is KDE's hardware subsystem, and automatically makes use of new devices.

In order to provide sound, Phonon uses various backend libraries, like:

  • DirectShow Phonon-DS9
  • GStreamer Phonon-GStreamer
  • QuickTime Phonon-QT7
  • Vlc: Phonon-VLC

More info: Phonon home

182 questions
11
votes
3 answers

Displaying WebCam video with Qt

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…
chmike
  • 20,922
  • 21
  • 83
  • 106
10
votes
0 answers

How to use the phonon-vlc-backend in PyQt4 on Windows

I'm helping develop a PyQt4.8 application which amongst other things plays video and audio. We are using Phonon for this, part of the reason being that we also embed videos in a QtWebkit page which uses the same. On Windows 7, the default phonon…
Jonathan Corwin
  • 960
  • 1
  • 7
  • 11
8
votes
1 answer

Creating a python audio player using QWebView and the HTML5 Audio API

I am seriously new to Python and my first project is quite ambitious :D I'm trying to create an audio player using a QWebView and the HTML5 Audio API. I want to use Phonon to actually play the media, but I'd like to be able to use the HTML5 Audio…
jakalofnaar
  • 111
  • 2
8
votes
1 answer

How do I get PyQt4.phonon?

I'm trying to run something that needs phonon from python 2.7, and it asks for from PyQt4.phonon import Phonon When I run, I get an error saying no module named phonon. I've installed python and pyqt via both brew and port, and neither one of…
Gargoyle
  • 9,590
  • 16
  • 80
  • 145
7
votes
2 answers

Show ubuntu (linux) notifications with Qt

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…
Hermandroid
  • 2,120
  • 4
  • 29
  • 35
7
votes
2 answers

Qt5, Phonon and Multimedia kit

I´m quite new to Qt development and I´m using Qt5 Beta1 on MacOSX. For the last two days I´ve been reading the docs and looking for information about the different possibilities that I have in order to implement a widget that displays the frame of a…
AlvaroSantisteban
  • 5,256
  • 4
  • 41
  • 62
7
votes
3 answers

Play mp3 using Python, PyQt, and Phonon

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.…
KeyboardInterrupt
  • 3,483
  • 8
  • 36
  • 41
5
votes
3 answers

Display a webcam stream in PyQt4 using OpenCV Camera Capture

I am using this Python script to display my webcam: from opencv.cv import * from opencv.highgui import * import sys cvNamedWindow("w1", CV_WINDOW_AUTOSIZE) camera_index = 0 capture = cvCreateCameraCapture(camera_index) def repeat(): …
Natim
  • 17,274
  • 23
  • 92
  • 150
5
votes
2 answers

QFileDialog filter from mime-types

I want the filter in a QFileDialog to match all audio file types supported by Phonon on the platform in question. 1 - However I am not able to find a way in Qt to use mime types in a filter. How can I do that? 2 - Or how can I find the corresponding…
Mathias
  • 1,446
  • 2
  • 16
  • 31
5
votes
1 answer

How to play sound in Qt5 (Qt4 migration)?

In Qt4 I used to use QT += multimedia phonon //... #include //... Phonon::MediaObject *mediaObject = Phonon::createPlayer(Phonon::NoCategory, Phonon::MediaSource(QUrl("./assets/audio/window_appear.wav"))); // "\"" +…
myWallJSON
  • 9,110
  • 22
  • 78
  • 149
4
votes
3 answers

Qt + Phonon: doesn't play on some computers

I have a problem with my application after deploying to a clean machine. These are the results of running the application: Win7 Home: After installing ffdshow the program plays wmv, mp3. Vista Home: With ffdshow installed, it plays mp3, but not…
mimic
  • 4,897
  • 7
  • 54
  • 93
4
votes
1 answer

wkhtmltopdf seems to need Phonon needs QCoreApplication::applicationName; why?

I am using wkhtmltoimage and everything was going well until I ask it to do a screenshot of twitter and I got this weird error: Loading page (1/2) WARNING: Phonon needs QCoreApplication::applicationName to be set to export audio output names through…
jnbdz
  • 4,863
  • 9
  • 51
  • 93
4
votes
2 answers

What is the best way to manage multiplatform video stream using Python?

I have this question in my head for over a year now. And I guess you guys may have the answer. In some Python GUI app, I need to display a video stream. I need to record some part of this stream to reread it later. Moreover, I need to make this…
Natim
  • 17,274
  • 23
  • 92
  • 150
4
votes
2 answers

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

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…
mmoment
  • 1,269
  • 14
  • 30
3
votes
1 answer

How to play an .mp3 using QBuffer with Phonon in a PyQt Qt environment

With the code I have right now I CAN play .mp3 data from files succesfully. However I need to play the same data using a QtCore.QBuffer (NOT from a file). When I use the example of the docs it errors an unexpected type of QBuffer! However...... that…
thedax
  • 131
  • 1
  • 5
1
2 3
12 13