mp4mux not working for MJPEG Stream

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

mp4mux not working for MJPEG Stream

kepitto
I want to capture an MJPEG stream over UDP and save it in a MP4 file without
transcoding. However it seems like mp4mux does not support MJPEG is that
correct or am I doing something wrong?

I am trying the following pipeline:

gst-launch-1.0 udpsrc port=xxxx ! jpegparse ! mp4mux ! filesink
location=test.mp4

I get the error: Could not link jpegparse to mp4mux

The same Pipeline works with other containerformats like matroskamux or
avimux.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: mp4mux not working for MJPEG Stream

gotsring
Does using qtmux work? I currently can't test this.

Based on the details of mp4mux (gst-inspect-1.0 mp4mux), it doesn't look
like mjpeg is supported. I'm not sure if that's just because GStreamer never
implemented this, or if it's a limitation of the actual MP4 container.




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: mp4mux not working for MJPEG Stream

Michael Gruner
In reply to this post by kepitto
Mp4mux does not support MJPEG. You may try out qtmux instead, which is a MOV container. MOV is the predecessor of MP4. Nowdays you can almost use them interchangeably.

Also, be aware that both qtmux and mp4mux require an EOS event in order to produce a playable file. You can achieve this by adding the ā€œ-eā€ to gst-launch-1.0.

> On 23 Feb 2021, at 04:30, kepitto <[hidden email]> wrote:
>
> I want to capture an MJPEG stream over UDP and save it in a MP4 file without
> transcoding. However it seems like mp4mux does not support MJPEG is that
> correct or am I doing something wrong?
>
> I am trying the following pipeline:
>
> gst-launch-1.0 udpsrc port=xxxx ! jpegparse ! mp4mux ! filesink
> location=test.mp4
>
> I get the error: Could not link jpegparse to mp4mux
>
> The same Pipeline works with other containerformats like matroskamux or
> avimux.
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel