record H264 stream use multifilesink
guolulu_318 at 126.com
Mon Nov 6 10:20:15 UTC 2017
Thank you for your help before, I solved my problem successfully. In the
record branch, I use the default muxer instead of matroskamux, and save the
file as *.mp4 instead of *.mkv, then, these two branches can work both well
The pipeline is like this:
gst-launch-1.0 rtpbin name=rtpbin \
port=5000 ! queue ! rtpbin.recv_rtp_sink_0 rtpbin. ! rtph264depay ! tee
name=teevideo teevideo. ! queue ! vpudec ! overlaysink async=false \
teevideo. ! queue !
splitmuxsink location="/../data/save%d.mp4" max-files=300
Recently, I find a new problem. The last mp4 file is unplayable, I think
maybe because the splitmuxsink is not be closed. If I use C programe to
explain this pipeline, I use
"gst_object_unref(GST_OBJECT(m_pipeline));" to close the pipeline, and I
hope the splitmuxsink element can be closed by this way, however, the last
mp4 file is still unplayable.
I hope you can give me some advice to close splitmuxsink element and make
the last mp4 file in the playable state. Thank you so much!
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel