Trouble getting fully valid files with matroskamux
Pedro Côrte-Real
pedro at pedrocr.net
Fri Jan 3 11:02:22 PST 2014
On Thu, Jan 2, 2014 at 5:21 PM, Pedro Côrte-Real <pedro at pedrocr.net> wrote:
> My guess is that something is introducing an EOS marker in the h264
> stream itself. My pipeline is matroskademux ! matroskamux so maybe
> matroskademux outputs some form of an EOF marker on the stream itself
> before it sends EOS to the pipeline?
The problem was simpler than this. matroskamux will use whatever
timestamp the pipeline is using, which will be the wrong one when I
swap files. The solution was to alter the timestamps in the data probe
to be consistent between file changes.
Working code for file split and file join is here:
https://github.com/pedrocr/camerasink/blob/66be9cad5c279689b37b56e8b378e2b858da3824/bin/testread.c
https://github.com/pedrocr/camerasink/blob/edbe35e11a935fd0ab2c4eab82372c2d03790501/bin/testsave.c
While looking at this with slomo on IRC we also discovered two bugs:
1) matroskamux uses timestamps directly instead of converting to
running time (for this slomo produced a patch)
2) negative pad offsets don't actually work
(https://bugzilla.gnome.org/show_bug.cgi?id=721422)
Pedro
More information about the gstreamer-devel
mailing list