gstreamer command Issue.

isshed isshed.sip at gmail.com
Mon Apr 20 11:30:28 UTC 2020


Thanks Keith,


Below are the errors.


$ 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 )"

stream ready at rtsp://127.0.0.1:8554/test


While playing it on vlc the following errors


0:00:35.268115065  4644 0x7f41a8004a30 WARN               videopool
gstvideopool.c:216:video_buffer_pool_set_config:<videobufferpool0> no caps
in config

0:00:35.276744685  4644 0x7f41a8004a30 WARN                pylonsrc
gstpylonsrc.c:1595:gst_pylonsrc_set_readout:<pylonsrc0> Camera does not
support changing the readout mode.

0:00:54.862657314  4644      0x1fbe0a0 WARN               rtspmedia
rtsp-media.c:2573:wait_preroll: failed to preroll pipeline

0:00:54.862706926  4644      0x1fbe0a0 WARN               rtspmedia
rtsp-media.c:2877:gst_rtsp_media_prepare: failed to preroll pipeline

0:00:55.548970132  4644      0x1fbe0a0 ERROR             rtspclient
rtsp-client.c:763:find_media: client 0x21468f0: can't prepare media

0:00:55.549667369  4644      0x1fbe0a0 ERROR             rtspclient
rtsp-client.c:2288:handle_describe_request: client 0x21468f0: no media


Thanks,
Issac
On Mon, Apr 20, 2020 at 4:45 PM Thornton, Keith <keith.thornton at zeiss.com>
wrote:

> What happens if you add another videconvert immediately after the pylonsrc?
>
>
>
> *Von:* gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> *Im
> Auftrag von *isshed
> *Gesendet:* Montag, 20. April 2020 10:40
> *An:* Discussion of the development of and with GStreamer <
> gstreamer-devel at lists.freedesktop.org>; Yair Reshef <yair99 at gmail.com>
> *Betreff:* Re: gstreamer command Issue.
>
>
>
> Also tried running the following command (removed gst-launch-1.0)..with
> this parsing errors gone. but still not working.
>
>
>
> $ * GST_DEBUG=2 ./test-launch "( pylonsrc ! video/x-raw, format=GRAY8,
> width=1280, height=720 ! videoconvert ! x264enc ! rtph264pay name=pay0
> pt=96 )"*
>
> stream ready at rtsp://127.0.0.1:8554/test
> <https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2F127.0.0.1%3A8554%2Ftest&data=02%7C01%7C%7C2601d2b8497544d9f76b08d7e50f9f33%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637229727573923828&sdata=wBQ8oW2076yFtujuo%2FUy8u5p9LQcbDsjSW2y9pmxKBY%3D&reserved=0>
>
>
>
> x264 [error]: baseline profile doesn't support 4:4:4
>
> 0:00:03.879521603 31620 0x7f561c004a30 WARN                 x264enc
> gstx264enc.c:1541:gst_x264_enc_init_encoder:<x264enc0> Bad downstream
> profile name: baseline
>
> 0:00:03.892103447 31620 0x7f561c004a30 WARN               videopool
> gstvideopool.c:216:video_buffer_pool_set_config:<videobufferpool0> no caps
> in config
>
> 0:00:03.899986085 31620 0x7f561c004a30 WARN                pylonsrc
> gstpylonsrc.c:1595:gst_pylonsrc_set_readout:<pylonsrc0> Camera does not
> support changing the readout mode.
>
> 0:00:23.493638073 31620       0xc060a0 WARN               rtspmedia
> rtsp-media.c:2573:wait_preroll: failed to preroll pipeline
>
> 0:00:23.493672656 31620       0xc060a0 WARN               rtspmedia
> rtsp-media.c:2877:gst_rtsp_media_prepare: failed to preroll pipeline
>
> 0:00:24.201459226 31620       0xc060a0 ERROR             rtspclient
> rtsp-client.c:763:find_media: client 0xd8e8f0: can't prepare media
>
> 0:00:24.202156373 31620       0xc060a0 ERROR             rtspclient
> rtsp-client.c:2288:handle_describe_request: client 0xd8e8f0: no media
>
>
>
> Thanks,
>
> Issac
>
>
>
>
>
> On Mon, Apr 20, 2020 at 12:05 PM isshed <isshed.sip at gmail.com> wrote:
>
> Also tried running the following command
>
>
>
> $ 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 )"
>
> stream ready at rtsp://127.0.0.1:8554/test
> <https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2F127.0.0.1%3A8554%2Ftest&data=02%7C01%7C%7C2601d2b8497544d9f76b08d7e50f9f33%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637229727573933788&sdata=s1VpuS7y9cpClUOL7hyjFX0iOt7OHhtZnIDkLYxr%2BIs%3D&reserved=0>
>
>
>
> 0:00:10.720084316 28224      0x12fa0a0 ERROR           GST_PIPELINE
> grammar.y:777:priv_gst_parse_yyparse: unexpected reference "gst-launch-1" -
> ignoring
>
> 0:00:10.720133372 28224      0x12fa0a0 ERROR           GST_PIPELINE
> grammar.y:783:priv_gst_parse_yyparse: unexpected pad-reference "0" -
> ignoring
>
> 0:00:10.743445534 28224      0x12fa0a0 ERROR           GST_PIPELINE
> grammar.y:642:gst_parse_perform_link: could not link identity1 to identity2
>
> 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
>
> 0:00:11.142120603 28224 0x7f6218004a30 WARN                pylonsrc
> gstpylonsrc.c:1595:gst_pylonsrc_set_readout:<pylonsrc0> Camera does not
> support changing the readout mode.
>
> 0:00:11.685482200 28224 0x7f6218004a30 WARN                 basesrc
> gstbasesrc.c:2948:gst_base_src_loop:<pylonsrc0> error: Internal data flow
> error.
>
> 0:00:11.685508724 28224 0x7f6218004a30 WARN                 basesrc
> gstbasesrc.c:2948:gst_base_src_loop:<pylonsrc0> error: streaming task
> paused, reason not-linked (-1)
>
> 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:
>
> streaming task paused, reason not-linked (-1))
>
> 0:00:11.685692254 28224      0x12fa0a0 WARN               rtspmedia
> rtsp-media.c:2573:wait_preroll: failed to preroll pipeline
>
> 0:00:11.685716222 28224      0x12fa0a0 WARN               rtspmedia
> rtsp-media.c:2877:gst_rtsp_media_prepare: failed to preroll pipeline
>
> 0:00:11.713962743 28224      0x12fa0a0 ERROR             rtspclient
> rtsp-client.c:763:find_media: client 0x14828f0: can't prepare media
>
> 0:00:11.714727893 28224      0x12fa0a0 ERROR             rtspclient
> rtsp-client.c:2288:handle_describe_request: client 0x14828f0: no media
>
>
>
> Thanks,
>
> Issac
>
>
>
> On Mon, Apr 20, 2020 at 11:36 AM isshed <isshed.sip at gmail.com> wrote:
>
> Thanks Yair!
>
> Below is the command working fine
>
>
>
> # gst-launch-1.0 pylonsrc ! "video/x-raw, format=GRAY8, width=1280,
> height=720" ! identity silent=0 ! videoconvert ! autovideosink
>
>
>
>
>
> 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.
>
>
>
> #  * ./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 )"*
>
>
>
> stream ready at rtsp://127.0.0.1:8554/test
> <https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2F127.0.0.1%3A8554%2Ftest&data=02%7C01%7C%7C2601d2b8497544d9f76b08d7e50f9f33%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637229727574093097&sdata=8%2BQU12GdQt3XVTdBuo%2FAwaagop%2Bp3dET8vxTqGvjBIE%3D&reserved=0>
>
>
>
> -------- When I try to play the stream (rtsp://127.0.0.1:8554/test
> <https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2F127.0.0.1%3A8554%2Ftest&data=02%7C01%7C%7C2601d2b8497544d9f76b08d7e50f9f33%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637229727574093097&sdata=8%2BQU12GdQt3XVTdBuo%2FAwaagop%2Bp3dET8vxTqGvjBIE%3D&reserved=0>
> ) in vlc Below error happens ---------
>
>
>
>
>
> x264 [error]: baseline profile doesn't support 4:4:4
>
> x264 [error]: baseline profile doesn't support 4:4:4
>
>
>
> Thanks,
>
> Issac
>
>
>
>
>
> On Sun, Apr 19, 2020 at 4:00 PM Yair Reshef <yair99 at gmail.com> wrote:
>
> note, GRAY8 is not supported in x264 (or RTP in general)
> so videoconvert will adapt it to another (RGBA), rtp/x264 compatible
> format.
> this might bite you if you plan to manipulate the GRAY8, as GRAY8,
> upstream.
>
> see
> gst-launch-1.0 -v videotestsrc !
> "video/x-raw,format=GRAY8,width=1280,height=720" ! videoflip
> method=vertical-flip ! identity silent=0 ! videoconvert ! identity
> silent=0 ! msdkh264enc ! identity silent=0 ! rtph264pay name=pay0
> pt=96 ! udpsink -v
>
> #from "camera"
> identity0: last-message = chain   ******* (identity0:sink) (921600 bytes,
> ...
> #into decoder
> identity1: last-message = chain   ******* (identity1:sink) (3768320 bytes,
> ...
> #after compression
> identity2: last-message = chain   ******* (identity2:sink) (8389 bytes...
>
> On Sun, Apr 19, 2020 at 12:01 PM Yair Reshef <yair99 at gmail.com> wrote:
> >
> > continued on https://github.com/joshdoe/gst-plugins-vision/issues/30
> <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjoshdoe%2Fgst-plugins-vision%2Fissues%2F30&data=02%7C01%7C%7C2601d2b8497544d9f76b08d7e50f9f33%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637229727574103045&sdata=nUj7dr2diphWDRa9qhD3Il1Hwdr3LNTQNg%2FulSNzC%2F4%3D&reserved=0>
> > tldr:
> > gst-launch-1.0 -v videotestsrc !
> > "video/x-raw,format=GRAY8,width=1280,height=720,framerate=25/1" !
> > videoflip method=vertical-flip ! videoconvert ! x264enc ! rtph264pay
> > name=pay0 pt=96 ! udpsink
> >
> >
> >
> >
> >
> > On Sun, Apr 19, 2020 at 11:46 AM Yair Reshef <yair99 at gmail.com> wrote:
> > >
> > > hi,
> > > 1. you are working on a unmaintained git. it has move to
> gst-plugins-vision
> > > 2. there is no udpsink in your pipeline end
> > >  ! udpsink host=127.0.0.1 port=5000
> > > 3. start with a videotestsrc, check its working, then move to camera.
> > >
> > > On Sun, Apr 19, 2020 at 8:47 AM isshed <isshed.sip at gmail.com> wrote:
> > > >
> > > > Hi All,
> > > >
> > > > I am using a plugin pylonsrc (
> https://github.com/zingmars/gst-pylonsrc
> <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fzingmars%2Fgst-pylonsrc&data=02%7C01%7C%7C2601d2b8497544d9f76b08d7e50f9f33%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637229727574103045&sdata=SdznpyKrh9X6qrY5j%2FLwKGJUA9iFa2RarmpVFC495EU%3D&reserved=0>
> ).
> > > > 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.
> > > >
> > > > harendra at ubuntu:~/$ gst-launch-1.0 -v pylonsrc height=720
> width=1280 fps=25 ! videoflip method=vertical-flip ! videoconvert ! x264enc
> ! rtph264pay name=pay0 pt=96
> > > >
> > > > Setting pipeline to PAUSED ...
> > > > Pipeline is live and does not need PREROLL ...
> > > > Setting pipeline to PLAYING ...
> > > > New clock: GstSystemClock
> > > > /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"
> > > > /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"
> > > > /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"
> > > > /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"
> > > > Redistribute latency...
> > > > /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"
> > > > /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"
> > > > /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"
> > > > /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"
> > > > /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"
> > > > /GstPipeline:pipeline0/GstRtpH264Pay:pay0: timestamp = 153847583
> > > > /GstPipeline:pipeline0/GstRtpH264Pay:pay0: seqnum = 11049
> > > > ERROR: from element /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0:
> Internal data flow error.
> > > > Additional debug info:
> > > > gstbasesrc.c(2948): gst_base_src_loop ():
> /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0:
> > > > streaming task paused, reason not-linked (-1)
> > > > Execution ended after 0:00:10.726250733
> > > > Setting pipeline to PAUSED ...
> > > > Setting pipeline to READY ...
> > > > Setting pipeline to NULL ...
> > > > Freeing pipeline ...
> > > >
> > > >
> > > > Thanks,
> > > > Issac
> > > > _______________________________________________
> > > > gstreamer-devel mailing list
> > > > gstreamer-devel at lists.freedesktop.org
> > > > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fgstreamer-devel&data=02%7C01%7C%7C2601d2b8497544d9f76b08d7e50f9f33%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637229727574113010&sdata=LB4EXVcnjHrHNRP9%2Bq9snfYsO0ENo1Mrr%2BUDZRM8TK8%3D&reserved=0>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fgstreamer-devel&data=02%7C01%7C%7C2601d2b8497544d9f76b08d7e50f9f33%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637229727574113010&sdata=LB4EXVcnjHrHNRP9%2Bq9snfYsO0ENo1Mrr%2BUDZRM8TK8%3D&reserved=0>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200420/7342d88b/attachment-0001.htm>


More information about the gstreamer-devel mailing list