qtdemux: odd corruption in push mode
Describe your issue
I'm making a program that remuxes videos, I got a bug report that one of them came out corrupted. The program uses gstreamer and push-mode appsrc internally.
Expected Behavior
Output is identical to the input.
Observed Behavior
Output is corrupted, like there's a missing keyframe or something.
Setup
- Operating System: Windows 10
- Device: Computer
- GStreamer Version: 1.20.4 MSVC 64-bit
-
Command line:
gst-launch-1.0 pushfilesrc location=issue.mp4 ! qtdemux ! mp4mux faststart=true ! filesink location="out.mp4"
Steps to reproduce the bug
- download issue.mp4 (originally from https://www.youtube.com/watch?v=hVq6eD6-U00)
- type
gst-launch-1.0 pushfilesrc location=issue.mp4 ! qtdemux ! mp4mux faststart=true ! filesink location="out.mp4"
How reproducible is the bug?
Always
Screenshots if relevant
Solutions you have tried
Regular pull-mode gst-launch-1.0 filesrc location=issue.mp4 ! qtdemux ! mp4mux faststart=true ! filesink location="out.mp4"
works just fine
Additional Information
GST_DEBUG=4 gst-launch-1.0 pushfilesrc location=issue.mp4 ! qtdemux ! mp4mux faststart=true ! f ilesink location="out.mp4" > log.txt 2>&1
log.txt