Save live Video using gstreamer command

AniketH nymano86 at aol.com
Thu Jan 7 04:48:24 UTC 2021


Purva wrote
> Hi Aniket,
> 
> I have used below command which you have mentioned:
> 
> gst-launch-1.0 -e udpsrc port=2222 ! decodebin ! tee name=split !
> autovideosink sync=false split. ! queue ! h265parse ! mp4mux ! filesink
> location=file.mp4
> 
> But After starting preview of camera, I am getting below error:
> 
> Setting pipeline to PAUSED ...
> Pipeline is live and does not need PREROLL ...
> Got context from element 'autovideosink0':
> gst.d3d11.device.handle=context,
> device=(GstD3D11Device)"\(GstD3D11Device\)\ d3d11device3", adapter=(int)0;
> Pipeline is PREROLLED ...
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> WARNING: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0:
> Delayed linking failed.
> ERROR: from element /GstPipeline:pipeline0/GstUDPSrc:udpsrc0: Internal
> data
> stream error.
> Additional debug info:
> gst/parse/grammar.y(544): gst_parse_no_more_pads ():
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0:
> failed delayed linking some pad of GstDecodeBin named decodebin0 to some
> pad
> of GstTee named split
> Additional debug info:
> ../libs/gst/base/gstbasesrc.c(3070): gst_base_src_loop ():
> /GstPipeline:pipeline0/GstUDPSrc:udpsrc0:
> streaming stopped, reason not-linked (-1)
> Execution ended after 0:00:17.466240000
> Setting pipeline to NULL ...
> Freeing pipeline ...
> 
> Can you please help me to solve this?
> 
> Thanks,
> Purva
> 
> 
> 
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list

> gstreamer-devel at .freedesktop

> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

I'd suggest you to go through available plugins on your system. This what I
got working on my machine:

gst-launch-1.0 rtspsrc location="rtsp://USER:PASS@IP:PORT" retry=100
latency=0 ! rtph264depay ! h264parse ! tee name=emit ! queue ! mp4mux !
filesink location=file.mp4 emit. ! queue ! h264parse ! avdec_h264 !
videoconvert ! xvimagesink async=false

Above pipeline will work if you're using latest release of gstreamer.
Otherwise, try exploring other plugins for your pipeline formation.





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list