Record UDP stream
Gary Gilbreath
noscgag at yahoo.com
Fri May 19 16:21:16 UTC 2017
You need to split the stream in two with the tee and queue elements.
Here's an example of a working video pipeline that displays and records simultaneously:
gst-launch-1.0 rtspsrc location=rtsp://127.0.0.1:8554/front latency=0 ! tee name=t t. ! queue ! rtph264depay ! avdec_h264 ! fpsdisplaysink sync=false t. ! queue ! rtph264depay ! h264parse ! mpegtsmux ! filesink location="ts.mpg"
You will need to modify it to work with RTP, but that is straightforward. Note that you don't have to re-encode with x264enc unless you want to, but you do need to parse it and wrap it in a muxer.
From: Mattekr <matteozoni at gmail.com>
To: gstreamer-devel at lists.freedesktop.org
Sent: Friday, May 19, 2017 9:04 AM
Subject: Record UDP stream
Hi, I'm a gstreamer newbie.
I would like to see and record a UDP stream from my camera.
I use for see
C:\gstreamer\1.0\x86_64\bin\gst-launch-1.0.exe -e -v udpsrc port=5000 !
application/x-rtp, payload=96 ! rtpjitterbuffer ! rtph264depay ! avdec_h264
! fpsdisplaysink sync=false text-overlay=false
and this for record
C:\gstreamer\1.0\x86_64\bin\gst-launch-1.0.exe -e -v udpsrc port=5000 !
application/x-rtp, payload=96 ! rtpjitterbuffer ! rtph264depay ! avdec_h264
! decodebin ! x264enc ! mp4mux ! filesink
location=C:\\Users\\Progettazione\\Desktop\\file.mp4
All the attempts I made to record and see in one command did not work
For example, I get the error:
WARNING: erroneous pipeline: could not link fpsdisplaysink0 to filesink0
How can I do? Thanks in advance.
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Record-UDP-stream-tp4683050.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
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/20170519/4b770f96/attachment.html>
More information about the gstreamer-devel
mailing list