QML Video not working on N900 PR1.3
-
I am trying to run the basic example from QML documentation (http://doc.qt.nokia.com/qt-mobility-snapshot/qml-video.html ) on the N900, but I'm getting some strange errors. I have tried with different videos, including videos taken with the N900 without success.
The following errors appear on the console:
setup_buffers: couldn't allocate buffer: not-linked
setup_buffers: couldn't allocate buffer: not-linked
setup_buffers: couldn't allocate buffer: not-linked
setup_buffers: couldn't allocate buffer: not-linkeddsp_thread: failed waiting for events
dsp_thread: failed waiting for events
-
I have the same problem. PR1.3 & qt multimedia 1.1.0 installed.
Same error messages and also this one:
@X Error: BadValue (integer parameter out of range for operation) 2
Extension: 130 (Uknown extension)
Minor opcode: 13 (Unknown request)
Resource id: 0x1
@Video starts to play, but only a small slice of it shows. If I scroll the screen the full video frame is updated, but video stands still. Tried with different formats and seems like this might be a issue in gstreamer. I tried also different scaling methods and sizes, but that only varies the random box that's updated.
Not sure if it matters, but I'm using QML through a native Qt app with QDeclarativeContext.
Example QML:
@import Qt 4.7
import QtMultimediaKit 1.1Rectangle {
anchors.fill: parent
color: "black"Video {
id: video
width : 480
height : 800// video that works also with the n900's player..
source: "file:///home/user/MyDocs/The_Dark_Knight_trailer2_x264.mp4"
fillMode: PreserveAspectFitMouseArea {
anchors.fill: parent
onClicked: {
video.play()
}
}Keys.onSpacePressed: video.paused = !video.paused
Keys.onLeftPressed: video.position -= 5000
Keys.onRightPressed: video.position += 5000
}
}
@ -
thanks to codise, who has pointed me to that link, I have installed Qt Mobility 1.1 on N900:
http://zwong.de/2010/10/qt-mobility-11-maemo5-nokia-qt-sdk/qml Video component on my N900 now works ok.