Page 1 of 1

Accelerated gstreamer and QML

Posted: Wed Mar 27, 2013 10:10 am
by bricke
Hi everyone, I'm not working on the rpi right now, but I'm posting here because I've a very similar system and this forums seems to be the only one that could help me.

I've a board with gstreamer hw accelerated provided from nvidia, I can launch video with the following command:

Code: Select all

gst-launch filesrc location=big_buck_bunny.mp4 ! qtdemux name=demux demux.video_00 ! decodebin ! nv_omx_videosink force-aspect-ratio=true demux.audio_00 ! nv_omx_aacdec ! alsasink
and it works.

And I've succesfully compiled and installed QT5 (5.0.1) with QtMultimedia.

I'm writing now a very basic qml sample to test the video capabilities:

Code: Select all

 ...
Video {
            id: video
            width : parent.width
            height : parent.height
            source: "video.avi"
            autoPlay: true
        }
...
but this code don't work because of some wrong command passed to gstreamer...

Code: Select all

...
(helloworld:971): GStreamer-CRITICAL **: gst_object_ref: assertion `object != NULL' failed
omx_setup error while setting FilterTimestamp
Allocating new output: 1280x720 (x 12)
Error: "The autoaudiosink element is missing."
And that's true, I don't have autoaudiosink element, but I've nv_omx_videosink and nv_omx_audiosink.

Do you have some tips?
Thank you.

Re: Accelerated gstreamer and QML

Posted: Wed Mar 27, 2013 10:19 am
by bricke
I forgot: I need to use alsasink instead of autoaudiosink.