Page 4 of 7

Re: Gstreamer 1.0 for raspbian

Posted: Wed Jun 26, 2013 1:38 am
by Defiant
aah finally.

Can you include the gstreamer-openmax package in jessie?

Re: Gstreamer 1.0 for raspbian

Posted: Wed Jun 26, 2013 4:50 am
by cmarty
Defiant wrote:hmm I still can not reproduce it.

Please make a bugreport.
The question is if it is problem with gstreamer (gst-plugins-bad, gts-omx) or raspi firmware. Whom to I need to report this ?

Re: Gstreamer 1.0 for raspbian

Posted: Wed Jun 26, 2013 6:44 am
by Defiant
Maybe you could try http://www.raspberrypi.org/phpBB3/viewtopic.php?t=15463 and check you have the same problem with it.

In in doubt I would report to the higher level first, which is gst-omx.

Re: Gstreamer 1.0 for raspbian

Posted: Wed Jun 26, 2013 9:49 am
by MatthiasBock
gst-omx for gstreamer-1.0 is not included in the Raspbian repository.

I compiled gst-omx-1.0.0 with gstreamer-1.0.7, but it won't run:

Code: Select all

$ gst-launch-1.0 udpsrc port=9078 ! 'application/x-rtp,payload=96,encoding-name=H264' ! rtph264depay ! h264parse ! omxh264dec ! eglglessink
ERROR: from element /GstPipeline:pipeline0/GstOMXH264Dec-omxh264dec:omxh264dec-omxh264dec0: Internal data stream error.
The trunk version of gst-omx from the freedesktop.org git repository master branch won't even compile:

Code: Select all

Making all in omx
make[2]: Entering directory `/usr/src/gstreamer-1.0.7/gst-omx/omx'
  CC     libgstomx_la-gstomx.lo
  CC     libgstomx_la-gstomxvideodec.lo
In file included from gstomxvideodec.c:42:0:
/usr/local/include/gstreamer-1.0/gst/egl/egl.h:43:1: error: unknown type name 'GstVideoGLTextureType'
/usr/local/include/gstreamer-1.0/gst/egl/egl.h:44:1: error: unknown type name 'GstVideoGLTextureOrientation'
/usr/local/include/gstreamer-1.0/gst/egl/egl.h:46:5: error: unknown type name 'GstVideoGLTextureOrientation'
/usr/local/include/gstreamer-1.0/gst/egl/egl.h:51:30: error: unknown type name 'GstVideoGLTextureType'
/usr/local/include/gstreamer-1.0/gst/egl/egl.h:54:49: error: unknown type name 'GstVideoGLTextureType'
/usr/local/include/gstreamer-1.0/gst/egl/egl.h:59:35: error: unknown type name 'GstContext'
/usr/local/include/gstreamer-1.0/gst/egl/egl.h:61:39: error: unknown type name 'GstContext'
Any suggestions/ideas what went wrong ?

see also https://github.com/matthiasbock/gstreamer/issues/8

Re: Gstreamer 1.0 for raspbian

Posted: Wed Jun 26, 2013 10:34 am
by Defiant
To compile the latest gst-omx from git you also need a newer gstreamer 1.0 from git.

Re: Gstreamer 1.0 for raspbian

Posted: Wed Jun 26, 2013 1:02 pm
by MatthiasBock
I tried that too, but gst-omx doesn't seem to work with the git version either.
So neither the current git version nor the gstreamer-1.0 currently available in Raspbian Jessie (1.0.7) support OpenMAX.

Defiant, do you still have a version 1.0.6 package in your repository ?
Your package worked, also with gst-omx.

Re: Gstreamer 1.0 for raspbian

Posted: Wed Jun 26, 2013 1:12 pm
by Defiant
gst-omx 1.0 should compile.

gst packages 1.0.5, 1.0.6 and 1.0.7 are in http://vontaene.de/raspbian-updates/dists/main/

Re: Gstreamer 1.0 for raspbian

Posted: Tue Jul 16, 2013 7:34 pm
by Defiant
Updated to GStreamer 1.0.8

Re: Gstreamer 1.0 for raspbian

Posted: Fri Jul 19, 2013 9:39 am
by Giuliano69
@defiant
Could you please tell me if with gstreamer 1.0, firefox/chrome become capable of displaying a h264/mpg2 video streaming with hw decoding ?


I don’t understand if the installation of gstreamer 1.0 also provide plugins for browsers ..

thanks for your kind reply.

Re: Gstreamer 1.0 for raspbian

Posted: Fri Jul 19, 2013 11:07 am
by 10robinho
Giuliano69 wrote:@defiant
Could you please tell me if with gstreamer 1.0, firefox/chrome become capable of displaying a h264/mpg2 video streaming with hw decoding ?

I don’t understand if the installation of gstreamer 1.0 also provide plugins for browsers ..

thanks for your kind reply.
I think that you won't be able to achieve this, as those plugins work well only in EGL environment.

Re: Gstreamer 1.0 for raspbian

Posted: Fri Jul 19, 2013 12:37 pm
by Giuliano69
I do not know at which level interact the gstreamer with the window system, but from from http://www.khronos.org/egl/ seems that EGL is laying OVER the window system, that is it should be possible to instance a view-port, and draw the content with a call to gstreamer. The real matter is if such a plug-in for the browsers exist...

a different approach:
considering that the browser could have a content referred as rtsp://, should be possible to set as the application to be called for such protocol/content a gstreamer script/program, that will be embedded in the browser content window ?

Re: Gstreamer 1.0 for raspbian

Posted: Thu Jul 25, 2013 6:34 pm
by jvcleave
Defiant wrote:Updated to GStreamer 1.0.8
Any chance of providing gstreamer1.0-libav?

Re: Gstreamer 1.0 for raspbian

Posted: Sat Jul 27, 2013 2:12 pm
by Defiant
I don't have any plans to add libav. Can't you get it from raspbian jessie?

Re: Gstreamer 1.0 for raspbian

Posted: Sat Jul 27, 2013 8:27 pm
by jvcleave
Defiant wrote:I don't have any plans to add libav. Can't you get it from raspbian jessie?
Yeah - no problem - turns out I don't believe I need it anyway

Re: Gstreamer 1.0 for raspbian

Posted: Fri Aug 02, 2013 10:30 am
by Defiant
gstreamer1.0-omx updated to commit 09f5eb9beba9657e1b6ca15b09d848488e58350d

Re: Gstreamer 1.0 for raspbian

Posted: Wed Aug 14, 2013 12:35 pm
by sofakng
Any plans to update to gstreamer 1.0.9? (bug fix release)

Re: Gstreamer 1.0 for raspbian

Posted: Wed Aug 14, 2013 3:50 pm
by Defiant

Re: Gstreamer 1.0 for raspbian

Posted: Sun Aug 18, 2013 6:38 am
by Defiant
Updated to GStreamer 1.0.9

Re: Gstreamer 1.0 for raspbian

Posted: Mon Sep 30, 2013 3:25 pm
by giorgino
I need to ask you some information. I would like to compile into raspberry following libraries

libgstreamer1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly

Could someone tell me the exact procedure to install them? Which version is now available for raspberry 1.0.9?

Thank you but following all the post I have not recovered exact information

G.

Re: Gstreamer 1.0 for raspbian

Posted: Mon Sep 30, 2013 6:15 pm
by Defiant
Raspbian is based on Debian. Building and Installing Debian packages is well documented.
See http://www.debian.org/doc/manuals/maint-guide/

Yes, last Version I have compiled is 1.0.9.

If you just want to install them, see http://wiki.matthiasbock.net/index.php/ ... spberry_Pi

Re: Gstreamer 1.0 for raspbian

Posted: Sun Oct 06, 2013 5:38 pm
by Defiant
Updated to GStreamer 1.0.10

Re: Gstreamer 1.0 for raspbian

Posted: Sun Nov 17, 2013 2:34 am
by jgon
Hi!

I have problems with gs-omx and the last version available in vontaene.de repo :(

Code: Select all

ii  gstreamer1.0-omx                      1.0.0+20130802git09f5eb9-1
When i try to record in a file the streaming from an ip cam:

Code: Select all

gst-launch-1.0 --gst-debug=omx:5 souphttpsrc location="http://192.168.2.7/videostream.asf?user=admin&password=1234" ! decodebin ! videoconvert ! omxh264enc ! "video/x-h264,profile=high" ! h264parse ! matroskamux ! filesink location=output.avi
This is the result:

Code: Select all

0:00:00.434299106 25211  0x17c7f60 DEBUG                    omx gstomx.c:2758:plugin_init: Registering element 'omxmpeg2videodec'
0:00:00.446642797 25211  0x17c7f60 DEBUG                    omx gstomx.c:2758:plugin_init: Registering element 'omxmpeg4videodec'
0:00:00.448056761 25211  0x17c7f60 DEBUG                    omx gstomx.c:2758:plugin_init: Registering element 'omxh263dec'
0:00:00.449333729 25211  0x17c7f60 DEBUG                    omx gstomx.c:2758:plugin_init: Registering element 'omxh264dec'
0:00:00.450688695 25211  0x17c7f60 DEBUG                    omx gstomx.c:2758:plugin_init: Registering element 'omxtheoradec'
0:00:00.451978663 25211  0x17c7f60 DEBUG                    omx gstomx.c:2758:plugin_init: Registering element 'omxvp8dec'
0:00:00.456556548 25211  0x17c7f60 DEBUG                    omx gstomx.c:2758:plugin_init: Registering element 'omxmjpegdec'
0:00:00.457977512 25211  0x17c7f60 DEBUG                    omx gstomx.c:2758:plugin_init: Registering element 'omxvc1dec'
0:00:00.459243480 25211  0x17c7f60 DEBUG                    omx gstomx.c:2758:plugin_init: Registering element 'omxh264enc'
0:00:00.461216431 25211  0x17c7f60 DEBUG                    omx gstomx.c:2635:_class_init: No sink template caps specified for element 'omxh264enc', using default 'video/x-raw, width = (int) [ 1, max ], height = (int) [ 1, max ], framerate = (fraction) [ 0, max ]'
0:00:00.466982286 25211  0x17c7f60 DEBUG                    omx gstomx.c:2659:_class_init: No src template caps specified for element 'omxh264enc', using default 'video/x-h264, width=(int) [ 16, 4096 ], height=(int) [ 16, 4096 ]'
0:00:00.468428250 25211  0x17c7f60 DEBUG                    omx gstomx.c:2684:_class_init: Using hack: no-component-role
Setting pipeline to PAUSED ...
0:00:00.559881956 25211  0x17c7f60 DEBUG                    omx gstomx.c:129:gst_omx_core_acquire: Successfully loaded core '/opt/vc/lib/libopenmaxil.so'
0:00:00.561691911 25211  0x17c7f60 ERROR                    omx gstomx.c:139:gst_omx_core_acquire: Failed to initialize core '/opt/vc/lib/libopenmaxil.so': 0x80001009
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstOMXH264Enc-omxh264enc:omxh264enc-omxh264enc0: Could not initialize supporting library.
Additional debug info:
gstvideoencoder.c(1418): gst_video_encoder_change_state (): /GstPipeline:pipeline0/GstOMXH264Enc-omxh264enc:omxh264enc-omxh264enc0:
Failed to open encoder
Setting pipeline to NULL ...
Freeing pipeline ...
Thanks!

Re: Gstreamer 1.0 for raspbian

Posted: Sun Nov 17, 2013 7:22 pm
by Defiant
Can you try the pipeline with videotestsrc?
e.g.

Code: Select all

gst-launch-1.0 videotestsrc ! omxh264enc ! "video/x-h264,profile=high" ! h264parse ! matroskamux ! filesink location=output.avi

Re: Gstreamer 1.0 for raspbian

Posted: Sun Nov 17, 2013 8:01 pm
by jgon
Thanks Defiant.

I have updated all the system (apt-get upgrade) and the raspberry firmware so now i have a most recently version of /opt/vc/lib/libopenmaxil.so and I can start get-launch without errors but I can't get any output :? I think that the problem is now in the type of streaming that the ipcam uses.

With this example with videotestsrc I get a correct output so I think gstreamer now works.

With videoteststrc this is the output:

Code: Select all

# gst-launch-1.0 videotestsrc ! omxh264enc ! "video/x-h264,profile=high" ! h264parse ! matroskamux ! filesink location=output.avi
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
^CCaught interrupt -- handling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 241316733750 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
With my network cam source:

Code: Select all

# gst-launch-1.0 souphttpsrc location="http://192.168.2.5/videostream.asf?user=admin&password=1234" ! decodebin ! videoconvert ! omxh264enc ! "video/x-h264,profile=high" ! h264parse ! matroskamux ! filesink location=output.avi
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
And output.avi with size 0 :(

Thanks!

Re: Gstreamer 1.0 for raspbian

Posted: Thu Dec 12, 2013 8:12 am
by Anita
Hi,

After executing the below commands,

[email protected] ~ $ gst-launch-1.0 videotestsrc ! omxh264enc ! "video/x-h264,profile=high" ! h264parse ! matroskamux ! filesink location=output.avi

works fine with videotestsrc. when i try with different video clips, outpit.avi size is zero.

[email protected] ~ $ gst-launch-1.0 -v filesrc location=Raspberry-Pi-logo.jpg ! decodebin ! imagefreeze ! autovideosink

i could only see little part of leaf clear from Raspberry-Pi-logo.jpg image and remaining is not clear.
I am checking with GStreamer1.0 pre-built binaries.

help me out...