<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 20 juin 2019 04 h 55, santhku1 <<a href="mailto:santhosh@eilabs.co.in">santhosh@eilabs.co.in</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi <br>
I m working on I.Mx8mmini and i am facing the below issue from many days, <br>
when i use the below  gst_rtsp_media_factory_set_launch it works fine <br>
 gst_rtsp_media_factory_set_launch (factory,<br>
"( videotestsrc ! x264enc ! rtph264pay pt=96 name=pay0 )");<br>
<br>
but When  i use the below  gst_rtsp_media_factory_set_launch Iam getting the<br>
below error<br>
 gst_rtsp_media_factory_set_launch (factory, "( "<br>
     "v4l2src device=/dev/video0 ! video/x-raw !  "<br>
      " rtph264pay name=pay0 pt=96 " ")");<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">You are asking explicitly to send raw video to rtph264pay (which expects h264 encoded stream). There is raw video payloader in RTP, but I suspect you'll need an encoder.</div><div dir="auto"><br></div><div dir="auto">There is not mainline Linux support yet for this, on NXP vendor kernel, please refer to NXP documentation on how to use their encoder.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
0:00:04.438708075  4495     0x36622630 ERROR           GST_PIPELINE<br>
grammar.y:726:gst_parse_perform_link: could not link v4l2src0 to pay0, pay0<br>
can't handle caps video/x-raw<br>
0:00:04.438842328  4495     0x36622630 WARN        rtspmediafactory<br>
rtsp-media-factory.c:1454:default_create_element: recoverable parsing error:<br>
could not link v4l2src0 to pay0, pay0 can't handle caps video/x-raw<br>
0:00:04.444867441  4495 0xffffb00102d0 WARN                    v4l2<br>
v4l2_calls.c:543:gst_v4l2_subscribe_event:<v4l2src0> Cannot subscribe<br>
V4L2_EVENT_SOURCE_CHANGE or V4L2_EVENT_EOS event for device '/dev/video0'.<br>
0:00:04.909678405  4495 0xffffa8004720 WARN          v4l2bufferpool<br>
gstv4l2bufferpool.c:794:gst_v4l2_buffer_pool_start:<v4l2src0:pool:src><br>
Uncertain or not eno[ 6793.312810] ov5640_mipi 2-003c: s_stream: 1<br>
ugh buffers, enabling copy threshold<br>
0:00:05.561473250  4495 0xffffa8004720 WARN   [ 6793.953760] ov5640_mipi<br>
2-003c: s_stream: 0<br>
       v4l2bufferpool<br>
gstv4l2bufferpool.c:1213:gst_v4l2_buffer_pool_dqbuf:<v4l2src0:pool:src><br>
Driver should never set v4l2_buffer.field to ANY<br>
0:00:05.561774255  4495 0xffffa8004720 WARN                 basesrc<br>
gstbasesrc.c:3055:gst_base_src_loop:<v4l2src0> error: Internal data stream<br>
error.<br>
0:00:05.561805381  4495 0xffffa8004720 WARN                 basesrc<br>
gstbasesrc.c:3055:gst_base_src_loop:<v4l2src0> error: streaming stopped,<br>
reason not-linked (-1)<br>
0:00:05.562566145  4495 0xffffb00102d0 WARN               rtspmedia<br>
rtsp-media.c:2720:default_handle_message: 0xffffb003a200: got error Internal<br>
data stream error. (../../../../git/libs/gst/base/gstbasesrc.c(3055):<br>
gst_base_src_loop ():<br>
/GstPipeline:media-pipeline/GstBin:bin0/GstV4l2Src:v4l2src0:<br>
streaming stopped, reason not-linked (-1))<br>
0:00:05.562641897  4495     0x36622630 WARN               rtspmedia<br>
rtsp-media.c:2989:wait_preroll: failed to preroll pipeline<br>
0:00:05.562672522  4495     0x36622630 WARN               rtspmedia<br>
rtsp-media.c:3293:gst_rtsp_media_prepare: failed to preroll pipeline<br>
0:00:05.578699198  4495     0x36622630 ERROR             rtspclient<br>
rtsp-client.c:1044:find_media: client 0x367a8130: can't prepare media<br>
0:00:05.579126456  4495     0x36622630 ERROR             rtspclient<br>
rtsp-client.c:2898:handle_describe_request: client 0x367a8130: no media<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div></div></div>