Quantcast

Gstreamer could not negotiate format

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

Gstreamer could not negotiate format

daveshah
 I am currently struggling to get hardware accelerated video encoding with the Caspa Camera and Overo TidalStorm. I have compiled an image with Yocto containing gstreamer-ti and everything else necessary, but cannot get gstreamer to work.

Here is the command I am running:
LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so gst-launch -v v4l2src device=/dev/video6 ! video/x-raw-yuv,format=\(fourcc\)UYVY,width=752,height=480 ! fakesink

Output:

Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not negotiate format
Additional debug info:
gstbasesrc.c(2830): gst_base_src_start (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Check your filtered caps, if any
Setting pipeline to NULL ...
Freeing pipeline ...

These are my media-ctl settings:
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]'
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]'

I am able to take pictures with mplayer using the following settings:
LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so mplayer tv:// -tv driver=v4l2:device=/dev/video6 -vo png -fps 1

(Nabble users, apologies for the re-post but the first was not accepted by the mailing list...)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Gstreamer could not negotiate format

William Bryan
A couple things to try...

What is the output of :

v4l2-ctl -d 6 --list-formats

or even

v4l2-ctl --all

Additionally, try doing:

GST_DEBUG=2 LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so gst-launch -v v4l2src device=/dev/video6 ! video/x-raw-yuv,format='(fourcc)'UYVY,width=752,height=480 ! fakesink

The values for GST_DEBUG can range from 1-4, I believe. I usually use 2 or 3, depending on the issue.

Make sure your v4l2src cap filter is correct. I can generate that same error on my laptop by entering an incorrect framerate.

--Will


On Thu, Oct 10, 2013 at 2:18 AM, daveshah <[hidden email]> wrote:
 I am currently struggling to get hardware accelerated video encoding with
the Caspa Camera and Overo TidalStorm. I have compiled an image with Yocto
containing gstreamer-ti and everything else necessary, but cannot get
gstreamer to work.

Here is the command I am running:
LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so gst-launch -v v4l2src
device=/dev/video6 !
video/x-raw-yuv,format=\(fourcc\)UYVY,width=752,height=480 ! fakesink

Output:

Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not
negotiate format
Additional debug info:
gstbasesrc.c(2830): gst_base_src_start ():
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Check your filtered caps, if any
Setting pipeline to NULL ...
Freeing pipeline ...

These are my media-ctl settings:
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]'
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]'

I am able to take pictures with mplayer using the following settings:
LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so mplayer tv:// -tv
driver=v4l2:device=/dev/video6 -vo png -fps 1

(Nabble users, apologies for the re-post but the first was not accepted by
the mailing list...)




--
View this message in context: http://gumstix.8.x6.nabble.com/Gstreamer-could-not-negotiate-format-tp4968087.html
Sent from the Gumstix mailing list archive at Nabble.com.

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users



--
Will Bryan
Iowa State University | Computer Engineering
[hidden email] | 712.212.5027

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Gstreamer could not negotiate format

daveshah
Hi

Due to their long length, I have put the output of these commands on pastebin:
http://pastebin.com/w2q5sAms
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Gstreamer could not negotiate format

William Bryan
At a glance, it doesn't look to me like your camera supports UYVY. What happens if you get rid of the fourcc portion of your command?

--Will

> On Oct 10, 2013, at 10:59 AM, daveshah <[hidden email]> wrote:
>
> Hi
>
> Due to their long length, I have put the output of these commands on
> pastebin:
> http://pastebin.com/w2q5sAms
>
>
>
> --
> View this message in context: http://gumstix.8.x6.nabble.com/Gstreamer-could-not-negotiate-format-tp4968087p4968091.html
> Sent from the Gumstix mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
> _______________________________________________
> gumstix-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gumstix-users

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Gstreamer could not negotiate format

zafrullahsyed
In reply to this post by daveshah
Hello Devesh,

I am facing similar problem, as yours. Did you succeed? I have posted my problem here-> http://gumstix.8.x6.nabble.com/Caspa-camera-without-DSP-td4968435.html

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

Re: Gstreamer could not negotiate format

daveshah
Sorry, I've never been able to solve it and suspect some package is broken. My current plans are to use something other than gstreamer (perhaps ffserver), and scrap hardware acceleration even if it means having to use slideshow-type framerates.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Gstreamer could not negotiate format

zafrullahsyed
Ya, I can understand that.  I need to somehow use it and get that working. Good luck.
Loading...