Splitting qtmux with multiple video streams into a series of files
I'm looking to record 2x video and 1x audio stream into a single file using
qtmux. I can successfully generate a file containing 2x video and 1x audio
stream with the following command:
[Note: The example runs on an iMX6, but I don't think my problem is
videotestsrc name="video_hd" pattern=ball num-buffers=250 ! video/x-raw,
format="RGB", framerate=25/1, width=1280, height=960 ! imxvideoconvert_ipu !
vpuenc_h264 ! h264parse ! queue ! muxer.video_0
videotestsrc name="video_sd" pattern=ball num-buffers=250 ! video/x-raw,
format="RGB", framerate=25/1, width=640, height=480 ! imxvideoconvert_ipu !
vpuenc_h264 ! h264parse ! queue ! muxer.video_1
audiotestsrc name="audio_common" num-buffers=425 ! imxmp3enc ! muxer.audio_0
qtmux name="muxer" ! filesink location=video.mov
This only works as I've used the num-buffers parameters on each stream to
get the muxer to finish the file after a period of time.
I want to record continuous feeds (2x video + 1x audio) and split it up into
a series of small files (e.g. a new file every 10 seconds). I would normally
use a splitmuxsink to do this,
using the max-size-time parameter. For example, I can create a series of
files containing a single video and audio stream with: