phonon

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

牧云@^-^@ 提交于 2019-12-22 08:18:27
问题 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);

Python3 Qt unicode file name problems

家住魔仙堡 提交于 2019-12-13 04:01:10
问题 Similar to QDir and QDirIterator ignore files with non-ASCII filenames and UnicodeEncodeError: 'latin-1' codec can't encode character With regard to the second link above, I added test0() below. My understanding was that utf-8 was the solution I was searching for, but alas trying to encode the filename fails. def test0(): print("test0...using unicode literal") name = u"123c\udcb4.wav" test("test0b", name) n = name.encode('utf-8') print(n) n = QtCore.QFile.decodeName(n) print(n) # From http:/

Direct Show 9 phonon Error “Pins cannot connect”

╄→гoц情女王★ 提交于 2019-12-10 23:46:39
问题 I'm getting the following error when trying to use the Direct Show 9 backend with qt's phonon framework: Pins cannot connect due to not supporting the same transport. (0x80040266) Does anyone know what this error means and/or how to fix it? Is this a problem with the Direct Show 9 backend for phonon? 回答1: Apparently the problem has to do with bad metadata. If the Id3 tags aren't just right, the direct show 9 backend chokes on them. I solved the problem by writing the following function: void

What could make Phonon/DirectShow miss a standard codec?

我怕爱的太早我们不能终老 提交于 2019-12-10 20:09:27
问题 We're developing a Qt-based application that includes video playback using Phonon. We use .avi files with MJPEG compression (as we need fast seeking to particular frames). On the development machine (running Windows 7) all works well - Phonon uses DirectShow backend, DirectShow loads and plays our video files using standard MJPEG codec from quartz.dll . But some of the testers on Windows 7 reported broken video playback, I had a quick on one of the machines and see nothing special there, but:

How to play sound in Qt5 (Qt4 migration)?

99封情书 提交于 2019-12-10 13:54:08
问题 In Qt4 I used to use QT += multimedia phonon //... #include <Phonon> //... Phonon::MediaObject *mediaObject = Phonon::createPlayer(Phonon::NoCategory, Phonon::MediaSource(QUrl("./assets/audio/window_appear.wav"))); // "\"" + Qdir().absolutePath() + "/audio/click.wav" + "\"" mediaObject->play(); and it all worked fine. But now Phonon is not supported in Qt 5. So I wonder - how can I play media files such as sound in Qt5? Using WebKit? (It is entirely possible but looks kind of bad from many

Qt Phonon open raw audio data file

家住魔仙堡 提交于 2019-12-08 08:32:19
问题 I have already asked a similar question here: Python open raw audio data file Now I want to open, and play, raw audio files with QtPhonon. The main goal is to open the file and play a certain location in the file, for example from the 10th second to the 20th second. Is it possible using QtPhonon ? I couldn't find anything useful about the subject. Thanx in advance. 回答1: The problem in trying to do this with Phonon is that Phonon::MediaSource does not expose any API with which you can specify

Media player/recorder (phonon)

给你一囗甜甜゛ 提交于 2019-12-07 15:08:13
问题 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 Phonon open raw audio data file

强颜欢笑 提交于 2019-12-06 15:33:31
I have already asked a similar question here: Python open raw audio data file Now I want to open, and play, raw audio files with QtPhonon. The main goal is to open the file and play a certain location in the file, for example from the 10th second to the 20th second. Is it possible using QtPhonon ? I couldn't find anything useful about the subject. Thanx in advance. The problem in trying to do this with Phonon is that Phonon::MediaSource does not expose any API with which you can specify the audio format - i.e. the sample rate, encoding and number of channels in your PCM data stream. Normally,

How to overlay a Qt Phonon video with an OpenGL scene?

≡放荡痞女 提交于 2019-12-06 05:58:40
I want play a video with the Qt Phonon Player and overlay it with an OpenGL scene, so that the semitransparent OpenGL objects are above the video. I searched for hours but found no hints how to realize this. This Proof of Concept from Intel describes what I am looking for. http://download.intel.com/embedded/software/IEGD/324707.pdf How can this be realized? Which components are necessary for this? Some posts which are similar to mine: to clearify my intention here i found a picture what perfectly describes what i am looking for. This picture is from a Intel articel for a Hardware Feature of a

Show ubuntu (linux) notifications with Qt

无人久伴 提交于 2019-12-06 03:57:09
问题 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. 回答1: 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