gstreamer camera access issue

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

gstreamer camera access issue

sudeendra.mg
Dear members,

I face below issue:
gst-launch-1.0 -v v4l2src device=/dev/video0 ! "video/x-h264, width=640, height=480, framerate=15/1, stream-format=byte-stream" ! rtph264pay ! udpsink host=192.168.1.4 port=5000

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GetPipeline:pipeline0/GetV4l2Src:v4l2src0: Internadata stream error.
Additional debug info: 
gstbasesrc.c (3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2src/v4l2src0: 
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.001437437
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

Could you please check above issue and help me with the solution?

Thanks & Best Regards,
Sudeendra

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

Re: gstreamer camera access issue

Thibault Saunier-4
Hello,

It looks like you camera can't output h264 (at least in byte-stream), you should check what format are supported, and encode the stream if only raw, or add an h264parse if it can help.

- Thibault

On Tue, May 12, 2020 at 7:33 AM Sudeendra M.G <[hidden email]> wrote:
Dear members,

I face below issue:
gst-launch-1.0 -v v4l2src device=/dev/video0 ! "video/x-h264, width=640, height=480, framerate=15/1, stream-format=byte-stream" ! rtph264pay ! udpsink host=192.168.1.4 port=5000

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GetPipeline:pipeline0/GetV4l2Src:v4l2src0: Internadata stream error.
Additional debug info: 
gstbasesrc.c (3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2src/v4l2src0: 
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.001437437
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

Could you please check above issue and help me with the solution?

Thanks & Best Regards,
Sudeendra
_______________________________________________
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: gstreamer camera access issue

Nicolas Dufresne-5
In reply to this post by sudeendra.mg
Le mardi 12 mai 2020 à 17:02 +0530, Sudeendra M.G a écrit :

> Dear members,
>
> I face below issue:
> gst-launch-1.0 -v v4l2src device=/dev/video0 ! "video/x-h264, width=640, height=480, framerate=15/1, stream-format=byte-stream" ! rtph264pay ! udpsink host=192.168.1.4 port=5000
>
> Setting pipeline to PAUSED ...
> Pipeline is live and does not need PREROLL ...
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> ERROR: from element /GetPipeline:pipeline0/GetV4l2Src:v4l2src0: Internadata stream error.
> Additional debug info:
> gstbasesrc.c (3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2src/v4l2src0:
> streaming stopped, reason not-negotiated (-4)

Verify [0] that your camera support H264 encoding in 640x480 15fps. If
it does support this, perhaps v4l2src is not setting enough info int he
caps for rpth264pay to work, in this case add h264parse between the
v4l2src and rtph264pay.

v4l2-ctl -d /dev/video0 --list-formats-ext

> Execution ended after 0:00:00.001437437
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> Setting pipeline to NULL ...
> Freeing pipeline ...
>
> Could you please check above issue and help me with the solution?
>
> Thanks & Best Regards,
> Sudeendra
> _______________________________________________
> 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