PDA

View Full Version : [QML] Video element



grezly
11th May 2010, 14:27
I'm currrently tryinnng out the QML part of QT 4.7.
I've sorted it out so far how everything works, but i'm stuck at the following.
I created a rectangle which holds a Video. This video has to display a stream. I'm streaming on my network to a multicast ip with VLC

cvlc -vvv test.flv --sout "#transcode{vcodec=mp2v,acodec=mp2a,ab=96,channels= 2,vb=3000,width=720,height=576,aspect=4:3}:std{acc ess=udp,mux=ts,dst=multicast_ip:port}" --loop --sout-keep

When i try to display the stream on my pc, i use VLC and it displays correct.
In my element i have the following

Video {
id: video
width : parent.width
height : parent.height
source: "udp://ip:port/"
playing: true
anchors.horizontalCenter: parent.horizontalCenter
}
The above isn't working, but if i change source to source: file.flv it works.
I'm getting one warning Warning: QMediaPluginLoader: Failed to load plugin: "libqgstengine.so.debug" "The shared library was not found." , on both the local video as the stream.

Isn't it possible at this stage to display a stream? Or am i doing something wrong?

huluyige
6th April 2011, 17:26
Hi
Ive got the same problem, did you find the solution