Hello, I'm looking for a way to execute commands when music changes.
Like visualizations in music players, but instead of changing weird lines on the screen, I want to do things. Now I found out about playbin, but I can't get this to work, and can't find that much documentation about the subject with Python. This is a bit that I could figure out, but can't get any further: pipeline = gst.element_factory_make('playbin', 'playbin') vis = gst.element_factory_make("goom") pipeline.set_property('vis-plugin', vis) And if this is possible, can this also be done without writing a plugin for a music player? But just use my own program and use the soundcard or something to hear the sounds? This way I don't have to write a plugin for a couple of players but just use my own GUI. Thanks in advance, Timo ------------------------------------------------------------------------- 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Hi, Timo:
If you don't mind trying playbin2, I know that it will emit signal `about-to-finish' while changing the playing stuffs to next. You can connect this signal and do works you want. Playbin hasn't this signal yet. Refer to <gst-plugin-base>/gst/playback/gstplaybin2.c for more details. Eric 2008/9/7 Timo <[hidden email]> Hello, I'm looking for a way to execute commands when music changes. ------------------------------------------------------------------------- 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Hey Eric,
Thanks for your answer, but I know near to nothing about C, so it's a bit hard for me. I think I didn't make myself that clear. I don't want to know when the music stops or changes song. But the actual changes in the music (pitch, frequency, etc.), just like a visualizer. But instead of changing colors according to the music, I want to execute commands according to the music. And all of this in Python. Thanks, Timo Eric Zhang schreef: > Hi, Timo: > > If you don't mind trying playbin2, I know that it will emit signal > `about-to-finish' while changing the playing stuffs to next. You can > connect this signal and do works you want. Playbin hasn't this signal > yet. Refer to <gst-plugin-base>/gst/playback/gstplaybin2.c for more > details. > > Eric > > 2008/9/7 Timo <[hidden email] <mailto:[hidden email]>> > > Hello, I'm looking for a way to execute commands when music changes. > Like visualizations in music players, but instead of changing weird > lines on the screen, I want to do things. > Now I found out about playbin, but I can't get this to work, and can't > find that much documentation about the subject with Python. > This is a bit that I could figure out, but can't get any further: > pipeline = gst.element_factory_make('playbin', 'playbin') > vis = gst.element_factory_make("goom") > pipeline.set_property('vis-plugin', vis) > > > And if this is possible, can this also be done without writing a > plugin > for a music player? But just use my own program and use the > soundcard or > something to hear the sounds? This way I don't have to write a plugin > for a couple of players but just use my own GUI. > > > Thanks in advance, > > Timo > > ------------------------------------------------------------------------- > 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 > [hidden email] > <mailto:[hidden email]> > 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 > [hidden email] > 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Hi,
I think I didn't make myself that clear. I don't want to know when the Well, you could use analysis elements such as level or spectrum, and use the bus messages with thresholds to launch system events ... What kind of commands do you want to launch ? 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=/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Is there some documentation on which bus messages exist? Cause I found
some, but none of them useable for me. It would be just system commands: os.system(). Timo Florent schreef: > Hi, > > I think I didn't make myself that clear. I don't want to know when the > music stops or changes song. But the actual changes in the music > (pitch, > frequency, etc.), just like a visualizer. But instead of changing > colors > according to the music, I want to execute commands according to > the music. > And all of this in Python. > > > Well, you could use analysis elements such as level or spectrum, and > use the bus messages with thresholds to launch system events ... > > What kind of commands do you want to launch ? > > 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=/ > ------------------------------------------------------------------------ > > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
http://pygstdocs.berlios.de/pygst-reference/gst-constants.html#gst-message-constants
They don't do what you're asking of though. :P There are a bunch of other pygst audio projects that might be of more use -> http://pygstdocs.berlios.de/#audio Greets Jens Timo wrote: > Is there some documentation on which bus messages exist? Cause I found > some, but none of them useable for me. > > It would be just system commands: os.system(). > > > Timo > ------------------------------------------------------------------------- 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by Timo-13
Timo schrieb:
> Hey Eric, > Thanks for your answer, but I know near to nothing about C, so it's a > bit hard for me. > > I think I didn't make myself that clear. I don't want to know when the > music stops or changes song. But the actual changes in the music (pitch, > frequency, etc.), just like a visualizer. But instead of changing colors > according to the music, I want to execute commands according to the music. > And all of this in Python. The documentation for the level-element documenta the message and how to use it. Stefan > > Thanks, > > Timo > > > Eric Zhang schreef: >> Hi, Timo: >> >> If you don't mind trying playbin2, I know that it will emit signal >> `about-to-finish' while changing the playing stuffs to next. You can >> connect this signal and do works you want. Playbin hasn't this signal >> yet. Refer to <gst-plugin-base>/gst/playback/gstplaybin2.c for more >> details. >> >> Eric >> >> 2008/9/7 Timo <[hidden email] <mailto:[hidden email]>> >> >> Hello, I'm looking for a way to execute commands when music changes. >> Like visualizations in music players, but instead of changing weird >> lines on the screen, I want to do things. >> Now I found out about playbin, but I can't get this to work, and can't >> find that much documentation about the subject with Python. >> This is a bit that I could figure out, but can't get any further: >> pipeline = gst.element_factory_make('playbin', 'playbin') >> vis = gst.element_factory_make("goom") >> pipeline.set_property('vis-plugin', vis) >> >> >> And if this is possible, can this also be done without writing a >> plugin >> for a music player? But just use my own program and use the >> soundcard or >> something to hear the sounds? This way I don't have to write a plugin >> for a couple of players but just use my own GUI. >> >> >> Thanks in advance, >> >> Timo >> >> ------------------------------------------------------------------------- >> 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 >> [hidden email] >> <mailto:[hidden email]> >> 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 >> [hidden email] >> 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 > [hidden email] > 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
> The documentation for the level-element documenta the message and how to use it. > > Stefan > > I can't find the documentation you are talking about. Am I looking over something? Timo ------------------------------------------------------------------------- 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
>> The documentation for the level-element documenta the message and
how to use it. http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-level.html http://webcvs.freedesktop.org/gstreamer/gst-plugins-good/tests/examples/level/ Checking the plugin source code can give you the exact structure of the messages And a bit of googling would have brought you : http://ooboontoo.blogspot.com/2008/03/gstreamer-with-python-in-qt-learning-by.html Have fun FLo ------------------------------------------------------------------------- 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |