multifilesink - how to interpret values sent via bus message?

Nezer Zaidenberg nezer at videocells.com
Wed Dec 7 06:38:31 PST 2011


Hi Ralph,

I think what you need is non-linear editing. There is a project called
gnonlin which is a part of gstreamer and does just that. It can cut a movie
into multiple parts in any manner you like.
If you are only using it for one dvd you could also check out VLMC
(VideoLan Movie Creator) which has a nice gui for non-linear editing.
After you do this, you get multiple movies (as the parts of the original),
which you can query (using gstreamer for instance) for duration.

If this still doesn't help, and you want to pursue the original solution,
could you post your pipeline for reference?

Best regards,
   Nezer

On Tue, Dec 6, 2011 at 9:00 PM, Ralph Heinkel <ralph.heinkel at web.de> wrote:

> 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;
>
> ______________________________**_________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.**freedesktop.org<gstreamer-devel at lists.freedesktop.org>
> http://lists.freedesktop.org/**mailman/listinfo/gstreamer-**devel<http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20111207/a3db37d7/attachment-0001.htm>


More information about the gstreamer-devel mailing list