Page 2 of 7

Re: Gstreamer 1.0 for raspbian

Posted: Sun Mar 31, 2013 6:56 pm
by mcisely
ok, I have updated gstreamer to 1.0.6 and liborc to 0.4.17.

After updating the following pipeline should work:
CODE: SELECT ALL
gst-launch-1.0 filesrc location=big_buck_bunny_720p_H264_AAC_25fps_3400K.MP4 ! decodebin ! videoconvert ! ximagesink
Yes, that fixed it. Thanks. (However I see now that ximagesink is too slow for what I need but that's not a bug, just another example for why the GPU is needed to do this correctly.) Thanks again.

-Mike

Re: Gstreamer 1.0 for raspbian

Posted: Sun Apr 07, 2013 6:57 am
by Defiant
Noticed that. Also the fbdevsink is too slow. Try the eglglessink after updating.

Re: Gstreamer 1.0 for raspbian

Posted: Sun Apr 07, 2013 8:43 am
by tomtaylor
I'm using this build of gstreamer, but I can't get eglglessink to work correctly. When I attempt to pipe a video through, I see:

libEGL warning: DRI2: xcb_connect failed
libEGL warning: DRI2: xcb_connect failed
libEGL warning: GLX: XOpenDisplay failed

And then eglglessink says it could not init the display connection, returned error 3000.

I'm guessing this is because I need to be in X to run eglglessink. Can it be used without X?

Re: Gstreamer 1.0 for raspbian

Posted: Sun Apr 07, 2013 8:45 am
by Defiant
It runs without. Did you update?

Re: Gstreamer 1.0 for raspbian

Posted: Sun Apr 07, 2013 7:46 pm
by denjell
i can confirm that it eglglessink is now "working" without X, but seems to be framedropping to keep up. it is definitely smoother, but by my estimate around 15fps. still not on par with omxplayer, but is starting to get better and better. :)

Re: Gstreamer 1.0 for raspbian

Posted: Sun Apr 07, 2013 8:43 pm
by Defiant
Seems to be pipeline dependent.

Code: Select all

videotestsrc ! eglglessink
also lagged for me, while the test pipeline

Code: Select all

filesrc location=big_buck_bunny_720p_H264_AAC_25fps_3400K.MP4 ! qtdemux ! queue
max-size-bytes=10000000 ! h264parse ! omxh264dec ! queue max-size-buffers=4 ! eglglessink
does fine.

Re: Gstreamer 1.0 for raspbian

Posted: Mon Apr 08, 2013 9:30 am
by denjell
wow! you're right. I was using videoconvert in my pipeline - which drops out. your video-only pipeline works fine at 720p - but still has framedropping issues at 1080p. (although this could be because of my slow SD card...)

here is my pipeline with audio:

Code: Select all

gst-launch-1.0 filesrc location=big_buck_bunny_720p_H264_AAC_25fps_3400K_short.MP4 ! qtdemux name=demuxer \ demuxer. ! queue ! faad ! alsasink device=hw:0,0 sync=false \ demuxer. ! queue max-size-bytes=10000000 ! h264parse ! omxh264dec ! queue max-size-buffers=4  ! eglglessink
any idea why it drops frames at 1080p?

Re: Gstreamer 1.0 for raspbian

Posted: Thu Apr 11, 2013 2:49 am
by portets
So if a video player that uses gstreamer, like Totem for example, were compiled against the version of gstreamer in this thread, would it be fully functional and hardware accelerated?

Re: Gstreamer 1.0 for raspbian

Posted: Thu Apr 11, 2013 8:00 am
by Defiant
Should be. I guess someone has to to try..

But if a decodebin ! autovideosink pipeline works, so should totem.

Re: Gstreamer 1.0 for raspbian

Posted: Thu Apr 11, 2013 1:31 pm
by 10robinho
Defiant wrote:It runs without. Did you update?
Hi, what version of gst-plugins-bad did you used? Latest git?

Because I've tried with 1.0.6 and it doesn't work without X for me.

Re: Gstreamer 1.0 for raspbian

Posted: Thu Apr 11, 2013 3:46 pm
by Defiant
The important part is on how you compile it. You need to do

Code: Select all

LDFLAGS='-L/opt/vc/lib' CPPFLAGS='-I/opt/vc/include
-I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux' ./autogen.sh

Re: Gstreamer 1.0 for raspbian

Posted: Thu Apr 18, 2013 11:59 pm
by 10robinho
Is this combo
omxh264dec ! eglglessink
rendering video with zero-copy?

Re: Gstreamer 1.0 for raspbian

Posted: Fri Apr 26, 2013 6:11 am
by sanv
Hi.

I'm using this prebuild of gstreamer.
it works fine:

Code: Select all

gst-launch-1.0 filesrc location=sema_h264.avi ! decodebin ! videoconvert ! eglglessink
It does not work:

Code: Select all

gst-launch-1.0 filesrc location=sema_h264.avi ! qtdemux ! queue max-size-bytes=10000000 ! h264parse ! omxh264dec ! queue max-size-buffers=4 ! eglglessink

********* PAUSED…
**********(PREROLL)…
ERROR: из элемента /GstPipeline:pipeline0/GstQTDemux:demuxer: This file is invalid and can not be reproduced.
Дополнительная отладочная информация:
qtdemux.c(597): gst_qtdemux_pull_atom (): /GstPipeline:pipeline0/GstQTDemux:demuxer:
atom has bogus size 1380533830
ERROR: pipeline does not want (PREROLL).
Help,pls)

Re: Gstreamer 1.0 for raspbian

Posted: Fri Apr 26, 2013 6:27 am
by Defiant
Is qtdemux the right demuxer for you? Your file with .avi extension doesn't look like a Quick Time video.

Re: Gstreamer 1.0 for raspbian

Posted: Fri Apr 26, 2013 10:09 am
by sanv
I'm not sure... My goal is qml video(QtMultimedia).
Raspbian OMX player sees my file.I will now download and try
buck bunny.

Re: Gstreamer 1.0 for raspbian

Posted: Fri Apr 26, 2013 1:43 pm
by sanv
How to run the qml application after installation of the prebuild of gstreamer(gst-omx)?
"./testvideo" or "./testvideo -?????"
Maybe I need to add a environment variable?

Re: Gstreamer 1.0 for raspbian

Posted: Fri Apr 26, 2013 1:51 pm
by Defiant
This sounds like a question that should be addressed to the QT-People.
Gst-omx should automatically be used by decodebin.

Re: Gstreamer 1.0 for raspbian

Posted: Tue May 28, 2013 5:05 am
by Kentzo
Hi everyone.

A few questions:
Neither ximagesink nor xvimagesink work on my pi (Raspbian).
xvinfo returns "Unable to open display".
How do you make the sinks above work?

When playing 1080p (h264) fps is low. Is it known issue or I miss some parameters in my pipeline?

Code: Select all

filesrc location=./big_buck_bunny_1080p_H264_AAC_25fps_7200K.MP4 ! qtdemux ! h264parse ! omxh264dec ! eglglessink

Re: Gstreamer 1.0 for raspbian

Posted: Tue May 28, 2013 5:52 am
by Defiant
You need to run a xserver to output to the x-sinks.
But egl is the better sink anyway.

Did you try the pipeline as it is shown here:
http://www.raspberrypi.org/phpBB3/viewt ... 71#p326571

Re: Gstreamer 1.0 for raspbian

Posted: Tue May 28, 2013 12:32 pm
by Kentzo
Defiant wrote: Did you try the pipeline as it is shown here:
http://www.raspberrypi.org/phpBB3/viewt ... 71#p326571
Thank you for the reply!

Yes, I tried it (except that I used 1080p version of this movie). I also tried to overclock pi to 1 GHz, but it didn't really help. I dedicated 256MB of memory to GPU.

Note that I'm using stable version of gst installed from http://vontaene.de/raspbian-updates

Re: Gstreamer 1.0 for raspbian

Posted: Tue May 28, 2013 5:34 pm
by Defiant
I never tried the 1080p Version, maybe you should try to ask the gst-omx developers - I don't think they are reading this forum.

Re: Gstreamer 1.0 for raspbian

Posted: Tue May 28, 2013 6:08 pm
by fbutler
Kentzo wrote:When playing 1080p (h264) fps is low. Is it known issue or I miss some parameters in my pipeline?
Could it be the throughput of your SD card that is causing a bottleneck?

Re: Gstreamer 1.0 for raspbian

Posted: Wed May 29, 2013 4:10 am
by Kentzo
Unlikely. I'm using SD card class 10.
And omxplayer is very smooth on the same video.

I've filed a bug report regarding that issue.

Re: Gstreamer 1.0 for raspbian

Posted: Thu May 30, 2013 3:10 pm
by Kentzo
I was able to fix the problem by compiling gstreamer from the sources.

I think maintainer of http://vontaene.de/raspbian-updates/ should update packages.

Re: Gstreamer 1.0 for raspbian

Posted: Thu May 30, 2013 3:13 pm
by Defiant
thanks, will do.