I am looking for a way to write an MJPEG video stream to an MP4 file (MPEG-4 Part 14) using GStreamer.
I was able to write the MJPEG stream to an AVI file:
gst-launch-1.0 -e videotestsrc is-live=true ! avenc_mjpeg ! avimux \ ! filesink location=video_test.avi
This makes me feel like this should work:
gst-launch-1.0 -e videotestsrc is-live=true ! avenc_mjpeg ! mp4mux \ ! filesink location=video_test.mp4
However, this pipeline does not work, because the mp4mux element mp4mux not allow image/jpeg within the scope of the SINK.
Is this because the isomp4 plugin isomp4 not fully implement the MP4 container standard or does the standard itself not allow such an input video stream?
source share