[gst-devel] sub part of a movie

Julien Isorce julien.isorce at gmail.com
Fri Sep 12 11:10:38 CEST 2008


Hi Mark,

Thanks to GEtrans I can now easily extract a sub part of a movie so that 's
cool for my needs.

** This cammand works fine to cut a sub part of 15 sec of a movie. :P

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

** The following seems to work but I cannot play the result sub2.avi:

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

** And the following causes a seg fault:

entrans.py --ignore-prop '.*sink.*' -s seek-key -c 25-40 --dam -- --raw
filesrc location=movie.avi ! avidemux ! dam ! avimux ! filesink
location=sub3.avi

I am sure I am not using correctly entrans in the 2 last pipelines :P

(Also it was cool to see an element "detectinter" ...)

Sincerely

J.I.


2008/9/11 Mark Nauwelaerts <manauw at skynet.be>

>
> The exception is most likely an effect of bug
> http://bugzilla.gnome.org/show_bug.cgi?id=540221, the fix for which may
> not be
> present in your gst-python (or otherwise another bug very much like it :) )
>
> It can be worked around (IIRC) by adding the option --ignore-prop
> '.*sink.*'
> (so it does not access the sink's property leading to the crash).
>
> I also have some doubts about the chances for success of the pipeline
> (e.g. no dam in it, entrans uses this element to direct the seek to ...)
> Using a more "conventional" pipeline as exampled in the link mentioned
> below may
> be advisable.
>
> Mark.
>
> Julien Isorce wrote:
> > Hi Florent,
> >
> > Sounds good but when I tried this :
> >
> > (movie.avi is about 1 min)
> >
> > entrans.py -s seek-key -c 25-50 -- --raw filesrc location=movie.avi !
> > avidemux ! avimux ! filesink location=submovie.avi
> >
> > I got:
> >
> > 0:00:00.057245653 23852  0x8270cc8 ERROR               python
> > entrans.py:2354:excepthook:
> >   File "entrans.py", line 1825, in cb_started
> >     walk = self.walk_pipeline(self.nonlin.pipeline)
> >   File "entrans.py", line 1780, in walk_pipeline
> >     clone_element(element).get_property(pspec.name <http://pspec.name
> >)):
> >
> > SystemError: error return without exception set
> >
> > <<<< Now reached PLAYING state >>>>
> > 0:00:00.060644767 23852  0x8270cc8 ERROR               python
> > entrans.py:2354:excepthook:
> >   File "entrans.py", line 1902, in cb_playing
> >     walk = self.walk_pipeline(self.nonlin.pipeline)
> >   File "entrans.py", line 1780, in walk_pipeline
> >     clone_element(element).get_property(pspec.name <http://pspec.name
> >)):
> >
> > SystemError: error return without exception set
> >
> >
> > I am sure I am doing something wrong.
> > I compiled gentrans myself so maybe I have not all the dependencies.
> >
> > Any help ?
> >
> > (why dam this : Cannot set property on dam0 before streaming has started
> ?)
> >
> > thx
> >
> > Julien
> >
> >
> > 2008/9/11 Florent <fthiery at gmail.com <mailto:fthiery at gmail.com>>
> >
> >     Hi Julien;
> >
> >     Did you take a look at gentrans ?
> >
> >     C.f. "Example 2.5. Pass-through transcoding" in
> >     http://gentrans.sourceforge.net/docs/head/manual/html/entrans.html
> >
> >     Florent
> >
> >
> -------------------------------------------------------------------------
> >     This SF.Net email is sponsored by the Moblin Your Move Developer's
> >     challenge
> >     Build the coolest Linux based applications with Moblin SDK & win
> >     great prizes
> >     Grand prize is a trip for two to an Open Source event anywhere in
> >     the world
> >     http://moblin-contest.org/redirect.php?banner_id=100&url=/
> >     <http://moblin-contest.org/redirect.php?banner_id=100&url=/>
> >     _______________________________________________
> >     gstreamer-devel mailing list
> >     gstreamer-devel at lists.sourceforge.net
> >     <mailto:gstreamer-devel at lists.sourceforge.net>
> >     https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> > Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the
> world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20080912/cdc10178/attachment.htm>


More information about the gstreamer-devel mailing list