Choppy video when using mp4mux with udpsrc
GStreamer version: 1.21.0, built from source - commit b233df35
Platform: Ubuntu 20.04 in Docker
I have these pipelines which i'm running on the same machine:
gst-launch-1.0 -e -v filesrc location=example_x264.mp4 do-timestamp=true ! qtdemux ! h264parse ! rtph264pay ! multiudpsink clients="127.0.0.1:$PORT"
gst-launch-1.0 -e udpsrc port=$PORT caps="application/x-rtp, encoding-name=(string)H264" ! rtpjitterbuffer mode=0 ! rtph264depay ! h264parse ! mp4mux ! filesink location=result.mp4
The problem is that when I use mp4mux the result.mp4
file contains choppy and slowed video, but everything is fine if I use matroskamux instead.
What i've tried:
- Different latency properties on mp4mux and rtpjitterbuffer
- Replacing rtpjitterbuffer with queue/queue2 kinda helped - resulting video was choppy in one player and OK in VLC
Files attached: