streaming task paused, reason not-negotiated (-4)

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

streaming task paused, reason not-negotiated (-4)

pavan
Hi,

   I tried compiling and installing gstreamer 1.4.0 gst-plugins-base 1.4.0 gst-plugins-good 1.4.0 on my raspberry pi B and tried to start gstreamer with the following simple pipeline.

                   gst-launch-1.0 v4l2src ! autovideosink.

but im getting error as v4l2src0: internal dataflow error
streaming task paused, reason not-negotiated (-4).

and the launch process in getting terminated.

I have tried the same command many times earlier, both on my pc and raspberry pi but never faced this problem. Please provide me a solution to rectify this.
Reply | Threaded
Open this post in threaded view
|

Re: streaming task paused, reason not-negotiated (-4)

Weipeng He
Hi,

You might want to try add videoconvert in between:
gst-launch-1.0 v4l2src ! videoconvert ! autovideosink

I guess the video format (color space) you get from your webcam
(v4l2src) is not compatible with the sink.

Best,
Weipeng


On 10/08/16 15:58, pavan wrote:

> Hi,
>
>    I tried compiling and installing gstreamer 1.4.0 gst-plugins-base 1.4.0
> gst-plugins-good 1.4.0 on my raspberry pi B and tried to start gstreamer
> with the following simple pipeline.
>
>                    gst-launch-1.0 v4l2src ! autovideosink.
>
> but im getting error as v4l2src0: internal dataflow error
> streaming task paused, reason not-negotiated (-4).
>
> and the launch process in getting terminated.
>
> I have tried the same command many times earlier, both on my pc and
> raspberry pi but never faced this problem. Please provide me a solution to
> rectify this.
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/streaming-task-paused-reason-not-negotiated-4-tp4679031.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: streaming task paused, reason not-negotiated (-4)

pavan
Hi Weipeng He,

Thanks for the input. Its working now. But actually i need to use the omxh264enc to check the latency of the gpu in raspberry pi. But again im getting the same problem. i've constructed the pipeline for omxh264 as follows.

gst-launch-1.0 v4l2src do-timestamp=true ! video/x-raw,format=I420,width=640,height=480,framerate=30/1 ! timeoverlay ! omxh264enc ! video/x-h264,width=640,height=480,framerate=30/1 ! decodebin ! autovideosink sync=false

but i'm getting the same problem as v4l2src0: internal dataflow error.

I tried using the videoconvert as follows

gst-launch-1.0 v4l2src do-timestamp=true ! video/x-raw,format=I420,width=640,height=480,framerate=30/1 ! timeoverlay ! omxh264enc ! video/x-h264,width=640,height=480,framerate=30/1 ! decodebin ! videoconvert ! autovideosink sync=false

But the result is same. Plese provide me the suitable pipeline to use omxh264enc on raspberry pi.
Reply | Threaded
Open this post in threaded view
|

Re: streaming task paused, reason not-negotiated (-4)

Weipeng He
hi,

you need to check:

(1) your camera can provide video of the type (i420,30 fps), if not put
videoconvert or videorate right after v4l2src.

(2) omxh264enc can take the video type as input, if not put videoconvert
before it.

Best,
weipeng

On 11/08/16 08:43, pavan wrote:

> Hi Weipeng He,
>
> Thanks for the input. Its working now. But actually i need to use the
> omxh264enc to check the latency of the gpu in raspberry pi. But again im
> getting the same problem. i've constructed the pipeline for omxh264 as
> follows.
>
> gst-launch-1.0 v4l2src do-timestamp=true !
> video/x-raw,format=I420,width=640,height=480,framerate=30/1 ! timeoverlay !
> omxh264enc ! video/x-h264,width=640,height=480,framerate=30/1 ! decodebin !
> autovideosink sync=false
>
> but i'm getting the same problem as v4l2src0: internal dataflow error.
>
> I tried using the videoconvert as follows
>
> gst-launch-1.0 v4l2src do-timestamp=true !
> video/x-raw,format=I420,width=640,height=480,framerate=30/1 ! timeoverlay !
> omxh264enc ! video/x-h264,width=640,height=480,framerate=30/1 ! decodebin !
> videoconvert ! autovideosink sync=false
>
> But the result is same. Plese provide me the suitable pipeline to use
> omxh264enc on raspberry pi.
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/streaming-task-paused-reason-not-negotiated-4-tp4679031p4679037.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: streaming task paused, reason not-negotiated (-4)

dexter.morgan
Hi

I got a similar problem:

My Camera provides Y16. The message from GSTREAMER was:
Tried to capture in YU12, but device returned format Y16.

I'm calling GSTREAMER like this:
gst-launch-1.0 v4l2src device=/dev/video0 ! videoscale ! video/x-raw,width=2592,height=1944 ! autovideosink

what am I doing wrong? is y16 not supported?

Thank you very much for your help.
Reply | Threaded
Open this post in threaded view
|

Re: streaming task paused, reason not-negotiated (-4)

Sebastian Dröge-3
On Mon, 2016-11-21 at 07:19 -0800, dexter.morgan wrote:

> Hi
>
> I got a similar problem:
>
> My Camera provides Y16. The message from GSTREAMER was:
> Tried to capture in YU12, but device returned format Y16.
>
> I'm calling GSTREAMER like this:
> gst-launch-1.0 v4l2src device=/dev/video0 ! videoscale !
> video/x-raw,width=2592,height=1944 ! autovideosink
>
> what am I doing wrong? is y16 not supported?
Your sink probably does not support it. Add a videoconvert.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (981 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: streaming task paused, reason not-negotiated (-4)

dexter.morgan
Hi

Thanks for your reply. I tried:

gst-launch-1.0v4l2src device=/dev/video0 ! videoconvert ! autovideosink

but I still got:
"libv4l2: error set_fmt gave us a different result then try_fmt!"
"ERROR_ from element /GstPipeline:pipeline0/GstV4l2Src:v4lSrc0: Device '/dev/video0' cannot capture in the specified format"
"Tried to capture in YU12, but device returned format Y16"