[gst-devel] Implementing a MPEGTS segmenter, what's the best approach?

David Schleef ds at entropywave.com
Fri Dec 31 08:23:36 CET 2010


On Thu, Dec 30, 2010 at 08:35:21PM -0800, David Zhao wrote:
> Hello,
> 
> I'm trying to build a GStreamer plugin that would produce segments of MPEGTS
> files, each with a fixed duration. This is to create TS segments for the
> Apple HTTP live streaming protocol. I'm fairly new to developing for
> GStreamer and have a basic understanding of how it works.
> 
> The approach I had in mind is to create a plugin that includes both
> mpegtsmux and filesink. Within that plugin, it could produce individual ts
> files when certain duration is accumulated.
> 
> Is this feasible? Is there another way to do this without having to
> replicate code that's already in mpegtsmux and filesink?

gst-launch ... ! mpegtsmux ! multifilesink next-file=key-frame \
    location=%05d.ts



David





More information about the gstreamer-devel mailing list