gstreamer splitmuxsink keep output file in memory, appsink?

hassanctech hassan86 at gmail.com
Thu May 17 22:21:38 UTC 2018


I have a gstreamer pipeline with a splitmuxsink using an mp4muxer and the
sink is an appsink.  What I'm hoping to do is in the new-sample event
handler I want to receive the entire finished mp4 file in a buffer and
instead of saving it locally to a file I want to upload it somewhere.  If I
replace the appsink with a filesink everything works fine.  But I change the
sink property of the splitmuxsink to be an appsink I get: 

Error received from element mp4mux: Downstream is not seekable - will not be
able to create a playable file
Debugging information: gstqtmux.c(2127): gst_qt_mux_start_file ():
/GstPipeline:a-pipeline/GstSplitMuxSink:a_splitmuxsink/GstMP4Mux:mp4mux

What I want is for the new-sample handler to get invoked every time I have a
fully formed mp4 file, but the pipeline just stops after about 2-3 seconds
with the above error so having the appsink element is somehow causing the
pipeline to get jammed and error out.  Any ideas/help here would be greatly
appreciated!



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


More information about the gstreamer-devel mailing list