XBMC on Raspberry Pi - Wonder if this will work out? (Historical Discussion Thread)

  Thread Rating:
  • 11 Votes - 4.91 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
sstavross Offline
Senior Member
Posts: 113
Joined: Nov 2010
Reputation: 1
Post: #556
(2012-07-04 10:43)vdrfan Wrote:  
(2012-07-04 10:21)sstavross Wrote:  Hi!

I have received my pi about two weeks ago and I have tested it with both raspmc and openelec. I am a music guy and to my dissapointment, I can't play .ape files!( monkey audio). In another forum someone wrote that the decoder for this format is free but that has someone to put it in xbmc. Where can I request to, so this format will be availiable to xbmc for pi?

Mind uploading a debug log showing the issue using pastebin or any other similar site?

(2012-07-04 12:01)Paul Webster Wrote:  Try playing your .ape file using mplayer from the command line (if using Raspbmc RC3 then choose Exit and wait for the white screen ... then hit Esc)
If it works then it should be possible to set-up a custom playercorefactory.xml and associate .ape with mplayer and hopefully things should work.

I'll upload a debug log as soon as possible. And I'll try the trick of Paul Webster to see if it works. Thank you!
find quote
sstavross Offline
Senior Member
Posts: 113
Joined: Nov 2010
Reputation: 1
Post: #557
Ok. Here is the log. I used openelec: http://pastebin.com/qzB4ZhNa
The ape file starts at 01:13:11. Hope it helps. I can hear the first seconf of the music playing and then nothing. I see also playing time making jumps, not counting regularly.

Now about the "trick" Paul Webster suggested, how do I use the command line to use mplayer? What do I have to write?
find quote
gimli Offline
Team-XBMC Developer
Posts: 445
Joined: Jun 2009
Reputation: 9
Post: #558
(2012-07-05 00:31)sstavross Wrote:  Ok. Here is the log. I used openelec: http://pastebin.com/qzB4ZhNa
The ape file starts at 01:13:11. Hope it helps. I can hear the first seconf of the music playing and then nothing. I see also playing time making jumps, not counting regularly.

Now about the "trick" Paul Webster suggested, how do I use the command line to use mplayer? What do I have to write?

A sample file would help.
find quote
tdw197 Offline
Senior Member
Posts: 240
Joined: Oct 2006
Reputation: 0
Post: #559
(2012-07-05 00:31)sstavross Wrote:  Ok. Here is the log. I used openelec: http://pastebin.com/qzB4ZhNa
The ape file starts at 01:13:11. Hope it helps. I can hear the first seconf of the music playing and then nothing. I see also playing time making jumps, not counting regularly.

Now about the "trick" Paul Webster suggested, how do I use the command line to use mplayer? What do I have to write?

Pretty sure mplayer doesn't work on the pi, iirc xbmc uses omx as an external player
find quote
Paul Webster Offline
Junior Member
Posts: 34
Joined: Sep 2004
Reputation: 1
Post: #560
Mplayer does work on the RPi (see below) but it is (currently at least) using the GPU for optimisation so using it to watch video is not a great experience ... however, playing audio (which is what this is about) would not usually need more than the CPU.

To try it ...
sudo apt-get install mplayer
mplayer -h

If you have something else hogging the audio then kill it (e.g. SqueezeSlave)
If not already done - then you will probably need to load the alpha sound driver
sudo modprobe snd-bcm2835

Then to play your test files ...
mplayer -ao sdl filename
(I found -ao sdl worked better than -ao alsa)

or share you .ape file and I'll try it

If you hear nothing then try with something that would be expected to work (e.g. a regular mp3 file) to make sure that the basics are OK.



See this thread where I give benchmark results
http://www.raspberrypi.org/phpBB3/viewto...568#p75568
find quote
sstavross Offline
Senior Member
Posts: 113
Joined: Nov 2010
Reputation: 1
Post: #561
Ok, here is the sample:

http://www.mediafire.com/?tqx2809v099e6mh

It is a 30 seconds .ape file.

Paul I'll try your instructions tonight and let you know the results. Thank you all for your help!
find quote
Paul Webster Offline
Junior Member
Posts: 34
Joined: Sep 2004
Reputation: 1
Post: #562
Just tried it on Debian Squeeze (as used by Raspbmc) and it worked fine from mplayer command line.
Note - right now my SD card does not have XBMC on it so I can't prove my theory about creating the custom XML file in .xbmc/userdata but, judging by what the XbmC wiki says ... it should work.
find quote
sstavross Offline
Senior Member
Posts: 113
Joined: Nov 2010
Reputation: 1
Post: #563
(2012-07-05 23:03)Paul Webster Wrote:  Just tried it on Debian Squeeze (as used by Raspbmc) and it worked fine from mplayer command line.
Note - right now my SD card does not have XBMC on it so I can't prove my theory about creating the custom XML file in .xbmc/userdata but, judging by what the XbmC wiki says ... it should work.

If you provide me an playercorefactory.xml I'll test it! Because from the wiki I don't understand a thing!! Confused
find quote
Paul Webster Offline
Junior Member
Posts: 34
Joined: Sep 2004
Reputation: 1
Post: #564
Try this - put it in your .xbmc/userdata folder as playercorefactory.xml
Code:
<playercorefactory>
<players>
   <player name="mplayer" type="ExternalPlayer" audio="true" video="false">
     <filename>mplayer</filename>
     <args>"{1}" -ao sdl</args>
     <hidexbmc>false</hidexbmc>
     <hideconsole>false</hideconsole>
     <warpcursor>none</warpcursor>
   </player>
</players>
<rules action="prepend">
   <rule filetypes="ape" player="mplayer"/>
</rules>
</playercorefactory>
however, don't do that until you have got mplayer working from command line as I described above.
Note: OpenELEC on RPi does not (today) include mplayer and it is not trivial to install it ... so use Raspbmc and then the apt-get command that I described earlier ... and don't forget the ALSA driver.
find quote
Paul Webster Offline
Junior Member
Posts: 34
Joined: Sep 2004
Reputation: 1
Post: #565
I just put OpenELEC on SD card over lunch ... and played your sample with PAPlayer - which is already included.
So I expect that you could make a simpler XML file by removing the "players" section and replacing mplayer in the rules section with PAPlayer
find quote
sstavross Offline
Senior Member
Posts: 113
Joined: Nov 2010
Reputation: 1
Post: #566
So, for openelec something like this:

Code:
<playercorefactory>
<rules action="prepend">
   <rule filetypes="ape" player="paplayer"/>
</rules>
</playercorefactory>

For raspmc all the things you discribe in you last posts. Ok! I'll try this weekend and tell you the results! Thank you!
(This post was last modified: 2012-07-06 14:35 by sstavross.)
find quote
gimli Offline
Team-XBMC Developer
Posts: 445
Joined: Jun 2009
Reputation: 9
Post: #567
(2012-07-06 14:12)Paul Webster Wrote:  I just put OpenELEC on SD card over lunch ... and played your sample with PAPlayer - which is already included.
So I expect that you could make a simpler XML file by removing the "players" section and replacing mplayer in the rules section with PAPlayer

Don't put your hope in PAPlayer. PAPlayer only works with AE. AE needs alsa and we discovered alsa and omx do not play well together. So in current xbmc-rgp github, AE is disabled at all and we factor out evrything to OMXPlayer. When OMXPlayer can't handle a format, the easiest way is, convert your media files to a more OMXPlayer firendly format Wink The situation with alsa could change when the alsa kernel support on the PI wi'll get better.
(This post was last modified: 2012-07-06 14:41 by gimli.)
find quote
Paul Webster Offline
Junior Member
Posts: 34
Joined: Sep 2004
Reputation: 1
Post: #568
Shame ... however, given that omxplayer tries to play it (sound starts) but fails then I have raised it as an issue.
https://github.com/huceke/omxplayer/issues/17
find quote
s7mx1 Offline
Senior Member
Posts: 265
Joined: Dec 2007
Reputation: 4
Post: #569
Just figured this out by going thorough the TARGET_RASPBERRY_PI env on the AE files. I re-enabled AE and pulseaudio support. The idea is to use external usb sound cards or streaming audio over network.

Tried playing a mp3 file and looked fine to me. Will hook up a usb speakers.

(2012-07-06 14:38)gimli Wrote:  
(2012-07-06 14:12)Paul Webster Wrote:  I just put OpenELEC on SD card over lunch ... and played your sample with PAPlayer - which is already included.
So I expect that you could make a simpler XML file by removing the "players" section and replacing mplayer in the rules section with PAPlayer

Don't put your hope in PAPlayer. PAPlayer only works with AE. AE needs alsa and we discovered alsa and omx do not play well together. So in current xbmc-rgp github, AE is disabled at all and we factor out evrything to OMXPlayer. When OMXPlayer can't handle a format, the easiest way is, convert your media files to a more OMXPlayer firendly format Wink The situation with alsa could change when the alsa kernel support on the PI wi'll get better.
(This post was last modified: 2012-07-06 18:52 by s7mx1.)
find quote
sstavross Offline
Senior Member
Posts: 113
Joined: Nov 2010
Reputation: 1
Post: #570
(2012-07-06 18:38)Paul Webster Wrote:  Shame ... however, given that omxplayer tries to play it (sound starts) but fails then I have raised it as an issue.
https://github.com/huceke/omxplayer/issues/17

Thank you again for this!
So to resume the situation, for the time no hope for openelec. But I haven't understand if it is the same for raspmc. If I follow your instruction, will I be able to play these ape files?
find quote
Post Reply