Write stream to file and play it simultaneously.
Ilya Averyanov
averyanovin at gmail.com
Mon Dec 9 02:42:41 PST 2013
I try to save and play h264 rtp stream simultaneously.
In 0.10 version i use
gst-launch-0.10 udpsrc port=3000 ! 'application/x-rtp,
sprop-parameter-sets=(string)'\"Z2QAKK2EBUViuKxUdCAqKxXFYqOhAVFYrisVHQgKisVxWKjoQFRWK4rFR0ICorFcVio6ECSFITk8nyfk/k/J8nm5s00IEkKQnJ5Pk/J/J+T5PNzZprQCgC3I\\,aO48sA\\=\\=\"',
payload=(int)96' ! rtph264depay ! tee name=t ! h264parse ! matroskamux !
filesink location=tmp.mkv t. ! queue max-size-buffers=0 max-size-bytes=0
max-size-time=0 ! ffdec_h264 ! autovideosink
this pipeline and it's work fine.
But if i try use 1.0 version with this pipleine
gst-launch-1.0 udpsrc port=3000 ! 'application/x-rtp,
sprop-parameter-sets=(string)'\"Z2QAKK2EBUViuKxUdCAqKxXFYqOhAVFYrisVHQgKisVxWKjoQFRWK4rFR0ICorFcVio6ECSFITk8nyfk/k/J8nm5s00IEkKQnJ5Pk/J/J+T5PNzZprQCgC3I\\,aO48sA\\=\\=\"',
payload=(int)96' ! rtph264depay ! tee name=t ! h264parse ! matroskamux !
filesink location=tmp.mkv t. ! queue max-size-buffers=0 max-size-bytes=0
max-size-time=0 ! avdec_h264 ! autovideosink
i get nothing.
I also try just save stream with 1.0 version.
Using
gst-launch-1.0 udpsrc port=3000 ! 'application/x-rtp,
sprop-parameter-sets=(string)'\"Z2QAKK2EBUViuKxUdCAqKxXFYqOhAVFYrisVHQgKisVxWKjoQFRWK4rFR0ICorFcVio6ECSFITk8nyfk/k/J8nm5s00IEkKQnJ5Pk/J/J+T5PNzZprQCgC3I\\,aO48sA\\=\\=\"',
payload=(int)96' ! rtph264depay ! tee name=t ! h264parse ! matroskamux !
filesink location=tmp.mkv
File writing and have correct size, but i can't play it.
If change matroskamux to avimux i get this error:
ERROR: from element /GstPipeline:pipeline0/GstUDPSrc:udpsrc0: Internal data
flow error.
Additional debug info:
gstbasesrc.c(2865): gst_base_src_loop ():
/GstPipeline:pipeline0/GstUDPSrc:udpsrc0:
streaming task paused, reason not-negotiated (-4)
Execution ended after 0:00:00.043653442
The error is the same as in 1.0 and 0.10 version.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131209/784a8809/attachment.html>
More information about the gstreamer-devel
mailing list