Kodi Community Forum
XBMC on Raspberry Pi - Wonder if this will work out? (Historical Discussion Thread) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Raspberry Pi (https://forum.kodi.tv/forumdisplay.php?fid=166)
+---- Thread: XBMC on Raspberry Pi - Wonder if this will work out? (Historical Discussion Thread) (/showthread.php?tid=113824)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46


RE: Raspberry Pi [HTPC] - Wonder if this will work out for XBMC?? - sstavross - 2012-07-04

(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!


RE: Raspberry Pi [HTPC] - Wonder if this will work out for XBMC?? - sstavross - 2012-07-05

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?


RE: Raspberry Pi [HTPC] - Wonder if this will work out for XBMC?? - gimli - 2012-07-05

(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.


Raspberry Pi [HTPC] - Wonder if this will work out for XBMC?? - tredman - 2012-07-05

(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


RE: Raspberry Pi [HTPC] - Wonder if this will work out for XBMC?? - Paul Webster - 2012-07-05

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/viewtopic.php?p=75568#p75568



RE: Raspberry Pi [HTPC] - Wonder if this will work out for XBMC?? - sstavross - 2012-07-05

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!




RE: Raspberry Pi [HTPC] - Wonder if this will work out for XBMC?? - Paul Webster - 2012-07-05

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.


RE: Raspberry Pi [HTPC] - Wonder if this will work out for XBMC?? - sstavross - 2012-07-06

(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



RE: Raspberry Pi [HTPC] - Wonder if this will work out for XBMC?? - Paul Webster - 2012-07-06

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.



RE: Raspberry Pi [HTPC] - Wonder if this will work out for XBMC?? - Paul Webster - 2012-07-06

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


RE: Raspberry Pi [HTPC] - Wonder if this will work out for XBMC?? - sstavross - 2012-07-06

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!


RE: Raspberry Pi [HTPC] - Wonder if this will work out for XBMC?? - gimli - 2012-07-06

(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.




RE: Raspberry Pi [HTPC] - Wonder if this will work out for XBMC?? - Paul Webster - 2012-07-06

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



RE: Raspberry Pi [HTPC] - Wonder if this will work out for XBMC?? - s7mx1 - 2012-07-06

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.




RE: Raspberry Pi [HTPC] - Wonder if this will work out for XBMC?? - sstavross - 2012-07-06

(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?