Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Python and Gstreamer Problem

  1. #1
    Join Date
    Mar 2007
    Location
    #
    Beans
    737

    [solved] Python and Gstreamer Problem

    #
    Last edited by regomodo; January 23rd, 2010 at 08:52 PM. Reason: solved
    Is this for enhancing your E-peen?

  2. #2
    Join Date
    Mar 2006
    Beans
    837

    Re: Python and Gstreamer Problem

    I don't know python but I think I can follow your logic. I suggest you do this in load() :
    1.After you have set the file-location on file-src, you should put file-src in paused mode. After that put decoderbin in paused mode(this will emit the pad-added signal.
    2.In OnDynamicPad first put the converter and the sink in paused mode. Then connect the pad to the converter src-pad.

    After that it should start playing on play()

  3. #3
    Join Date
    Mar 2007
    Location
    #
    Beans
    737

    Re: Python and Gstreamer Problem

    #
    Last edited by regomodo; January 23rd, 2010 at 08:52 PM.
    Is this for enhancing your E-peen?

  4. #4
    Join Date
    Mar 2006
    Beans
    837

    Re: Python and Gstreamer Problem

    Dont forget that a pipeline is a gstelement itself. So I supposed you should do something like this for the file-src
    Code:
    self.filesrc.set_state(gst.STATE_PAUSED)
    If this doesn't work, can you point me to the python-gst docs?

  5. #5
    Join Date
    Mar 2007
    Location
    #
    Beans
    737

    Re: Python and Gstreamer Problem

    #
    Last edited by regomodo; January 23rd, 2010 at 08:52 PM.
    Is this for enhancing your E-peen?

  6. #6
    Join Date
    Mar 2007
    Location
    #
    Beans
    737

    Re: Python and Gstreamer Problem

    #
    Last edited by regomodo; January 23rd, 2010 at 08:52 PM.
    Is this for enhancing your E-peen?

  7. #7
    Join Date
    Mar 2006
    Beans
    837

    Re: Python and Gstreamer Problem

    Does the print "OnDynamicPad called!" ever get called?

  8. #8
    Join Date
    Mar 2006
    Beans
    837

    Re: Python and Gstreamer Problem

    I think I spotted the actual problem.

    Code:
    file_now = "file://%s" % fname
    get rid of the "file://"

  9. #9
    Join Date
    Mar 2007
    Location
    #
    Beans
    737

    Re: Python and Gstreamer Problem

    #
    Last edited by regomodo; January 23rd, 2010 at 08:53 PM.
    Is this for enhancing your E-peen?

  10. #10
    Join Date
    Mar 2006
    Beans
    837

    Re: Python and Gstreamer Problem

    I suppose you are getting the same segfault now, with the changes I proposed right?

    How about first setting the location of filesrc, then PAUSING it and then linking it to decodebin?

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •