maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   All about SleepAnalyser (https://talk.maemo.org/showthread.php?t=57419)

Mentalist Traceur 2011-04-18 22:57

Re: All about SleepAnalyser
 
Quote:

Originally Posted by caco3 (Post 991445)
It uses now mplayer to play the lucid dream and wake up music. I switched to it because I did not want to open the maemo mediaplayer to play the music.
If you find a way to play a song with the built in mediaplay WITHOUT having to open an extra window, please let me know
You can go and ask Nokia to add cli support for medaplayer :)

I also tried to use gstreamer which would be the even better solution. How ever after many wasted and frustrating hours I switched back to mplayer. (gstreamer made SleepAnalyser crash and eat all CPU. It might be due the (not correct) way of using it, but I was not able to fix it).

That's fine, I just don't think it need to be an explicit dependency - you could just say in the startup screen somewhere that you have to install mplayer to use Lucid Dream and Wake Up music?

Also, you can ask MohammadAG - he's working on a replacement Media Player for the CSSU; or one of the other non-stock media players' devs, for help with the gstreamer bit? I would love to help with gstreamer but honestly, that is so far beyond my skill level it's not even remotely feasible I'd be of use there.

Edit: Thank you for the explanation either way. I can't really blame you for making that decision.

caco3 2011-04-18 23:05

Re: All about SleepAnalyser
 
well, I belief if users have to install it manually, it gets complicater once again. i want to keep it simple and working for novice users!
I do not really se a problem to have another 20MB in /opt ! I have many many apps installed but still plenty of space.
So you dont have to use it if you dont want to...
And beliefe me, i was very happy when I finally gor gstreamer working. Because of that my frustrations where huge when I realised that the glibc functions make the rest of SleepAnalyser work properly :(
Once there is a way of using the maemo media player without apening a new window (or additionally keep it in the backround) I am happy to switch back.

x-lette 2011-04-19 11:35

Re: All about SleepAnalyser
 
Hi caco3,
today I let me wake up with a song that played very well the last days, but today I wanted to stop it before it was played to end. I pressed the top button of the N900 to get the slide-to-activate screen and immediately the song stopped.
Is that behaviour by design or went something wrong this morning? In logfile I can't find any useful hint. It just says "Stop music player".

caco3 2011-04-19 14:38

Re: All about SleepAnalyser
 
Are you sure the song was not just over at that moment? That would mean that the alarm would have raised in the next seconds as well.
The only way to stop a song is its and and pushing the stop button at the left bottom corner!

x-lette 2011-04-19 17:41

Re: All about SleepAnalyser
 
Quote:

Originally Posted by caco3 (Post 991834)
Are you sure the song was not just over at that moment? That would mean that the alarm would have raised in the next seconds as well.
The only way to stop a song is its and and pushing the stop button at the left bottom corner!

Definitely not. It was about the middle of the song and I guess somehow the player crashed when I pressed that button. In Sleepanalyser the stop button was still visible. Does it change or hide when the song is stopped?

caco3 2011-04-19 20:30

Re: All about SleepAnalyser
 
Yes, SleepAnalyser knows how long the song goes and will disable the button at the end. Currently there is no feedback from the player. So if it (mplayer) crashed, SleepAnalyser has no way of figuring it out.

I just got a new idea of how we could use gstreamer; instead including it into SleepAnalyser (which made it malfunctioning/crashing) I could run it as a separate process. With a pipe it would be possible for them to communicate. I have to think a bit deeper into it, so please be patient.

x-lette 2011-04-20 10:30

Re: All about SleepAnalyser
 
Today I selected another song for wakeup (in fact let Sleepanalyser choose the song from a directory) and when pressing that button this morning the song stopped for a second and then played further. I let it play to end and the usual alarm went off.

caco3 2011-04-20 11:32

Re: All about SleepAnalyser
 
That sounds very odd.
Are you sure the song interruption was caused by your button press? Sometimes mplayer stops for a moment when to much cpu time for other processes are needed.
Also, was the button disabled afterwards?
It really looks like as if mplayer is not the best solution, how ever I don't know any other way except using again the maemo media player :(

x-lette 2011-04-20 13:33

Re: All about SleepAnalyser
 
I'm not speaking of the button in sleepanalyser but of the hardware button on top of device. Sorry. So it may be caused by cpu consumption of device waking up and drawing slide-screen. I don't think that mplayer is a bad choice as it has a wide range of supported codecs so user could select nearly any soundfile. How is codec support in gstreamer?

caco3 2011-04-20 15:27

Re: All about SleepAnalyser
 
Quote:

Originally Posted by x-lette (Post 992519)
I'm not speaking of the button in sleepanalyser but of the hardware button on top of device.

Well, then there is no issue with SleepAnalyser :)

I am just uploading a new version which uses gstreamer instead mplayer. Now it doesnt use gstreamer in SleepAnalyser itself but runs it as a separate process.
It might still be buggy!
In case it does not work as expected, please have a close look in the log file (/home/user/MyDocs/SleepAnalyser/SleepAnalyser.log). It will contain a lot of information!


All times are GMT. The time now is 02:19.

vBulletin® Version 3.8.8