mpegtsmux problem

Clarke, Trevor tclarke at ball.com
Thu May 28 13:46:20 PDT 2015


I'm attempting to mux a number of h.264 streams into an MPEG TS and write it to disk. I have a bin for each stream which generates the h.264 (data is pushed in via an appsrc, some processing occurs, and the compression is done by either a hardware plugin or x264enc).
The src from each bin is fed into an mpegtsmux and the output goes to a tee with a multifilesink and udpsink.

I'm seeing the appsrc's buffers filling up a lot and I'm thus dropping packets regularly. I looked at the output files and generated timeline plots of the PTS values for each stream (testing with 3 in the example below). The streams are generated a 10fps and the caps for the h.264 streams represent this. Looking at the cache files I see the following (first line represents 0.1 second ticks, where the frames would ideally fall)

Ticks  |          |          |          |         |
Str1   *                              *
Str2                  *                                *
Str3                           *

I'm seeing some expected jitter but it looks like the interleaving is putting 1 frame per tick across all streams not 1 frame per stream per tick. Thoughts on what might be causing this behavior?
----------------------
Trevor R.H. Clarke
Software Engineer, Ball Aerospace
(937)320-7087




This message and any enclosures are intended only for the addressee.  Please 
notify the sender by email if you are not the intended recipient.  If you are 
not the intended recipient, you may not use, copy, disclose, or distribute this 
message or its contents or enclosures to any other person and any such actions 
may be unlawful.  Ball reserves the right to monitor and review all messages 
and enclosures sent to or from this email address.


More information about the gstreamer-devel mailing list