<div dir="ltr">Hi Mark,<br><br> Thanks to GEtrans I can now easily extract a sub part of a movie so that '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 '.*sink*.' -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 '.*sink.*' -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 '.*sink.*' -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 "detectinter" ...)<br><br>Sincerely<br><br>J.I.<br><br><br><div class="gmail_quote">2008/9/11 Mark Nauwelaerts <span dir="ltr"><<a href="mailto:manauw@skynet.be">manauw@skynet.be</a>></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 '.*sink.*'<br>
(so it does not access the sink'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 "conventional" pipeline as exampled in the link mentioned below may<br>
be advisable.<br>
<br>
Mark.<br>
<div class="Ih2E3d"><br>
Julien Isorce wrote:<br>
> Hi Florent,<br>
><br>
> Sounds good but when I tried this :<br>
><br>
> (movie.avi is about 1 min)<br>
><br>
> entrans.py -s seek-key -c 25-50 -- --raw filesrc location=movie.avi !<br>
> avidemux ! avimux ! filesink location=submovie.avi<br>
><br>
> I got:<br>
><br>
> 0:00:00.057245653 23852 0x8270cc8 ERROR python<br>
> entrans.py:2354:excepthook:<br>
> File "entrans.py", line 1825, in cb_started<br>
> walk = self.walk_pipeline(self.nonlin.pipeline)<br>
> File "entrans.py", line 1780, in walk_pipeline<br>
</div>> clone_element(element).get_property(<a href="http://pspec.name" target="_blank">pspec.name</a> <<a href="http://pspec.name" target="_blank">http://pspec.name</a>>)):<br>
<div class="Ih2E3d">><br>
> SystemError: error return without exception set<br>
><br>
> <<<< Now reached PLAYING state >>>><br>
> 0:00:00.060644767 23852 0x8270cc8 ERROR python<br>
> entrans.py:2354:excepthook:<br>
> File "entrans.py", line 1902, in cb_playing<br>
> walk = self.walk_pipeline(self.nonlin.pipeline)<br>
> File "entrans.py", line 1780, in walk_pipeline<br>
</div>> clone_element(element).get_property(<a href="http://pspec.name" target="_blank">pspec.name</a> <<a href="http://pspec.name" target="_blank">http://pspec.name</a>>)):<br>
<div class="Ih2E3d">><br>
> SystemError: error return without exception set<br>
><br>
><br>
> I am sure I am doing something wrong.<br>
> I compiled gentrans myself so maybe I have not all the dependencies.<br>
><br>
> Any help ?<br>
><br>
> (why dam this : Cannot set property on dam0 before streaming has started ?)<br>
><br>
> thx<br>
><br>
> Julien<br>
><br>
><br>
</div>> 2008/9/11 Florent <<a href="mailto:fthiery@gmail.com">fthiery@gmail.com</a> <mailto:<a href="mailto:fthiery@gmail.com">fthiery@gmail.com</a>>><br>
<div class="Ih2E3d">><br>
> Hi Julien;<br>
><br>
> Did you take a look at gentrans ?<br>
><br>
> C.f. "Example 2.5. Pass-through transcoding" in<br>
> <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>
><br>
> Florent<br>
><br>
> -------------------------------------------------------------------------<br>
> This SF.Net email is sponsored by the Moblin Your Move Developer's<br>
> challenge<br>
> Build the coolest Linux based applications with Moblin SDK & win<br>
> great prizes<br>
> Grand prize is a trip for two to an Open Source event anywhere in<br>
> the world<br>
> <a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
> <<a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a>><br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
</div>> <mailto:<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>><br>
<div class="Ih2E3d">> <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
><br>
><br>
><br>
</div>> ------------------------------------------------------------------------<br>
<div><div></div><div class="Wj3C7c">><br>
> -------------------------------------------------------------------------<br>
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
> Build the coolest Linux based applications with Moblin SDK & 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&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
><br>
><br>
> ------------------------------------------------------------------------<br>
><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>
<br>
-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
Build the coolest Linux based applications with Moblin SDK & 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&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&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>