<div dir="ltr">Hi Mark,<br><br> Thanks to GEtrans I can now easily extract a sub part of a movie so that &#39;s cool for my needs.<br><br>** This cammand works fine to cut a sub part of 15 sec of a movie. :P<br><br>entrans.py --ignore-prop &#39;.*sink*.&#39; -s seek-key -c 25-40 --dam -- --raw filesrc location=movie.avi ! avidemux name=demux avimux name=mux ! filesink location=sub.avi demux.video_00 ! queue ! dam ! queue ! mux.video_0 demux.audio_00 ! queue ! dam ! queue ! mux.audio_00<br>
<br>** The following seems to work but I cannot play the result sub2.avi:<br><br>entrans.py --ignore-prop &#39;.*sink.*&#39; -s seek-key -c 25-40 --dam -- --raw filesrc location=movie.avi ! avidemux ! queue ! dam ! queue ! avimux ! filesink location=sub2.avi<br>
<br>** And the following causes a seg fault:<br><br>entrans.py --ignore-prop &#39;.*sink.*&#39; -s seek-key -c 25-40 --dam -- --raw filesrc location=movie.avi ! avidemux ! dam ! avimux ! filesink location=sub3.avi<br><br>
I am sure I am not using correctly entrans in the 2 last pipelines :P<br><br>(Also it was cool to see an element &quot;detectinter&quot; ...)<br><br>Sincerely<br><br>J.I.<br><br><br><div class="gmail_quote">2008/9/11 Mark Nauwelaerts <span dir="ltr">&lt;<a href="mailto:manauw@skynet.be">manauw@skynet.be</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
The exception is most likely an effect of bug<br>
<a href="http://bugzilla.gnome.org/show_bug.cgi?id=540221" target="_blank">http://bugzilla.gnome.org/show_bug.cgi?id=540221</a>, the fix for which may not be<br>
present in your gst-python (or otherwise another bug very much like it :) )<br>
<br>
It can be worked around (IIRC) by adding the option --ignore-prop &#39;.*sink.*&#39;<br>
(so it does not access the sink&#39;s property leading to the crash).<br>
<br>
I also have some doubts about the chances for success of the pipeline<br>
(e.g. no dam in it, entrans uses this element to direct the seek to ...)<br>
Using a more &quot;conventional&quot; pipeline as exampled in the link mentioned below may<br>
be advisable.<br>
<br>
Mark.<br>
<div class="Ih2E3d"><br>
Julien Isorce wrote:<br>
&gt; Hi Florent,<br>
&gt;<br>
&gt; Sounds good but when I tried this :<br>
&gt;<br>
&gt; (movie.avi is about 1 min)<br>
&gt;<br>
&gt; entrans.py -s seek-key -c 25-50 -- --raw filesrc location=movie.avi !<br>
&gt; avidemux ! avimux ! filesink location=submovie.avi<br>
&gt;<br>
&gt; I got:<br>
&gt;<br>
&gt; 0:00:00.057245653 23852 &nbsp;0x8270cc8 ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; python<br>
&gt; entrans.py:2354:excepthook:<br>
&gt; &nbsp; File &quot;entrans.py&quot;, line 1825, in cb_started<br>
&gt; &nbsp; &nbsp; walk = self.walk_pipeline(self.nonlin.pipeline)<br>
&gt; &nbsp; File &quot;entrans.py&quot;, line 1780, in walk_pipeline<br>
</div>&gt; &nbsp; &nbsp; clone_element(element).get_property(<a href="http://pspec.name" target="_blank">pspec.name</a> &lt;<a href="http://pspec.name" target="_blank">http://pspec.name</a>&gt;)):<br>
<div class="Ih2E3d">&gt;<br>
&gt; SystemError: error return without exception set<br>
&gt;<br>
&gt; &lt;&lt;&lt;&lt; Now reached PLAYING state &gt;&gt;&gt;&gt;<br>
&gt; 0:00:00.060644767 23852 &nbsp;0x8270cc8 ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; python<br>
&gt; entrans.py:2354:excepthook:<br>
&gt; &nbsp; File &quot;entrans.py&quot;, line 1902, in cb_playing<br>
&gt; &nbsp; &nbsp; walk = self.walk_pipeline(self.nonlin.pipeline)<br>
&gt; &nbsp; File &quot;entrans.py&quot;, line 1780, in walk_pipeline<br>
</div>&gt; &nbsp; &nbsp; clone_element(element).get_property(<a href="http://pspec.name" target="_blank">pspec.name</a> &lt;<a href="http://pspec.name" target="_blank">http://pspec.name</a>&gt;)):<br>
<div class="Ih2E3d">&gt;<br>
&gt; SystemError: error return without exception set<br>
&gt;<br>
&gt;<br>
&gt; I am sure I am doing something wrong.<br>
&gt; I compiled gentrans myself so maybe I have not all the dependencies.<br>
&gt;<br>
&gt; Any help ?<br>
&gt;<br>
&gt; (why dam this : Cannot set property on dam0 before streaming has started ?)<br>
&gt;<br>
&gt; thx<br>
&gt;<br>
&gt; Julien<br>
&gt;<br>
&gt;<br>
</div>&gt; 2008/9/11 Florent &lt;<a href="mailto:fthiery@gmail.com">fthiery@gmail.com</a> &lt;mailto:<a href="mailto:fthiery@gmail.com">fthiery@gmail.com</a>&gt;&gt;<br>
<div class="Ih2E3d">&gt;<br>
&gt; &nbsp; &nbsp; Hi Julien;<br>
&gt;<br>
&gt; &nbsp; &nbsp; Did you take a look at gentrans ?<br>
&gt;<br>
&gt; &nbsp; &nbsp; C.f. &quot;Example 2.5. Pass-through transcoding&quot; in<br>
&gt; &nbsp; &nbsp; <a href="http://gentrans.sourceforge.net/docs/head/manual/html/entrans.html" target="_blank">http://gentrans.sourceforge.net/docs/head/manual/html/entrans.html</a><br>
&gt;<br>
&gt; &nbsp; &nbsp; Florent<br>
&gt;<br>
&gt; &nbsp; &nbsp; -------------------------------------------------------------------------<br>
&gt; &nbsp; &nbsp; This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s<br>
&gt; &nbsp; &nbsp; challenge<br>
&gt; &nbsp; &nbsp; Build the coolest Linux based applications with Moblin SDK &amp; win<br>
&gt; &nbsp; &nbsp; great prizes<br>
&gt; &nbsp; &nbsp; Grand prize is a trip for two to an Open Source event anywhere in<br>
&gt; &nbsp; &nbsp; the world<br>
&gt; &nbsp; &nbsp; <a href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</a><br>
&gt; &nbsp; &nbsp; &lt;<a href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</a>&gt;<br>
&gt; &nbsp; &nbsp; _______________________________________________<br>
&gt; &nbsp; &nbsp; gstreamer-devel mailing list<br>
&gt; &nbsp; &nbsp; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
</div>&gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>&gt;<br>
<div class="Ih2E3d">&gt; &nbsp; &nbsp; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
</div>&gt; ------------------------------------------------------------------------<br>
<div><div></div><div class="Wj3C7c">&gt;<br>
&gt; -------------------------------------------------------------------------<br>
&gt; This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s challenge<br>
&gt; Build the coolest Linux based applications with Moblin SDK &amp; win great prizes<br>
&gt; Grand prize is a trip for two to an Open Source event anywhere in the world<br>
&gt; <a href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</a><br>
&gt;<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; gstreamer-devel mailing list<br>
&gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
&gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br>
-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s challenge<br>
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br>
<a href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br></div>