<div dir="ltr"><div><div>Hello,<br><br></div>You will also need to set the GESPipeline "mode" property to GES_TIMELINE_MODE_SMART_RENDER so it tries to avoid reencoding when not necessary.<br><br></div>Thibault<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 6, 2014 at 11:46 PM, Sebastian Dröge <span dir="ltr"><<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Do, 2014-02-06 at 23:14 +0100, Felix Schwarz wrote:<br>
> Hey,<br>
><br>
> I have a question regarding the gstreamer editing services (sorry if this is<br>
> the wrong list for these type of questions): I'd like to remove some segments<br>
> of a video file but avoid any transcoding.<br>
><br>
> My first approach was to add the source video multiple times to the timeline -<br>
> just changing start, inpoint/duration for each clip.<br>
><br>
> Now I'm unsure how/if the editing services will allow me to save the result<br>
> without transcoding (my input files are mostly using h264/avi).<br>
><br>
> Probably I need to set "GstPbutils.EncodingContainerProfile" to the same value<br>
> as the input file.<br>
>  1. How can I get that information using gstreamer?<br>
<br>
</div>You can do that with GstDiscoverer and<br>
gst_encoding_profile_from_discoverer()<br>
<div class="im"><br>
>  2. Assuming that I'm only adding the same video multiple times with<br>
>     different time positions is #1 enough to prevent transcoding?<br>
<br>
</div>I'm not sure how complete and well-working the non-reencoding part of<br>
encodebin is implemented. Especially the smart-encoder bits in there<br>
look rather incomplete and if working at all are only implemented for<br>
some specific codecs.<br>
<br>
The main problem here is that you will have to reencode some parts at<br>
the beginning and possible end of your clip as e.g. your start position<br>
might not be exactly at a keyframe.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Sebastian Dröge, Centricular Ltd - <a href="http://www.centricular.com" target="_blank">http://www.centricular.com</a><br>
Expertise, Straight from the Source<br>
</font></span><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>