GNOME Bugzilla – Bug 644151
[multifilesink] Add option to create a new file after each GstForceKeyUnit event
Last modified: 2011-12-01 13:06:23 UTC
Created attachment 182759 [details] [review] Add option to create a new file after each GstForceKeyUnit event Useful for fragmented streaming, this allow segmenting on each GstForceKeyUnit event.
This patch has a mistake, let me fix it first.
Created attachment 182760 [details] [review] Add option to create a new file after each GstForceKeyUnit event
I'm not convinced this is the right approach, you also need the muxer to cooperate.
I have submitted one for the matroska muxer for the moment.
I'm not convinced this is the right approach, either. But I'm not opposed to applying the patch to multifilesink. One detail, however: change the name of the enum to "key unit event". "key unit" means the same thing as "key frame". (At some point in the distant past, someone decided that "frame" was too specific and called it "unit" instead, rather than the other accepted term, "random access point".)
I would really prefer to have a standard event in the video library first (see bug #607742). All this voodo on matching a event name is ugly, really.
Created attachment 182766 [details] [review] Add option to create a new file after each GstForceKeyUnit event I just want to have this property for testing purpose, I don't think either it should be used for anything else, and I think it's more useful than the keyframe one for mpegts segmenting.
(In reply to comment #6) > I would really prefer to have a standard event in the video library first (see > bug #607742). All this voodo on matching a event name is ugly, really. +1 This should be a standard event
Created attachment 192149 [details] [review] Reworked patch I reworked the patch to apply on git and match the new force-key-unit event API.
Guess this is fixed now: commit ed987552415dad43041291f0210876e39e13c8cd Author: Alessandro Decina <alessandro.d@gmail.com> Date: Sun Jul 17 23:56:04 2011 +0200 multifilesink: add flag to cut after a force key unit event