editing services: remove video segments without transcoding

Sebastian Dröge sebastian at centricular.com
Thu Feb 6 14:46:38 PST 2014

On Do, 2014-02-06 at 23:14 +0100, Felix Schwarz wrote:
> Hey,
> I have a question regarding the gstreamer editing services (sorry if this is
> the wrong list for these type of questions): I'd like to remove some segments
> of a video file but avoid any transcoding.
> My first approach was to add the source video multiple times to the timeline -
> just changing start, inpoint/duration for each clip.
> Now I'm unsure how/if the editing services will allow me to save the result
> without transcoding (my input files are mostly using h264/avi).
> Probably I need to set "GstPbutils.EncodingContainerProfile" to the same value
> as the input file.
>  1. How can I get that information using gstreamer?

You can do that with GstDiscoverer and

>  2. Assuming that I'm only adding the same video multiple times with
>     different time positions is #1 enough to prevent transcoding?

I'm not sure how complete and well-working the non-reencoding part of
encodebin is implemented. Especially the smart-encoder bits in there
look rather incomplete and if working at all are only implemented for
some specific codecs.

The main problem here is that you will have to reencode some parts at
the beginning and possible end of your clip as e.g. your start position
might not be exactly at a keyframe.

Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140206/a4c0e5cc/attachment.pgp>

More information about the gstreamer-devel mailing list