I have a problem saving the MJPEG stream to a file. When I pass MJPEG using such a pipeline:
gst-launch filesrc location=thirdmovie640x360.mp4 ! decodebin2 name=dec \ ! queue ! ffmpegcolorspace ! jpegenc ! queue ! avimux name=mux \ ! udpsink host=192.168.0.2 port=5000
I can play this stream on my second machine using a pipeline like this:
gst-launch -v udpsrc port=5000 ! jpegdec ! autovideosink
However, how can I save the MJPEG stream to a file (without transcoding!) That can be played on some kind of media player? Could you recommend some kind of conveyor?
I found such a pipeline to save the output stream as a matroska file:
gst-launch udpsrc port=5000 ! multipartdemux ! jpegparse ! jpegdec \ ! ffmpegcolorspace ! matroskamux ! filesink location=output.mkv
How to change it to save mp4 file? Such a pipeline:
gst-launch udpsrc port=5000 ! multipartdemux ! jpegparse ! jpegdec \ ! ffmpegcolorspace ! mp4mux ! filesink location=output.mp4
does not work. Could you help me save it as mp4 contener (or avi contener) without transcoding MJPEG video.
source share