multifilesink - how to interpret values sent via bus message?
Ralph Heinkel
ralph.heinkel at web.de
Tue Dec 6 11:00:37 PST 2011
Hi,
I'm (successfully) splitting a video from a DVD into separate files
using 'multifilesink', by splitting at every new key frame.
The command I used is shown below.
What I need to do is to keep track of the produced files, and in
particular I'm interested to get timestamp (when the file was
produced) and duration of the individual files.
However when looking at the messages produced by multifilesink all
junks seem to have identical durations, offsets etc (of absurd high
values). Also the timestamp is just increasing in discrete steps. And
this is even though all junks have slightly different sizes (around
10secs +/- 1).
Can anybody help? (I'm a bloody beginner with gstreamer, so please
help me with 'basic' explanations ;-)
Thanks a lot,
Ralph
PS: I'm using gstreamer 0.10.35 on legacy opensuse 12.1 on a 32bit
machine.
-------------------
My call:
gst-launch -m dvdreadsrc title=2 ! multifilesink next-file=2
location='m-%05d.ts' post-messages=true
The log:
[...]
Got message #24 from element "multifilesink0" (element):
GstMultiFileSink, filename=(string)m-00000.ts, index=(int)0,
timestamp=(guint64)10000000000, stream-time=(guint64)10000000000,
running-time=(guint64)10000000000,
duration=(guint64)18446744073709551615,
offset=(guint64)18446744073709551615,
offset-end=(guint64)18446744073709551615;
Got message #25 from element "multifilesink0" (element):
GstMultiFileSink, filename=(string)m-00001.ts, index=(int)1,
timestamp=(guint64)20000000000, stream-time=(guint64)20000000000,
running-time=(guint64)20000000000,
duration=(guint64)18446744073709551615,
offset=(guint64)18446744073709551615,
offset-end=(guint64)18446744073709551615;
Got message #26 from element "multifilesink0" (element):
GstMultiFileSink, filename=(string)m-00002.ts, index=(int)2,
timestamp=(guint64)30000000000, stream-time=(guint64)30000000000,
running-time=(guint64)30000000000,
duration=(guint64)18446744073709551615,
offset=(guint64)18446744073709551615,
offset-end=(guint64)18446744073709551615;
More information about the gstreamer-devel
mailing list