Quantcast

Gettting Gstreamer/DSP to work thru Yocto/3.2 kernel

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Gettting Gstreamer/DSP to work thru Yocto/3.2 kernel

zoso1234
Greetings I have been working on getting the gstreamer/dsp working for awhile to no avail

here is what I've done..
1)followed jumpnowtek for setup yocto & yocto build..built jumpnow-console-image
2)added sleepyrobot DSP/Yocto instructions into the jumpnow-console-image(added gstreamer-ti,  gst-plugins-good-meta & gst-plugins-base-meta to recipe )
-made changes to gstv4l2object.c in gst-plugins-good (patch below)
-made change to ispvideo.c : added the isp_video_enum_format and to the v4l2_ioctl_ops

-built image--everything appears to be there (lsmod below)

-run the media-ctl commands:
media-ctl -r -l '"mt9v032 3-005c":0->"OMAP3 ISP CCDC":0[1], "OMAP3 ISP CCDC":2->"OMAP3 ISP preview":0[1], "OMAP3 ISP preview":1->"OMAP3 ISP resizer":0[1], "OMAP3 ISP resizer":1->"OMAP3 ISP resizer output":0[1]'

then
media-ctl -f '"mt9v032 3-005c":0[SGRBG10 752x480], "OMAP3 ISP CCDC":2[SGRBG10 752x480], "OMAP3 ISP preview":1[UYVY 752x480], "OMAP3 ISP resizer":1[UYVY 752x480]'

now the commands I have tried to run lead to kernel faults..not sure if i'm not getting big picture or I missed someting but nothing works??

 gst-launch -v -e v4l2src device=/dev/video6 ! 'video/x-raw-yuv,format=(fourcc)UYVY' ! TIVidenc1 codecName=h264enc engineName=codecServer ! filesink location=test.avi

gst-launch-v -e v4l2src device=/dev/video6 always_copy=FALSE ! 'video/x-raw-yuv,width=752,height=480,format=(fourcc)UYVY' ! TIVidenc1 codecName=h264enc engineName=codecServer ! filesink location=output.avi

yavta -p -f UYVY -s 752x480 -n 4 --capture=10 --skip 9 -F `media-ctl -e "OMAP3 ISP resizer output"`


all have led to kernel-panics and for the gst commands I get
kernelpanic garbage then....
Kernel panic - not syncing: Fatal exception in interrupt
-aspect-ratio=(fraction)1/1
Pipeline is live and does not need PREROLL ...
WARNING: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not get parameters on device '/dev/video6'
Additional debug info:
v4l2src_calls.c(235): gst_v4l2src_set_capture (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
system error: Invalid argument


I've gone through old posts to see if I'm missing something but have yet to see any thing I have not already tried..
any tips appreciated!!

thanks,

Steve



lsmod:
Module                  Size  Used by
sdmak                   4002  0
lpm_omap3530            6651  0
dsplinkk              128588  1 lpm_omap3530
cmemk                  21840  0
libertas_sdio          16208  0
libertas               99103  1 libertas_sdio
cfg80211              165642  1 libertas
mt9v032                 5990  1
omap3_isp             125372  0
v4l2_common             9139  2 mt9v032,omap3_isp
lib80211                5017  1 libertas
videodev               84633  3 mt9v032,omap3_isp,v4l2_common
firmware_class          6797  2 libertas_sdio,libertas
media                  12513  3 mt9v032,omap3_isp,videodev
ads7846                10347  0
rfcomm                 55142  0
hidp                   16412  0
bluetooth             210041  4 rfcomm,hidp
rfkill                 17069  2 cfg80211,bluetooth
ipv6                  240138  10


to gstv4l2object.c
/* Add UYVY format to the list of enumerations */
format = g_new0 (struct v4l2_fmtdesc, 1);
format->type = (enum v4l2_buf_type)-1;
format->index = n;
format->flags = 0;
format->pixelformat = V4L2_PIX_FMT_UYVY;
v4l2object->formats = g_slist_prepend (v4l2object->formats, format);
GST_INFO_OBJECT (v4l2object->element, "index:       %u", format->index);
GST_INFO_OBJECT (v4l2object->element, "type:        %d", format->type);
GST_INFO_OBJECT (v4l2object->element, "flags:       %08x", format->flags);
GST_INFO_OBJECT (v4l2object->element, "description: '%s'",
       format->description);
GST_INFO_OBJECT (v4l2object->element, "pixelformat: %" GST_FOURCC_FORMAT,
GST_FOURCC_ARGS (format->pixelformat));
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Gettting Gstreamer/DSP to work thru Yocto/3.2 kernel

ashishmach
Hello,

Were you able to work thru Gstreamer/DSp I have been also trying the same.... could you please guide me a bit
if you have taken some alternative way!!!!


Thanks in advance

Regards

Ashish
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Gettting Gstreamer/DSP to work thru Yocto/3.2 kernel

ashishmach
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Gettting Gstreamer/DSP to work thru Yocto/3.2 kernel

zoso1234
In reply to this post by ashishmach
I've sorta given up for now on getting it to work on 3.2/3.5. I get all the modules to load but getting the correct media-ctl/omap-isp pipeline to work is impossible. It works fine for SGRBG10 or whatever it is but for any other format it won't work. If I look at "media-ctl -p" I think some of the pads are incorrect because they expect very large image formats. When I do a media-ctl -v "command" to switch my isp-resizer or isp-preview for any other format like UYVY like this "OMAP3 ISP preview":1[UYVY 752x480], "OMAP3 ISP resizer":1[UYVY 752x480]' it expects images in the range of 1022x1022 when i request a diff. size. I've tried Y12, YUYV,etc

I was frustrated with it so I reverted back to 2.6.34. That I can get to work and doesn't require many silly tricks. The driver is near 100% when requested 640x480 at around 25 FPS. But I just changed the size of image to a smaller and it limits the CPU.  I would like to know if the new drivers and kernel have made it possible to stream at lower CPU but I'll have to wait for one of the guru's to post on how to do it.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Gettting Gstreamer/DSP to work thru Yocto/3.2 kernel

ashishmach
Thanks a lot for your reply ....... I think I might do the same!!!! I think you just saved me a lot of hassle!!!


On Thu, Apr 11, 2013 at 9:03 PM, zoso1234 [via Gumstix] <[hidden email]> wrote:
I've sorta given up for now on getting it to work on 3.2/3.5. I get all the modules to load but getting the correct media-ctl/omap-isp pipeline to work is impossible. It works fine for SGRBG10 or whatever it is but for any other format it won't work. If I look at "media-ctl -p" I think some of the pads are incorrect because they expect very large image formats. When I do a media-ctl -v "command" to switch my isp-resizer or isp-preview for any other format like UYVY like this "OMAP3 ISP preview":1[UYVY 752x480], "OMAP3 ISP resizer":1[UYVY 752x480]' it expects images in the range of 1022x1022 when i request a diff. size. I've tried Y12, YUYV,etc

I was frustrated with it so I reverted back to 2.6.34. That I can get to work and doesn't require many silly tricks. The driver is near 100% when requested 640x480 at around 25 FPS. But I just changed the size of image to a smaller and it limits the CPU.  I would like to know if the new drivers and kernel have made it possible to stream at lower CPU but I'll have to wait for one of the guru's to post on how to do it.


If you reply to this email, your message will be added to the discussion below:
http://gumstix.8.x6.nabble.com/Gettting-Gstreamer-DSP-to-work-thru-Yocto-3-2-kernel-tp4967097p4967136.html
To unsubscribe from Gettting Gstreamer/DSP to work thru Yocto/3.2 kernel, click here.
NAML

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Gettting Gstreamer/DSP to work thru Yocto/3.2 kernel

ashishmach
In reply to this post by zoso1234
I was wondering if you had tried this !!! http://www.sleepyrobot.com/?p=210


On Fri, Apr 12, 2013 at 9:50 AM, Ashish Budhiraja <[hidden email]> wrote:
Thanks a lot for your reply ....... I think I might do the same!!!! I think you just saved me a lot of hassle!!!


On Thu, Apr 11, 2013 at 9:03 PM, zoso1234 [via Gumstix] <[hidden email]> wrote:
I've sorta given up for now on getting it to work on 3.2/3.5. I get all the modules to load but getting the correct media-ctl/omap-isp pipeline to work is impossible. It works fine for SGRBG10 or whatever it is but for any other format it won't work. If I look at "media-ctl -p" I think some of the pads are incorrect because they expect very large image formats. When I do a media-ctl -v "command" to switch my isp-resizer or isp-preview for any other format like UYVY like this "OMAP3 ISP preview":1[UYVY 752x480], "OMAP3 ISP resizer":1[UYVY 752x480]' it expects images in the range of 1022x1022 when i request a diff. size. I've tried Y12, YUYV,etc

I was frustrated with it so I reverted back to 2.6.34. That I can get to work and doesn't require many silly tricks. The driver is near 100% when requested 640x480 at around 25 FPS. But I just changed the size of image to a smaller and it limits the CPU.  I would like to know if the new drivers and kernel have made it possible to stream at lower CPU but I'll have to wait for one of the guru's to post on how to do it.


If you reply to this email, your message will be added to the discussion below:
http://gumstix.8.x6.nabble.com/Gettting-Gstreamer-DSP-to-work-thru-Yocto-3-2-kernel-tp4967097p4967136.html
To unsubscribe from Gettting Gstreamer/DSP to work thru Yocto/3.2 kernel, click here.
NAML


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Gettting Gstreamer/DSP to work thru Yocto/3.2 kernel

zoso1234
Yes I did look at that..The problem for me was not getting things to compile or load correctly it was getting it to do the same things I could do with the 2.6.34 image that was the problem. I can get all the dsp modules to load fine and omap-isp, mt9v032(caspa). But my issues revolve around the image pipeline through media-ctl/omap3-isp. I couldn't get/figure out how to get openCV to recognize any /dev/video#..but I think my issues were farther upstream. As I said I could get YAVTA to output (SGRBG10?) but no other output was possible..and for gettting gst-launch..yes I could get it the sample he had but I needed v4l2src instead of videosrc which I couldn't get to work due again to what I think was the issue was the image pipeline. Hopefully these issues get addressed but until then I'm probably going to stay with 2.6.34.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Gettting Gstreamer/DSP to work thru Yocto/3.2 kernel

Eric97
Hi,

May I know how should I revert my current kernel version from 3.5.7 to 2.6.34? Some documents found on the website are based on the previous open-embedded framework. I am also facing the same problem. Thank you!

Regards,
Eric
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Gettting Gstreamer/DSP to work thru Yocto/3.2 kernel

bhamadicharef
For what it is worth, it works for kernel 3.0. Still we need to understand
and fix the greenish streamed image but it works and it is reproducable.

For all the 3.2/3.5 troubles, I think  there is a need for more systematic
testing, having first things to work and stable without gstreamer, then
gstreamer with the test video patern, then try with webcam gadget usb,
then to out caspa issue.

Are those kernel panics from gtreamer in the first place ? Make use
of gst debug level and capture the error source, it would be very
useful.

The recent post about 720p by Chris should also be interesting to
reproduce and see if it works on kernels 3.0 first, then 3.2/3.5

We will get there eventually, as for the guru to make it work, it is
hard and time consuming but true experience building ...

Forum is useful but would there be any faster channels like a
Chat room, I am logged on skype most of the time, it helps to
get instant hint, etc.
Loading...