AW: Record UDP stream
Michelle Guo
guolulu_318 at 126.com
Wed Oct 11 05:17:39 UTC 2017
Hi
Sorry for my poor English.
The pipeline I used like this:
gst-launch-1.0 rtpbin name=rtpbin latency=100 \
udpsrc
caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264,payload=(int)96"
port=5000 ! queue ! rtpbin.recv_rtp_sink_0 rtpbin. ! rtph264depay \
! tee name=teevideo teevideo. ! queue ! vpudec ! overlaysink \
teevideo. ! queue !
"video/x-h264,width=1024,height=768,framerate=(fraction)25/1" ! matroskamux
name=mux mux. ! multifilesink location="/home/root/save%d.mkv" next-file=4
post-messages=TRUE max-files=300 max-file-size=10485760
I receive H264 stream from udpsrc, then play video and record H264 data into
several files.
The problem is described like this:
The pipeline works well, but, the files saved in the disk is not playable.
1. The first one save0.mkv can be played by VLC, but can not query duration,
so VLC can not fast forward and rewind.
2. The other files excepet the first one(save1.mkv, save2.mkv...) can not
play by VLC;
Thank you for your reading.
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list