User avatar
Defiant
Posts: 177
Joined: Tue Oct 30, 2012 6:17 pm
Location: Hamburg, Germany

Re: Gstreamer 1.0 for raspbian

Sun Jun 02, 2013 9:12 am

GStreamer 1.0 Packages have been updated to 1.0.7, but that will not fix above problem.
This will have to wait until the official 1.0.8 release.
So does a new version of gst-omx which depends on new gst-plugins-bad.

User avatar
fbutler
Posts: 302
Joined: Thu Mar 15, 2012 4:09 pm
Location: Surrey, England

Re: Gstreamer 1.0 for raspbian

Wed Jun 05, 2013 6:22 pm

Defiant wrote:GStreamer 1.0 Packages have been updated to 1.0.7, but that will not fix above problem.
This will have to wait until the official 1.0.8 release.
So does a new version of gst-omx which depends on new gst-plugins-bad.
For info a new development release, GStreamer 1.1.1, is now available.The release announcement is here:

http://lists.freedesktop.org/archives/g ... 41320.html

User avatar
Defiant
Posts: 177
Joined: Tue Oct 30, 2012 6:17 pm
Location: Hamburg, Germany

Re: Gstreamer 1.0 for raspbian

Wed Jun 05, 2013 6:28 pm

oh dear...well http://cgit.freedesktop.org/gstreamer/gst-omx/ doesn't have a 1.1 branch yet.

User avatar
fbutler
Posts: 302
Joined: Thu Mar 15, 2012 4:09 pm
Location: Surrey, England

Re: Gstreamer 1.0 for raspbian

Wed Jun 05, 2013 6:34 pm

Defiant wrote:oh dear...well http://cgit.freedesktop.org/gstreamer/gst-omx/ doesn't have a 1.1 branch yet.
I guess the question is will gst-omx 1.0 work with the 1.1.1 GStreamer version?

User avatar
Defiant
Posts: 177
Joined: Tue Oct 30, 2012 6:17 pm
Location: Hamburg, Germany

Re: Gstreamer 1.0 for raspbian

Wed Jun 05, 2013 6:54 pm

And if the repo should switch to it.
I guess it will stay on 1.0

MatthiasBock
Posts: 6
Joined: Tue Jun 04, 2013 10:59 am
Location: Berlin, Germany

Re: Gstreamer 1.0 for raspbian

Wed Jun 12, 2013 10:21 am

Thank you, Defiant, for pre-compiling gstreamer-1.0 with omxh264 and sharing it with for everybody. After spending a whole week to successfully compile a recent version of gstreamer-0.10 and it's plugins, I was really happy to find the gstreamer-1.0 pre-compiled and Debian-ready packaged.

I have two questions:

* I understand, that the Raspberry Pi supports EGL/GLES as videosink, but shouldn't dfbvideosink be much faster for video playback? If I'm not mistaken, I already successfully used dfbvideosink on the Raspberry Pi with gstreamer-0.10. Apparently you didn't even compile dfbvideosink in your gstreamer-1.0 package though. Is there a special reason to this?

* Do you know uvch264_src? It's part of the bad gstreamer plugins and allows to do nice things like setting the output bitrate of H.264 encoding cameras. Would it by any chance be possible for you to compile and pack that plugin in your repository? I'm not entirely sure, though, if it's available for gstreamer-1.0 or only for gstreamer-0.10...

Thank you! Matthias

User avatar
Defiant
Posts: 177
Joined: Tue Oct 30, 2012 6:17 pm
Location: Hamburg, Germany

Re: Gstreamer 1.0 for raspbian

Wed Jun 12, 2013 6:13 pm

1) I don't know if dfbvideosink is faster, but eglglessink is already accelerated.
dfbvideosink hasn't been compiled since it is not enabled in the debian package.

2) uvch264 was not yet ported to the GStreamer 1.0 Version I compiled.

cmarty
Posts: 38
Joined: Thu Jul 19, 2012 7:23 am
Location: Czech Republic

Re: Gstreamer 1.0 for raspbian

Mon Jun 17, 2013 8:44 am

Hello.
I'm fighting to compile the latest gst-omx (from git) testegl example on raspberry.
I use gstreamer 1.0.7 precompiled from vontaene.de/raspbian-updates/ repository
The gst-omx is compiled sucessfully but testegl is not compiled at all.

I have also question if it is possible to compile testegl.c example in my project. I want to play with this example.
The source code testegl.c refers to
testegl.c:79:25: fatal error: gst/egl/egl.h: No such file or directory
and this can not be found in include gstreamer directories.
Am I missing some package or do I have to compile all gstreamer+plugins from source code to be able to work with testegl.c example ?
Thanks

MatthiasBock
Posts: 6
Joined: Tue Jun 04, 2013 10:59 am
Location: Berlin, Germany

Re: Gstreamer 1.0 for raspbian

Mon Jun 17, 2013 12:35 pm

In case of missing files during compilation the Debian package content search usually comes in handy:
http://www.debian.org/distrib/packages

Try

Code: Select all

  aptitude install libegl1-mesa-dev libgles2-mesa-dev
as it is done here:
https://github.com/matthiasbock/gstreamer/issues/6

cmarty
Posts: 38
Joined: Thu Jul 19, 2012 7:23 am
Location: Czech Republic

Re: Gstreamer 1.0 for raspbian

Tue Jun 18, 2013 9:08 am

MatthiasBock wrote:In case of missing files during compilation the Debian package content search usually comes in handy:
http://www.debian.org/distrib/packages

Try

Code: Select all

  aptitude install libegl1-mesa-dev libgles2-mesa-dev
as it is done here:
https://github.com/matthiasbock/gstreamer/issues/6
That's true that those packages comes with egl.h but this differs from gst/egl/egl.h
The one what I need is http://cgit.freedesktop.org/gstreamer/g ... /egl/egl.h
But this one isn't part of libgstreamer-plugins-base1.0-dev_1.0.7-1_armhf.deb. I'm not even sure if it should be included in this package or somewhere else.
Should I wait for releasing new version of packages or try to recompile whole gstreamer project on my own.
I'm new to gstreamer project and I love it. But I'm getting very slowly beneath the surface.

User avatar
Defiant
Posts: 177
Joined: Tue Oct 30, 2012 6:17 pm
Location: Hamburg, Germany

Re: Gstreamer 1.0 for raspbian

Tue Jun 18, 2013 9:17 am

egl.h didn't exist yet in the version I compiled.
I'm currently waiting for a 1.0.8 release for a recompile.

cmarty
Posts: 38
Joined: Thu Jul 19, 2012 7:23 am
Location: Czech Republic

Re: Gstreamer 1.0 for raspbian

Tue Jun 18, 2013 10:38 am

Defiant wrote:egl.h didn't exist yet in the version I compiled.
I'm currently waiting for a 1.0.8 release for a recompile.
That is now clear to me. Thanks Defiant for the info.

cmarty
Posts: 38
Joined: Thu Jul 19, 2012 7:23 am
Location: Czech Republic

Re: Gstreamer 1.0 for raspbian

Thu Jun 20, 2013 6:02 am

I want to ask about gst-omx if it is able to decode jpeg pictures (stills). I know that there is omxmjpegdec but I can not find out if it can do the image jpeg decoding.
I want to build application for browsing the images and video files and it would be perfect if it all can be done with gstreamer hardware accelerated with openmax.
Next question regards what is the appropriate gstreamer devel forum where I can put my questions about gst-omx.
Thanks for any help.

User avatar
Defiant
Posts: 177
Joined: Tue Oct 30, 2012 6:17 pm
Location: Hamburg, Germany

Re: Gstreamer 1.0 for raspbian

Thu Jun 20, 2013 6:38 am

Just try the element in a pipeline:

Code: Select all

gst-launch-1.0 -v filesrc location=testimage.jpg ! decodebin ! imagefreeze ! autovideosink
decodebin should automatically call the omx element.
The option -v will print the element decodebin used.

For help try the mailing list: http://lists.freedesktop.org/mailman/li ... er-openmax

cmarty
Posts: 38
Joined: Thu Jul 19, 2012 7:23 am
Location: Czech Republic

Re: Gstreamer 1.0 for raspbian

Thu Jun 20, 2013 8:03 am

Defiant wrote:Just try the element in a pipeline:

Code: Select all

gst-launch-1.0 -v filesrc location=testimage.jpg ! decodebin ! imagefreeze ! autovideosink
decodebin should automatically call the omx element.
The option -v will print the element decodebin used.

For help try the mailing list: http://lists.freedesktop.org/mailman/li ... er-openmax
Thanks for your quick reply. The -v option is very usefull.
I've tried command above with several jpegs and I can not display any of them neither with decodebin( omxmjpeg element ) nor jpegdec element.
All video files (h264,mjpeg,mpeg4) are working fine.
I'm using the prebuild gstreamer from vontaene.de/raspbian-updates/
Is the command gst-launch-1.0 -v filesrc location=testimage.jpg ! decodebin ! imagefreeze ! autovideosink working on your raspi ?

User avatar
Defiant
Posts: 177
Joined: Tue Oct 30, 2012 6:17 pm
Location: Hamburg, Germany

Re: Gstreamer 1.0 for raspbian

Thu Jun 20, 2013 8:20 am

Just tested, yes works. Did you include the imagefreeze element?

I tested with this jpeg:
http://wiki.openelec.tv/images/b/be/Ras ... i-logo.jpg

cmarty
Posts: 38
Joined: Thu Jul 19, 2012 7:23 am
Location: Czech Republic

Re: Gstreamer 1.0 for raspbian

Thu Jun 20, 2013 11:36 am

Defiant wrote:Just tested, yes works. Did you include the imagefreeze element?

I tested with this jpeg:
http://wiki.openelec.tv/images/b/be/Ras ... i-logo.jpg
Yes. I use the same command as you.
Now I've tested it with the same jpeg as you on raspi with clean raspbian (install, update, upgrade, reboot). Now your command shows some image output (it is progress) on monitor but image is not correct.
This is the output with 128MB reserved for GPU:
https://www.dropbox.com/s/wpk82dlmlwsjl ... _128mb.jpg
and with 256MB reserved for GPU:
https://www.dropbox.com/s/yaugp8fe435ng ... _256mb.jpg
The similar distortion is also on other jpegs.
I use HDMI->DVI convertor to monitor but I think that it is not the problem because videos are working ok.

vcgencmd version:
Jun 17 2013 20:45:38
Copyright (c) 2012 Broadcom
version d380dde43fe729f043befb5cf775f99e54586cde (clean) (release)
tvservice -s:
state 0x120016 [DVI DMT (35) RGB full 5:4], 1280x1024 @ 60Hz, progressive

User avatar
Defiant
Posts: 177
Joined: Tue Oct 30, 2012 6:17 pm
Location: Hamburg, Germany

Re: Gstreamer 1.0 for raspbian

Thu Jun 20, 2013 12:40 pm

strange, don't have that.

cmarty
Posts: 38
Joined: Thu Jul 19, 2012 7:23 am
Location: Czech Republic

Re: Gstreamer 1.0 for raspbian

Fri Jun 21, 2013 11:45 am

Defiant wrote:strange, don't have that.
I've tried to recompile just only plugin gst-omx branch 1.0 from git with the same distorted output result.
For more info this is the -v output. I would be glad if you can compare it with yours.

Code: Select all

[email protected] ~ $ gst-launch-1.0 -v filesrc location= /opt/tpictures/jpg/Raspberry-Pi-logo.jpg ! decodebin ! imagefreeze ! autovideosink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src: caps = image/jpeg, width=(int)650, height=(int)579, sof-marker=(int)0
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstOMXMJPEGDec-omxmjpegdec:omxmjpegdec-omxmjpegdec0.GstPad:sink: caps = image/jpeg, width=(int)650, height=(int)579, sof-marker=(int)0
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstOMXMJPEGDec-omxmjpegdec:omxmjpegdec-omxmjpegdec0.GstPad:src: caps = video/x-raw, format=(string)I420, width=(int)650, height=(int)579, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, framerate=(fraction)0/1
/GstPipeline:pipeline0/GstDecodeBin:decodebin0.GstDecodePad:src_0: caps = video/x-raw, format=(string)I420, width=(int)650, height=(int)579, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, framerate=(fraction)0/1
/GstPipeline:pipeline0/GstImageFreeze:imagefreeze0.GstPad:src: caps = video/x-raw, format=(string)I420, width=(int)650, height=(int)579, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0.GstGhostPad:sink.GstProxyPad:proxypad1: caps = video/x-raw, format=(string)I420, width=(int)650, height=(int)579, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstEglGlesSink:autovideosink0-actual-sink-eglgles.GstPad:sink: caps = video/x-raw, format=(string)I420, width=(int)650, height=(int)579, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0.GstGhostPad:sink: caps = video/x-raw, format=(string)I420, width=(int)650, height=(int)579, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstImageFreeze:imagefreeze0.GstPad:sink: caps = video/x-raw, format=(string)I420, width=(int)650, height=(int)579, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, framerate=(fraction)0/1
/GstPipeline:pipeline0/GstDecodeBin:decodebin0.GstDecodePad:src_0.GstProxyPad:proxypad3: caps = video/x-raw, format=(string)I420, width=(int)650, height=(int)579, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, framerate=(fraction)0/1
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstOMXMJPEGDec-omxmjpegdec:omxmjpegdec-omxmjpegdec0.GstPad:src: caps = video/x-raw, format=(string)I420, width=(int)650, height=(int)579, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, framerate=(fraction)0/1
/GstPipeline:pipeline0/GstDecodeBin:decodebin0.GstDecodePad:src_0: caps = video/x-raw, format=(string)I420, width=(int)650, height=(int)579, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, framerate=(fraction)0/1
/GstPipeline:pipeline0/GstImageFreeze:imagefreeze0.GstPad:src: caps = video/x-raw, format=(string)I420, width=(int)650, height=(int)579, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0.GstGhostPad:sink.GstProxyPad:proxypad1: caps = video/x-raw, format=(string)I420, width=(int)650, height=(int)579, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstEglGlesSink:autovideosink0-actual-sink-eglgles.GstPad:sink: caps = video/x-raw, format=(string)I420, width=(int)650, height=(int)579, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0.GstGhostPad:sink: caps = video/x-raw, format=(string)I420, width=(int)650, height=(int)579, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, framerate=(fraction)25/1
/GstPipeline:pipeline0/GstImageFreeze:imagefreeze0.GstPad:sink: caps = video/x-raw, format=(string)I420, width=(int)650, height=(int)579, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, framerate=(fraction)0/1
/GstPipeline:pipeline0/GstDecodeBin:decodebin0.GstDecodePad:src_0.GstProxyPad:proxypad3: caps = video/x-raw, format=(string)I420, width=(int)650, height=(int)579, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, framerate=(fraction)0/1
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

User avatar
Defiant
Posts: 177
Joined: Tue Oct 30, 2012 6:17 pm
Location: Hamburg, Germany

Re: Gstreamer 1.0 for raspbian

Fri Jun 21, 2013 1:44 pm

Fun..I have the same problem now.

Well I updated the firmware yesterday, so I downgraded to a 2 week old firmware:

Code: Select all

rpi-update 7a3bccf6e48399eb884e91afd16b175972ff0346
and got a good picture again:
I guess your jpeg distortion is a firmware bug.

I'll try to find the bad commit and open a bugreport.

User avatar
Defiant
Posts: 177
Joined: Tue Oct 30, 2012 6:17 pm
Location: Hamburg, Germany

Re: Gstreamer 1.0 for raspbian

Fri Jun 21, 2013 2:01 pm

strange..now it works with the latest version..what is going on here?

cmarty
Posts: 38
Joined: Thu Jul 19, 2012 7:23 am
Location: Czech Republic

Re: Gstreamer 1.0 for raspbian

Mon Jun 24, 2013 4:05 am

Defiant wrote:strange..now it works with the latest version..what is going on here?
I've tried to go back with firmware to the same version as you did but output is still distorted.
No matter if I use old or new firmware.

User avatar
Defiant
Posts: 177
Joined: Tue Oct 30, 2012 6:17 pm
Location: Hamburg, Germany

Re: Gstreamer 1.0 for raspbian

Tue Jun 25, 2013 7:04 pm

hmm I still can not reproduce it.

Please make a bugreport.

MatthiasBock
Posts: 6
Joined: Tue Jun 04, 2013 10:59 am
Location: Berlin, Germany

Re: Gstreamer 1.0 for raspbian

Tue Jun 25, 2013 9:50 pm

Do I see this correctly, that gstreamer-1.0 is now part of the official Raspbian repository ?
Also in both Defiant's and the official repository the gstreamer version is not 1.0.6 but 1.0.7.
Can anybody confirm this ?

plugwash
Forum Moderator
Forum Moderator
Posts: 3254
Joined: Wed Dec 28, 2011 11:45 pm

Re: Gstreamer 1.0 for raspbian

Wed Jun 26, 2013 12:57 am

gstreamer 1.0 is in raspbian jessie. It is not and will not be in raspbian wheezy.

Return to “Raspbian”

Who is online

Users browsing this forum: cedrickzepp and 10 guests