<div dir="ltr">Hi Yair,<div><br></div><div>I just came to know while doing googling ...this allows more logs to be printed on screen.</div><div><br></div><div>Thanks,</div><div>Issac</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 20, 2020 at 5:34 PM Yair Reshef <<a href="mailto:yair99@gmail.com">yair99@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">hi issac, what is behind "test-launch" ?<br>
not familiar with this ...<br>
<br>
also consider adding a ! queue ! element before he encode step.<br>
<br>
a good debug step is to output as a DOT file and observe it.<br>
<a href="https://gstreamer.freedesktop.org/documentation/tutorials/basic/debugging-tools.html#getting-pipeline-graphs" rel="noreferrer" target="_blank">https://gstreamer.freedesktop.org/documentation/tutorials/basic/debugging-tools.html#getting-pipeline-graphs</a><br>
<br>
On Mon, Apr 20, 2020 at 2:30 PM isshed <<a href="mailto:isshed.sip@gmail.com" target="_blank">isshed.sip@gmail.com</a>> wrote:<br>
><br>
> Thanks Keith,<br>
><br>
><br>
> Below are the errors.<br>
><br>
><br>
> $ GST_DEBUG=2 ./test-launch "( pylonsrc width=1280 height=720 ! videoconvert ! video/x-raw,format=I420 ! x264enc byte-stream=true ! rtph264pay name=pay0 pt=96 )"<br>
><br>
> stream ready at rtsp://<a href="http://127.0.0.1:8554/test" rel="noreferrer" target="_blank">127.0.0.1:8554/test</a><br>
><br>
><br>
> While playing it on vlc the following errors<br>
><br>
><br>
> 0:00:35.268115065  4644 0x7f41a8004a30 WARN               videopool gstvideopool.c:216:video_buffer_pool_set_config:<videobufferpool0> no caps in config<br>
><br>
> 0:00:35.276744685  4644 0x7f41a8004a30 WARN                pylonsrc gstpylonsrc.c:1595:gst_pylonsrc_set_readout:<pylonsrc0> Camera does not support changing the readout mode.<br>
><br>
> 0:00:54.862657314  4644      0x1fbe0a0 WARN               rtspmedia rtsp-media.c:2573:wait_preroll: failed to preroll pipeline<br>
><br>
> 0:00:54.862706926  4644      0x1fbe0a0 WARN               rtspmedia rtsp-media.c:2877:gst_rtsp_media_prepare: failed to preroll pipeline<br>
><br>
> 0:00:55.548970132  4644      0x1fbe0a0 ERROR             rtspclient rtsp-client.c:763:find_media: client 0x21468f0: can't prepare media<br>
><br>
> 0:00:55.549667369  4644      0x1fbe0a0 ERROR             rtspclient rtsp-client.c:2288:handle_describe_request: client 0x21468f0: no media<br>
><br>
><br>
><br>
> Thanks,<br>
> Issac<br>
> On Mon, Apr 20, 2020 at 4:45 PM Thornton, Keith <<a href="mailto:keith.thornton@zeiss.com" target="_blank">keith.thornton@zeiss.com</a>> wrote:<br>
>><br>
>> What happens if you add another videconvert immediately after the pylonsrc?<br>
>><br>
>><br>
>><br>
>> Von: gstreamer-devel <<a href="mailto:gstreamer-devel-bounces@lists.freedesktop.org" target="_blank">gstreamer-devel-bounces@lists.freedesktop.org</a>> Im Auftrag von isshed<br>
>> Gesendet: Montag, 20. April 2020 10:40<br>
>> An: Discussion of the development of and with GStreamer <<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a>>; Yair Reshef <<a href="mailto:yair99@gmail.com" target="_blank">yair99@gmail.com</a>><br>
>> Betreff: Re: gstreamer command Issue.<br>
>><br>
>><br>
>><br>
>> Also tried running the following command (removed gst-launch-1.0)..with this parsing errors gone. but still not working.<br>
>><br>
>><br>
>><br>
>> $ GST_DEBUG=2 ./test-launch "( pylonsrc ! video/x-raw, format=GRAY8, width=1280, height=720 ! videoconvert ! x264enc ! rtph264pay name=pay0 pt=96 )"<br>
>><br>
>> stream ready at rtsp://<a href="http://127.0.0.1:8554/test" rel="noreferrer" target="_blank">127.0.0.1:8554/test</a><br>
>><br>
>><br>
>><br>
>> x264 [error]: baseline profile doesn't support 4:4:4<br>
>><br>
>> 0:00:03.879521603 31620 0x7f561c004a30 WARN                 x264enc gstx264enc.c:1541:gst_x264_enc_init_encoder:<x264enc0> Bad downstream profile name: baseline<br>
>><br>
>> 0:00:03.892103447 31620 0x7f561c004a30 WARN               videopool gstvideopool.c:216:video_buffer_pool_set_config:<videobufferpool0> no caps in config<br>
>><br>
>> 0:00:03.899986085 31620 0x7f561c004a30 WARN                pylonsrc gstpylonsrc.c:1595:gst_pylonsrc_set_readout:<pylonsrc0> Camera does not support changing the readout mode.<br>
>><br>
>> 0:00:23.493638073 31620       0xc060a0 WARN               rtspmedia rtsp-media.c:2573:wait_preroll: failed to preroll pipeline<br>
>><br>
>> 0:00:23.493672656 31620       0xc060a0 WARN               rtspmedia rtsp-media.c:2877:gst_rtsp_media_prepare: failed to preroll pipeline<br>
>><br>
>> 0:00:24.201459226 31620       0xc060a0 ERROR             rtspclient rtsp-client.c:763:find_media: client 0xd8e8f0: can't prepare media<br>
>><br>
>> 0:00:24.202156373 31620       0xc060a0 ERROR             rtspclient rtsp-client.c:2288:handle_describe_request: client 0xd8e8f0: no media<br>
>><br>
>><br>
>><br>
>> Thanks,<br>
>><br>
>> Issac<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> On Mon, Apr 20, 2020 at 12:05 PM isshed <<a href="mailto:isshed.sip@gmail.com" target="_blank">isshed.sip@gmail.com</a>> wrote:<br>
>><br>
>> Also tried running the following command<br>
>><br>
>><br>
>><br>
>> $ GST_DEBUG=2 ./test-launch "( gst-launch-1.0 pylonsrc ! video/x-raw, width=1280, height=720 ! identity silent=0 ! videoconvert ! identity silent=0 ! video/x-h264,profile=main ! identity silent=0 ! x264enc ! identity silent=0 ! rtph264pay name=pay0 pt=96 )"<br>
>><br>
>> stream ready at rtsp://<a href="http://127.0.0.1:8554/test" rel="noreferrer" target="_blank">127.0.0.1:8554/test</a><br>
>><br>
>><br>
>><br>
>> 0:00:10.720084316 28224      0x12fa0a0 ERROR           GST_PIPELINE grammar.y:777:priv_gst_parse_yyparse: unexpected reference "gst-launch-1" - ignoring<br>
>><br>
>> 0:00:10.720133372 28224      0x12fa0a0 ERROR           GST_PIPELINE grammar.y:783:priv_gst_parse_yyparse: unexpected pad-reference "0" - ignoring<br>
>><br>
>> 0:00:10.743445534 28224      0x12fa0a0 ERROR           GST_PIPELINE grammar.y:642:gst_parse_perform_link: could not link identity1 to identity2<br>
>><br>
>> 0:00:10.743562588 28224      0x12fa0a0 WARN        rtspmediafactory rtsp-media-factory.c:1317:default_create_element: recoverable parsing error: unexpected reference "gst-launch-1" - ignoring<br>
>><br>
>> 0:00:11.142120603 28224 0x7f6218004a30 WARN                pylonsrc gstpylonsrc.c:1595:gst_pylonsrc_set_readout:<pylonsrc0> Camera does not support changing the readout mode.<br>
>><br>
>> 0:00:11.685482200 28224 0x7f6218004a30 WARN                 basesrc gstbasesrc.c:2948:gst_base_src_loop:<pylonsrc0> error: Internal data flow error.<br>
>><br>
>> 0:00:11.685508724 28224 0x7f6218004a30 WARN                 basesrc gstbasesrc.c:2948:gst_base_src_loop:<pylonsrc0> error: streaming task paused, reason not-linked (-1)<br>
>><br>
>> 0:00:11.685604481 28224 0x7f6220021050 WARN               rtspmedia rtsp-media.c:2278:default_handle_message: 0x7f6220058200: got error Internal data flow error. (gstbasesrc.c(2948): gst_base_src_loop (): /GstPipeline:media-pipeline/GstBin:bin0/GstPylonSrc:pylonsrc0:<br>
>><br>
>> streaming task paused, reason not-linked (-1))<br>
>><br>
>> 0:00:11.685692254 28224      0x12fa0a0 WARN               rtspmedia rtsp-media.c:2573:wait_preroll: failed to preroll pipeline<br>
>><br>
>> 0:00:11.685716222 28224      0x12fa0a0 WARN               rtspmedia rtsp-media.c:2877:gst_rtsp_media_prepare: failed to preroll pipeline<br>
>><br>
>> 0:00:11.713962743 28224      0x12fa0a0 ERROR             rtspclient rtsp-client.c:763:find_media: client 0x14828f0: can't prepare media<br>
>><br>
>> 0:00:11.714727893 28224      0x12fa0a0 ERROR             rtspclient rtsp-client.c:2288:handle_describe_request: client 0x14828f0: no media<br>
>><br>
>><br>
>><br>
>> Thanks,<br>
>><br>
>> Issac<br>
>><br>
>><br>
>><br>
>> On Mon, Apr 20, 2020 at 11:36 AM isshed <<a href="mailto:isshed.sip@gmail.com" target="_blank">isshed.sip@gmail.com</a>> wrote:<br>
>><br>
>> Thanks Yair!<br>
>><br>
>> Below is the command working fine<br>
>><br>
>><br>
>><br>
>> # gst-launch-1.0 pylonsrc ! "video/x-raw, format=GRAY8, width=1280, height=720" ! identity silent=0 ! videoconvert ! autovideosink<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> My goal is to run this command inside rtsp media server test-launch binary as I want to stream it on a webpage. But when I run this I am getting the following error while playing it in vlc player.<br>
>><br>
>><br>
>><br>
>> #   ./test-launch "( gst-launch-1.0 pylonsrc ! video/x-raw, format=GRAY8, width=1280, height=720 ! identity silent=0 ! videoconvert ! identity silent=0 ! x264enc ! identity silent=0 ! rtph264pay name=pay0 pt=96 )"<br>
>><br>
>><br>
>><br>
>> stream ready at rtsp://<a href="http://127.0.0.1:8554/test" rel="noreferrer" target="_blank">127.0.0.1:8554/test</a><br>
>><br>
>><br>
>><br>
>> -------- When I try to play the stream (rtsp://<a href="http://127.0.0.1:8554/test" rel="noreferrer" target="_blank">127.0.0.1:8554/test</a>) in vlc Below error happens ---------<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> x264 [error]: baseline profile doesn't support 4:4:4<br>
>><br>
>> x264 [error]: baseline profile doesn't support 4:4:4<br>
>><br>
>><br>
>><br>
>> Thanks,<br>
>><br>
>> Issac<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> On Sun, Apr 19, 2020 at 4:00 PM Yair Reshef <<a href="mailto:yair99@gmail.com" target="_blank">yair99@gmail.com</a>> wrote:<br>
>><br>
>> note, GRAY8 is not supported in x264 (or RTP in general)<br>
>> so videoconvert will adapt it to another (RGBA), rtp/x264 compatible format.<br>
>> this might bite you if you plan to manipulate the GRAY8, as GRAY8, upstream.<br>
>><br>
>> see<br>
>> gst-launch-1.0 -v videotestsrc !<br>
>> "video/x-raw,format=GRAY8,width=1280,height=720" ! videoflip<br>
>> method=vertical-flip ! identity silent=0 ! videoconvert ! identity<br>
>> silent=0 ! msdkh264enc ! identity silent=0 ! rtph264pay name=pay0<br>
>> pt=96 ! udpsink -v<br>
>><br>
>> #from "camera"<br>
>> identity0: last-message = chain   ******* (identity0:sink) (921600 bytes, ...<br>
>> #into decoder<br>
>> identity1: last-message = chain   ******* (identity1:sink) (3768320 bytes, ...<br>
>> #after compression<br>
>> identity2: last-message = chain   ******* (identity2:sink) (8389 bytes...<br>
>><br>
>> On Sun, Apr 19, 2020 at 12:01 PM Yair Reshef <<a href="mailto:yair99@gmail.com" target="_blank">yair99@gmail.com</a>> wrote:<br>
>> ><br>
>> > continued on <a href="https://github.com/joshdoe/gst-plugins-vision/issues/30" rel="noreferrer" target="_blank">https://github.com/joshdoe/gst-plugins-vision/issues/30</a><br>
>> > tldr:<br>
>> > gst-launch-1.0 -v videotestsrc !<br>
>> > "video/x-raw,format=GRAY8,width=1280,height=720,framerate=25/1" !<br>
>> > videoflip method=vertical-flip ! videoconvert ! x264enc ! rtph264pay<br>
>> > name=pay0 pt=96 ! udpsink<br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> > On Sun, Apr 19, 2020 at 11:46 AM Yair Reshef <<a href="mailto:yair99@gmail.com" target="_blank">yair99@gmail.com</a>> wrote:<br>
>> > ><br>
>> > > hi,<br>
>> > > 1. you are working on a unmaintained git. it has move to gst-plugins-vision<br>
>> > > 2. there is no udpsink in your pipeline end<br>
>> > >  ! udpsink host=127.0.0.1 port=5000<br>
>> > > 3. start with a videotestsrc, check its working, then move to camera.<br>
>> > ><br>
>> > > On Sun, Apr 19, 2020 at 8:47 AM isshed <<a href="mailto:isshed.sip@gmail.com" target="_blank">isshed.sip@gmail.com</a>> wrote:<br>
>> > > ><br>
>> > > > Hi All,<br>
>> > > ><br>
>> > > > I am using a plugin pylonsrc (<a href="https://github.com/zingmars/gst-pylonsrc" rel="noreferrer" target="_blank">https://github.com/zingmars/gst-pylonsrc</a>).<br>
>> > > > Below is the command I am running, it is failing. Can you please tell me wha is the issue in the command. I want to generate rtsp stream from camera. This is a USB camera.<br>
>> > > ><br>
>> > > > harendra@ubuntu:~/$ gst-launch-1.0 -v pylonsrc height=720 width=1280 fps=25 ! videoflip method=vertical-flip ! videoconvert ! x264enc ! rtph264pay name=pay0 pt=96<br>
>> > > ><br>
>> > > > Setting pipeline to PAUSED ...<br>
>> > > > Pipeline is live and does not need PREROLL ...<br>
>> > > > Setting pipeline to PLAYING ...<br>
>> > > > New clock: GstSystemClock<br>
>> > > > /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0.GstPad:src: caps = "video/x-raw\,\ format\=\(string\)GRAY8\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ framerate\=\(fraction\)30/1\,\ pixel-aspect-ratio\=\(fraction\)1/1"<br>
>> > > > /GstPipeline:pipeline0/GstVideoFlip:videoflip0.GstPad:src: caps = "video/x-raw\,\ format\=\(string\)GRAY8\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ framerate\=\(fraction\)30/1\,\ pixel-aspect-ratio\=\(fraction\)1/1"<br>
>> > > > /GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps = "video/x-raw\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ framerate\=\(fraction\)30/1\,\ format\=\(string\)Y444\,\ pixel-aspect-ratio\=\(fraction\)1/1"<br>
>> > > > /GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:sink: caps = "video/x-raw\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ framerate\=\(fraction\)30/1\,\ format\=\(string\)Y444\,\ pixel-aspect-ratio\=\(fraction\)1/1"<br>
>> > > > Redistribute latency...<br>
>> > > > /GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps = "video/x-raw\,\ format\=\(string\)GRAY8\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ framerate\=\(fraction\)30/1\,\ pixel-aspect-ratio\=\(fraction\)1/1"<br>
>> > > > /GstPipeline:pipeline0/GstVideoFlip:videoflip0.GstPad:sink: caps = "video/x-raw\,\ format\=\(string\)GRAY8\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ framerate\=\(fraction\)30/1\,\ pixel-aspect-ratio\=\(fraction\)1/1"<br>
>> > > > /GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:src: caps = "video/x-h264\,\ codec_data\=\(buffer\)01f4001fffe1001a67f4001f919b280a00b76022000003000200000300791e30632c01000668ebec448440\,\ stream-format\=\(string\)avc\,\ alignment\=\(string\)au\,\ level\=\(string\)3.1\,\ profile\=\(string\)high-4:4:4\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1"<br>
>> > > > /GstPipeline:pipeline0/GstRtpH264Pay:pay0.GstPad:src: caps = "application/x-rtp\,\ media\=\(string\)video\,\ clock-rate\=\(int\)90000\,\ encoding-name\=\(string\)H264\,\ packetization-mode\=\(string\)1\,\ profile-level-id\=\(string\)f4001f\,\ sprop-parameter-sets\=\(string\)\"Z/QAH5GbKAoAt2AiAAADAAIAAAMAeR4wYyw\\\=\\\,aOvsRIRA\"\,\ payload\=\(int\)96\,\ ssrc\=\(uint\)277528337\,\ timestamp-offset\=\(uint\)153824638\,\ seqnum-offset\=\(uint\)11049\,\ a-framerate\=\(string\)30"<br>
>> > > > /GstPipeline:pipeline0/GstRtpH264Pay:pay0.GstPad:sink: caps = "video/x-h264\,\ codec_data\=\(buffer\)01f4001fffe1001a67f4001f919b280a00b76022000003000200000300791e30632c01000668ebec448440\,\ stream-format\=\(string\)avc\,\ alignment\=\(string\)au\,\ level\=\(string\)3.1\,\ profile\=\(string\)high-4:4:4\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1"<br>
>> > > > /GstPipeline:pipeline0/GstRtpH264Pay:pay0: timestamp = 153847583<br>
>> > > > /GstPipeline:pipeline0/GstRtpH264Pay:pay0: seqnum = 11049<br>
>> > > > ERROR: from element /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0: Internal data flow error.<br>
>> > > > Additional debug info:<br>
>> > > > gstbasesrc.c(2948): gst_base_src_loop (): /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0:<br>
>> > > > streaming task paused, reason not-linked (-1)<br>
>> > > > Execution ended after 0:00:10.726250733<br>
>> > > > Setting pipeline to PAUSED ...<br>
>> > > > Setting pipeline to READY ...<br>
>> > > > Setting pipeline to NULL ...<br>
>> > > > Freeing pipeline ...<br>
>> > > ><br>
>> > > ><br>
>> > > > Thanks,<br>
>> > > > Issac<br>
>> > > > _______________________________________________<br>
>> > > > gstreamer-devel mailing list<br>
>> > > > <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
>> > > > <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
>> _______________________________________________<br>
>> gstreamer-devel mailing list<br>
>> <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
>> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
>><br>
>> _______________________________________________<br>
>> gstreamer-devel mailing list<br>
>> <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
>> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
><br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>