Re: Help with gstreamer for python needed
Andreas Hennig wrote: Hi All! Does one of you have expirience with gstreamer? I use gstreamer for my music player pyRok. Initialy it works fine but after a while it locks up and i don't see a reason. There is no error message ot something. The music just stops. I compared pyRok with pythm but i cant see any difference regarding gstreamer. PyRok uses pygame as UI. Maybe pygame interfeares with gstreamer somehow... Maybe somebody have an idea... You can get very detailed debugging information from gstreamer by setting the GST_DEBUG environment variable. export GST_DEBUG=3 before running you application for a moderate amount of information, 5 for a lot of information. You can use GST_DEBUG_NO_COLOR=1 if you want to redirect the output to a file without getting it filled with colour codes. Cheers, Mike. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Help with gstreamer for python needed
How long is a while? Does the application freeze or does sound simply stop playing? Can you play sound through other means after this occurs? What do you do to get music playing again? Are you using playbin or a set of specific sinks? Is the device suspending? Gstreamer has issues resuming after a suspend. On Mon, May 25, 2009 at 1:43 PM, Andreas Hennig andreas.hennig@googlemail.com wrote: Hi All! Does one of you have expirience with gstreamer? I use gstreamer for my music player pyRok. Initialy it works fine but after a while it locks up and i don't see a reason. There is no error message ot something. The music just stops. I compared pyRok with pythm but i cant see any difference regarding gstreamer. PyRok uses pygame as UI. Maybe pygame interfeares with gstreamer somehow... Maybe somebody have an idea... rgds Andreas ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community -- Dylan Maxwell Reilly ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Help with gstreamer for python needed
Does gstreamer lock up when you use it from the command line? Here's a little shell script that will call gstreamer to play any media file. (This probably needn't to be said for something so trivial, but this code has no copyright). You can use it like so: playbin foo.ogg barf.mp3 /usr/local/share/music/Artists/Freezepop/* --Ben #!/bin/sh # Simplistic gstreamer front-end. # Ben Wong, May 2009 # Public Domain # Usage: playbin [ file ... ] # # E.g., cd /usr/share/sounds; playbin * # When the user hits ^C, wait a bit and then continue to next song. inthandler () { trap reallyexit INT echo Skipping song. Hit ^C twice to quit. sleep 1 || reallyexit # GNU sleep fails on SIGINT trap inthandler INT } # If the user hits ^C while we're already in the INT handler, quit. reallyexit () { echo exit 1 } Main routine trap inthandler INT for f; do case $f in /*) # do nothing ;; *) f=`pwd`/$f ;; esac echo gst-launch playbin ''uri=file://$f'' 2 gst-launch playbin uri=file://$f done # End of script On Mon, May 25, 2009 at 10:43 AM, Andreas Hennig andreas.hennig@googlemail.com wrote: Hi All! Does one of you have expirience with gstreamer? I use gstreamer for my music player pyRok. Initialy it works fine but after a while it locks up and i don't see a reason. There is no error message ot something. The music just stops. I compared pyRok with pythm but i cant see any difference regarding gstreamer. PyRok uses pygame as UI. Maybe pygame interfeares with gstreamer somehow... Maybe somebody have an idea... rgds Andreas ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Help with gstreamer for python needed
Hi All! Does one of you have expirience with gstreamer? I use gstreamer for my music player pyRok. Initialy it works fine but after a while it locks up and i don't see a reason. There is no error message ot something. The music just stops. I compared pyRok with pythm but i cant see any difference regarding gstreamer. PyRok uses pygame as UI. Maybe pygame interfeares with gstreamer somehow... Maybe somebody have an idea... rgds Andreas ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community