[RELEASE] Subsonic

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Minime1 Offline
Junior Member
Posts: 1
Joined: Apr 2011
Reputation: 0
Smile  Working Fine for me Post: #11
Hi t0mm0,

Just wanted to say i have installed your plugin in my linux based Dharma edition of xbmc and i have to say i love it so far. Everything is working fine and i really love the feature "create smart playlists". Nice work man. Thank you
find quote
t0mm0 Offline
Fan
Posts: 521
Joined: Mar 2011
Reputation: 8
Location: UK
Post: #12
aaronb Wrote:It worked fine with the demo server. My server config is pretty much the default.

The full error:

Code:
22:19:53 T:7720 M:1814597632   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://192.168.0.10:8082/rest/stream.view?p=password&c=xbmc&maxBitRate=128&u=user&f=json&v=1.5.0&id=483a5c4d757369635c546865205477696c696768742053696e676572735c44796e616d697​4652053746570735c3034202d20476574204c75636b792028416c62756d292e6d7033

If I copy that url into my browser what looks like a flash player comes up, but nothing plays. I can see in the Subsonic log that it's trying to play it.

can you post more of the log?

have you changed the transcode settings on your server at all?
find quote
t0mm0 Offline
Fan
Posts: 521
Joined: Mar 2011
Reputation: 8
Location: UK
Post: #13
Minime1 Wrote:Hi t0mm0,

Just wanted to say i have installed your plugin in my linux based Dharma edition of xbmc and i have to say i love it so far. Everything is working fine and i really love the feature "create smart playlists". Nice work man. Thank you

thanks! glad you like it Wink
find quote
aaronb Offline
Senior Member
Posts: 151
Joined: Apr 2007
Reputation: 0
Location: Colorado
Post: #14
t0mm0 Wrote:can you post more of the log?

have you changed the transcode settings on your server at all?

Sure, here is the entire section of the log from when I enter a directory until it starts giving the error. Let me know if there's a different section you need.

http://pastebin.com/TBzXHY3t

I'm pretty sure I've never changed the transcode settings on the server. Here's a screenshot of my settings:

http://img862.imageshack.us/img862/4012/subsonic.jpg

Also, I've tried this with and without transcoding turned on, and at a couple different bitrates.

Thanks
find quote
t0mm0 Offline
Fan
Posts: 521
Joined: Mar 2011
Reputation: 8
Location: UK
Post: #15
aaronb Wrote:Sure, here is the entire section of the log from when I enter a directory until it starts giving the error. Let me know if there's a different section you need.

sorry to be a pain, but can you turn on debugging in xbmc?

aaronb Wrote:I'm pretty sure I've never changed the transcode settings on the server. Here's a screenshot of my settings:

http://img862.imageshack.us/img862/4012/subsonic.jpg

Also, I've tried this with and without transcoding turned on, and at a couple different bitrates.

looks ok.

couple more questions....
what type of file is the original you are trying to stream (mp3, aac etc.)?
do any files stream?
and have you tried 'play using' and choosing dvd player - does that work?

thanks,

t0mm0
find quote
aaronb Offline
Senior Member
Posts: 151
Joined: Apr 2007
Reputation: 0
Location: Colorado
Post: #16
t0mm0 Wrote:sorry to be a pain, but can you turn on debugging in xbmc?

Of course, anything you need me to do to help debug. Not a pain at all, thanks for the time you've spent building this

http://pastebin.com/ZnfJjuuD

t0mm0 Wrote:couple more questions....
what type of file is the original you are trying to stream (mp3, aac etc.)?
do any files stream?
and have you tried 'play using' and choosing dvd player - does that work?

thanks,

t0mm0

It's an mp3

Tried "play using" and files do play correctly with dvdplayer
find quote
t0mm0 Offline
Fan
Posts: 521
Joined: Mar 2011
Reputation: 8
Location: UK
Post: #17
aaronb Wrote:Of course, anything you need me to do to help debug. Not a pain at all, thanks for the time you've spent building this

http://pastebin.com/ZnfJjuuD

It's an mp3

hmmmm, weird. it looks like the folowing line is the culprit:
Code:
22:44:01 T:7720 M:1692831744   DEBUG: CFileCurl::GetMimeType - http://192.168.0.10:8082/rest/download.view?p=password&c=xbmc&u=aaron&f=json&v=1.5.0&id=483a5c4d757369635c41626c652042616b657220466f785c566f696365735c3031204f637​46f6265722e6d7033 -> failed

it should return "audio/mpeg" for mp3 streams.

well, i have no idea why it doesn't with your server, but as....

aaronb Wrote:Tried "play using" and files do play correctly with dvdplayer

i played around with the playercorefactory stuff and this will force xbmc to use dvdplayer (this also makes playback work whether you set transcoding on or off!)

Code:
<playercorefactory>
    <rules action="prepend">
        <rule name="subsonic" filename=".*/rest/(stream|download).view.*" player="dvdplayer"/>
    </rules>
</playercorefactory>

i you don't already have a playercorefactory.xml in your userdata directory then make a file and add the above in it.

if you already have one, just insert the line:
Code:
<rule name="subsonic" filename=".*/rest/(stream|download).view.*" player="dvdplayer"/>
directly after the <rules> tag.

see http://wiki.xbmc.org/index.php?title=HOW...a_playback for more info on playercorefactory.xml

i suppose i could try and automate this in future as there appears to be no better way to force the player at the moment.

hope that works for you!

t0mm0
(This post was last modified: 2011-04-29 23:33 by t0mm0.)
find quote
marcusjb Offline
Member
Posts: 56
Joined: Jun 2008
Reputation: 0
Post: #18
I can't explain how excited I am that someone did this. I'm getting this error:

http://pastebin.com/wiREYNb5

even when I use the demo server.
find quote
t0mm0 Offline
Fan
Posts: 521
Joined: Mar 2011
Reputation: 8
Location: UK
Post: #19
marcusjb Wrote:I can't explain how excited I am that someone did this. I'm getting this error:

http://pastebin.com/wiREYNb5

even when I use the demo server.

that's strange - you're not trying to use the non-xbox version on an xbox are you?

it's complaining about simplejson being missing, but if you installed on a non-xbox machine using the repo then it should have automatically downloaded and installed it if you didn't already have it.

t0mm0
find quote
dictatortot Offline
Junior Member
Posts: 1
Joined: Apr 2011
Reputation: 0
Post: #20
long time lurker here - i had to register to thank you for your work on this. everything seems to be working well for me so far!
find quote
Post Reply