maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   mplayer or other audio software as backend (https://talk.maemo.org/showthread.php?t=29322)

luis 2009-06-03 02:18

mplayer or other audio software as backend
 
Hi,
I want to write a *very* simple audio player in pygtk as part of a much bigger project related to ornitology and bird photography. My idea was to use mplayer in slave mode as backend to play the bird songs, since it has a volume gain feature (many bird songs records are quite low).

My problem is that mplayer crashes (both in my PC and in the N800) with the message: "MPlayer interrupted by signal 13 in module: unknown"

I was unable to find the meaning of this... Interestingly, mplayer does not crash if the same command is executed in the console.

This is the relevant part of my code:

os.popen('mplayer -slave -input file=/tmp/mpfifo '+self.file)

So:
1) Do you have an idea why mplayer is crashing?
2) If not, which other backend software with volume gain to use as backend?
3) Do you know how to use madplay as backend?
4) Any other software to use as backend, even without volume gain?

Thanks a lot,
L.

silvermain 2009-06-03 04:53

Re: mplayer or other audio software as backend
 
You should try YouAmp. It allows you to adjust the gain from inside the program.

luis 2009-06-03 20:47

Re: mplayer or other audio software as backend
 
Quote:

Originally Posted by silvermain (Post 293231)
You should try YouAmp. It allows you to adjust the gain from inside the program.

Sorry, perhaps I wasn't clear enough (or I didn't understand you?). I do not want (another) GUI player. I will do my own front end, as part of a much bigger program, and I already know how to use the default media player with my program.

I want exactly the opposite, a backend decoding audio software since I don't want to redo all the actual audio decoding. Mplayer would be perfect, but it just crashes.

Thanks!
L.

javispedro 2009-06-03 21:16

Re: mplayer or other audio software as backend
 
gstreamer is the suggested backend for maemo. You'll also get DSP accelerated decoding this way.

I'm pretty sure there are python bindings for it.

luis 2009-06-03 22:00

Re: mplayer or other audio software as backend
 
Quote:

Originally Posted by javispedro (Post 293480)
gstreamer is the suggested backend for maemo. You'll also get DSP accelerated decoding this way.

I'm pretty sure there are python bindings for it.

Mmm... interesting. Do you know if gstreamer has automatic volume gain, like mplayer? In fact, do you know where I can read about it, in particular, the bindings?

BTW, I got mplayer working in slave mode. But still, you awoke my curiosity... probably gstreamer is indeed better.

Thanks a lot!!!
L.

javispedro 2009-06-03 22:30

Re: mplayer or other audio software as backend
 
Quote:

Originally Posted by luis (Post 293495)
Mmm... interesting. Do you know if gstreamer has automatic volume gain, like mplayer? In fact, do you know where I can read about it, in particular, the bindings?

I don't know if an automatic volume gain component exists -- sorry.
There's a nice pygst tutorial at http://pygstdocs.berlios.de/pygst-tutorial/index.html . Specially check http://pygstdocs.berlios.de/pygst-tutorial/playbin.html .

Quote:

Originally Posted by luis (Post 293495)
BTW, I got mplayer working in slave mode. But still, you awoke my curiosity... probably gstreamer is indeed better.

It should be better, but seems using it may be more complex than your initial idea.

luis 2009-06-04 02:44

Re: mplayer or other audio software as backend
 
Quote:

Originally Posted by javispedro (Post 293508)
I don't know if an automatic volume gain component exists -- sorry.
There's a nice pygst tutorial at http://pygstdocs.berlios.de/pygst-tutorial/index.html . Specially check http://pygstdocs.berlios.de/pygst-tutorial/playbin.html .


It should be better, but seems using it may be more complex than your initial idea.

Probably not, since I don't want much more than that playbin.py. The volume gain may be a killer, though...

Thanks!!!!!

Best,
L.

sciurius 2009-06-04 21:34

Re: mplayer or other audio software as backend
 
Did you get to a working playbin for Maemo? I'd be interested.
My target is a 770.

luis 2009-06-06 03:13

Re: mplayer or other audio software as backend
 
Quote:

Originally Posted by sciurius (Post 293808)
Did you get to a working playbin for Maemo? I'd be interested.
My target is a 770.

I've decided to go with mplayer because the automatic volume gain is crucial for me, and because it is simpler to implement.

Cheers,
L.

luis 2011-02-12 03:03

Re: mplayer or other audio software as backend
 
Well, I implemented the mplayer backend in slave mode, but it REALLY sucks. mplayer for maemo is highly broken.
I tried to get python-gst package for maemo4, but failed miserably.
Where can I find this?

Thanks!
L.


All times are GMT. The time now is 00:55.

vBulletin® Version 3.8.8