haresh
Posts: 7
Joined: Mon Sep 07, 2015 10:23 am

Unable to play video

Thu Sep 10, 2015 6:51 am

Hello all,
I have cross compiled Qt wiht gstreamer 0.10 enabled for raspberry pi and have made an app to play a video on rapsberry pi which is using QtMultimedia to stream the video.
App is running fine on the host machine but it gives errors on the pi saying
configured videosink video-output-bin is not working and
GLib-GObject instance X has no object with handler id Y.
so anyone can help to resolve this???

gkreidl
Posts: 6355
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Unable to play video

Thu Sep 10, 2015 7:18 am

You'll need HW acceleration to play video and gstreamer-0.1 does not support it. Perhaps you can get it to work if you use gstreamer-1.0 and the omx-plugin.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

haresh
Posts: 7
Joined: Mon Sep 07, 2015 10:23 am

Re: Unable to play video

Thu Sep 10, 2015 8:29 am

But QtMultimedia uses gstreamer0.10

gkreidl
Posts: 6355
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Unable to play video

Thu Sep 10, 2015 8:56 am

haresh wrote:But QtMultimedia uses gstreamer0.10
Then it's almost useless on the RPi (may work with small sized low resolution video).
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

haresh
Posts: 7
Joined: Mon Sep 07, 2015 10:23 am

Re: Unable to play video

Fri Sep 11, 2015 4:48 am

Hi,
thanks for your help
I came to know that gstreamer 1.0 support is enabled in Qt5.5 so if I managed to cross compile with 1.0 then will it play??

gkreidl
Posts: 6355
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Unable to play video

Fri Sep 11, 2015 5:16 am

haresh wrote:Hi,
thanks for your help
I came to know that gstreamer 1.0 support is enabled in Qt5.5 so if I managed to cross compile with 1.0 then will it play??
There is no QT 5.5 for the RPi (at least not in the repository). You have to build the whole thing yourself (if required packages are available).
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

haresh
Posts: 7
Joined: Mon Sep 07, 2015 10:23 am

Re: Unable to play video

Fri Sep 11, 2015 5:29 am

Yes I Know I have to cross compile it
If I managed to do that then will it work??

betruk
Posts: 36
Joined: Fri Apr 24, 2015 8:17 am

Re: Unable to play video

Fri Sep 11, 2015 5:52 am

How to build the whole thing by myself? I am a newbie. Thank you for the hints.

gkreidl
Posts: 6355
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Unable to play video

Fri Sep 11, 2015 6:12 am

betruk wrote:How to build the whole thing by myself? I am a newbie. Thank you for the hints.
I've never tried cross compiling; I do everything on the RPi itself.
https://wiki.qt.io/Building-Qt-5-from-Git
(you should disable webkit).
You may run into a lot of difficulties (missing packages or package versions too old).
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

haresh
Posts: 7
Joined: Mon Sep 07, 2015 10:23 am

Re: Unable to play video

Fri Sep 11, 2015 6:19 am

you can follow this link to cross compile
https://wiki.qt.io/RaspberryPi_Beginners_Guide

haresh
Posts: 7
Joined: Mon Sep 07, 2015 10:23 am

Re: Unable to play video

Mon Sep 14, 2015 5:26 am

gkreidl wrote:You'll need HW acceleration to play video and gstreamer-0.1 does not support it. Perhaps you can get it to work if you use gstreamer-1.0 and the omx-plugin.
Now I have enable gstreamer1.0 support but the result is still same

haresh
Posts: 7
Joined: Mon Sep 07, 2015 10:23 am

Re: Unable to play video

Wed Sep 16, 2015 9:28 am

I have found that the app is working with eglfs plugins and plays the video but not with the xcb plugins
so any suggestion why it is not playing with xcb or how to play it??

Return to “Graphics, sound and multimedia”