Kodi Community Forum
[RELEASE] Subsonic - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Music Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=148)
+---- Thread: [RELEASE] Subsonic (/showthread.php?tid=99513)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16


- lowball - 2011-06-01

Awesome. This works great on the old Xbox.


- darwin - 2011-06-06

t0mm0 Wrote: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=483a5c4d757369635c41626c652042616b657220466f785c566f696365735c3031204f63746f6265722e6d7033 -> failed

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

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

Are you sure that subsonic should return audio/mpeg MIME type for urls of that format? Mine always returns x-download, because the url that your plugin is using appears to be the download.view and not stream.view?

Code:
http://192.168.0.125:4040/rest/download.view?p=NOTREALLYMYPASSWORD&c=xbmc&u=NOTREALLYMYUSER&f=json&v=1.4.0&id=2f722f6d757369632f7472616b746f722f414320536c61746572202d20283230303929205061727479204c696b652055732f3034202d205061727479204c696b6520557320284b616e6a69204b696e65746963292e6d7033
Connecting to 192.168.0.125:4040... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14429414 (14M) [application/x-download]

Versus :

Code:
http://192.168.0.125:4040/rest/stream.view?p=NOTREALLYMYPASSWORD&c=xbmc&u=NOTREALLYMYUSER&f=json&v=1.4.0&id=2f722f6d757369632f7472616b746f722f414320536c61746572202d20283230303929205061727479204c696b652055732f3034202d205061727479204c696b6520557320284b616e6a69204b696e65746963292e6d7033
Connecting to 192.168.0.125:4040... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14429414 (14M) [audio/mpeg]

This is with subsonic 4.4 server running on ubuntu, and even when I am downloading a file which is source MP3, and when I have unlimited streaming bandwidth assigned for that user in subsonic, so it should not be transcoding at all on the server side.

=darwin
PS - This plugin rocks!!! Subsonic + XBMC = Peanut Butter + Chocolate.


- t0mm0 - 2011-06-06

hi!
darwin Wrote:Are you sure that subsonic should return audio/mpeg MIME type for urls of that format? Mine always returns x-download, because the url that your plugin is using appears to be the download.view and not stream.view?

yes, download.view is used to bypass transcoding, and subsonic returns x-download mime type as you say. i'm not sure if you are saying you have a problem or not, but further down the thread and in the first post is the workaround.

the issue is that the default player for audio is paplayer, but paplayer fails for application/x-download mime types. dvdplayer copes fine, so the fix is to add the playercorefactory.xml entries as described in the first post.

darwin Wrote:PS - This plugin rocks!!! Subsonic + XBMC = Peanut Butter + Chocolate.

glad you like it Wink

thanks

t0mm0.


- darwin - 2011-06-06

t0mm0 Wrote:yes, download.view is used to bypass transcoding, and subsonic returns x-download mime type as you say. i'm not sure if you are saying you have a problem or not, but further down the thread and in the first post is the workaround.

Yeah, I saw the workaround and am using it (works fine!) but wasn't sure if it the bit about the mime type was ever clarified, so I wanted to do so if it might be useful. Ideally we should not have to mess around with coreplayerfactory to make an addon work, though I am obviously quite comfortable doing so, hehe.. Big Grin

It's interesting that XBMC and your plugin scrobbles to last.fm properly where so many other streaming plugins do not. I have looked at the code and it seems to do a isStream check, but I am pretty sure your plugin scrobbles ("playing in XBMC") even if transcode is enabled? Did you do anything special for this?

=darwin


- t0mm0 - 2011-06-06

hi darwin,

darwin Wrote:Yeah, I saw the workaround and am using it (works fine!) but wasn't sure if it the bit about the mime type was ever clarified, so I wanted to do so if it might be useful. Ideally we should not have to mess around with coreplayerfactory to make an addon work, though I am obviously quite comfortable doing so, hehe.. Big Grin

yeah, i made a thread in the plugin development forum about plugins being able to choose which player is used when using setResolvedUrl() but nothing ever came of it.

Quote:It's interesting that XBMC and your plugin scrobbles to last.fm properly where so many other streaming plugins do not. I have looked at the code and it seems to do a isStream check, but I am pretty sure your plugin scrobbles ("playing in XBMC") even if transcode is enabled? Did you do anything special for this?

not as far as i know! in fact i have not even tested this so wasn't even aware that it worked Wink

t0mm0.


- wipmonkey - 2011-06-10

I get this when I try to play a video:
11:52:05 T:2604653424 M:3039457280 NOTICE: -->Python Interpreter Initialized<--
11:52:12 T:3078522752 M:3037298688 ERROR: CAudioDecoder: Unable to Init Codec while loading file http://192.168.1.10:4040/rest/stream.view?p=PASSWD&c=xbmc&maxBitRate=320&u=USERNAME&f=json&v=1.4.0&id=####
11:52:12 T:3078522752 M:3037298688 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.audio.subsonic/?mode=play&id=####

video and music works in browser and music works in xbmc.

any idea what I messing up?


- t0mm0 - 2011-06-10

wipmonkey Wrote:I get this when I try to play a video:
11:52:05 T:2604653424 M:3039457280 NOTICE: -->Python Interpreter Initialized<--
11:52:12 T:3078522752 M:3037298688 ERROR: CAudioDecoder: Unable to Init Codec while loading file http://192.168.1.10:4040/rest/stream.view?p=PASSWD&c=xbmc&maxBitRate=320&u=USERNAME&f=json&v=1.4.0&id=####
11:52:12 T:3078522752 M:3037298688 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.audio.subsonic/?mode=play&id=####

video and music works in browser and music works in xbmc.

any idea what I messing up?

Looks like you're trying to use paplayer.

Make sure you have followed the instructions in the first post of this thread regarding playercorefactory.XML

Thanks,

t0mm0


- flammenwurfer - 2011-06-11

OK, here is my xbmc.log file. To reiterate, music plays fine and behaves normally except in now playing it shows "download.view" instead of whatever song is actually playing.

http://pastebin.com/ZJhgfXEi


- t0mm0 - 2011-06-11

flammenwurfer Wrote:OK, here is my xbmc.log file. To reiterate, music plays fine and behaves normally except in now playing it shows "download.view" instead of whatever song is actually playing.

http://pastebin.com/ZJhgfXEi

can't really tell much from that. a debug log may more useful if you could provide one?

thanks,

t0mm0


Videos without sound - dybuk - 2011-06-21

I'm having a few issues with this addon. Music plays fine. Videos play but without any sound.

I'm using XBMC4XBOX-3.0.1-STABLE and I installed the plugin via the gui. I did a bit of manual fudging on settings.xml file. It took me a while to figure out hitting title on the plugin would allow me to change the settings Smile My xbox has been sitting in the loft for some time.

I followed the instructions about the playercorefactory.xml file.

I haven't changed any of the subsonic transcode settings and I'm running version 4.4. I did change the context root to be /sub.

Here is my log :

Code:
14:08:54 M: 27598848    INFO: ffmpeg[278]: Input #0, flv, from 'http://192.168.206.10:4040/sub/rest/stream.view?p=xxxxxx&c=xbmc&maxBitRate=320&u=xxxxxx&f=json&v=1.4.0&id=********************************************':
14:08:54 M: 27598848    INFO: ffmpeg[278]:   Metadata:
14:08:54 M: 27598848    INFO: ffmpeg[278]:     duration        : 0
14:08:54 M: 27598848    INFO: ffmpeg[278]:     width           : 432
14:08:54 M: 27598848    INFO: ffmpeg[278]:     height          : 240
14:08:54 M: 27598848    INFO: ffmpeg[278]:     videodatarate   : 312
14:08:54 M: 27598848    INFO: ffmpeg[278]:     framerate       : 24
14:08:54 M: 27598848    INFO: ffmpeg[278]:     videocodecid    : 2
14:08:54 M: 27598848    INFO: ffmpeg[278]:     audiodatarate   : 62
14:08:54 M: 27598848    INFO: ffmpeg[278]:     audiosamplerate : 44100
14:08:54 M: 27598848    INFO: ffmpeg[278]:     audiosamplesize : 16
14:08:54 M: 27598848    INFO: ffmpeg[278]:     stereo          : true
14:08:54 M: 27598848    INFO: ffmpeg[278]:     audiocodecid    : 1
14:08:54 M: 27598848    INFO: ffmpeg[278]:     filesize        : 0
14:08:54 M: 27598848    INFO: ffmpeg[278]:   Duration: 00:00:00.00, start: 0.000000, bitrate: 384 kb/s
14:08:54 M: 27598848    INFO: ffmpeg[278]:     Stream #0.0: Video: flv, yuv420p, 432x240, 320 kb/s, 23.98 tbr, 1k tbn, 1k tbc
14:08:54 M: 27598848    INFO: ffmpeg[278]:     Stream #0.1: Audio: [0][0][0][0] / 0x0000, 44100 Hz, 2 channels, 64 kb/s
14:08:54 M: 27598848  NOTICE: Opening video stream: 0 source: 256
14:08:54 M: 27598848  NOTICE: Creating video codec with codec id: 22
14:08:54 M: 27598848   DEBUG: FactoryCodec - Video:  - Opening
14:08:54 M: 27598848  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: flv
14:08:54 M: 27369472   DEBUG: FactoryCodec - Video: ff-flv - Opened
14:08:54 M: 27369472  NOTICE: Creating video thread
14:08:54 M: 26841088  NOTICE: Opening audio stream: 1 source: 256
14:08:54 M: 26841088   DEBUG: CXBoxRenderManager::PreInit - Selected RGB-Renderer
14:08:54 M: 26800128  NOTICE: Finding audio codec for: 69645
14:08:54 M: 26693632   DEBUG: FactoryCodec - Audio: passthrough - Opening
14:08:54 M: 26701824  NOTICE: running thread: video_thread
14:08:54 M: 26701824   DEBUG: FactoryCodec - Audio: passthrough - Failed
14:08:54 M: 26456064   DEBUG: FactoryCodec - Audio: FFmpeg - Opening
14:08:54 M: 26456064   DEBUG: CDVDAudioCodecFFmpeg::Open() Unable to find codec 69645
14:08:54 M: 26456064   DEBUG: FactoryCodec - Audio: FFmpeg - Failed
14:08:54 M: 26841088   ERROR: Unsupported audio codec
14:08:54 M: 26841088 WARNING: CDVDPlayer::OpenAudioStream - Unsupported stream 1. Stream disabled.
14:08:54 M: 26841088   DEBUG: CDVDPlayer::SetCaching - caching state 2
14:08:54 M: 26828800 WARNING: CDVDMessageQueue(audio)::Put MSGQ_NOT_INITIALIZED
14:08:54 M: 26808320   DEBUG: CApplication::OnPlayBackStarted - Playback has started

Any help would be much appreciated. I'm sure its some blatant user error Smile

Dybuk


- marcusjb - 2011-06-22

I've got an easy problem. Whenever i open the subsonic addon, it opens with library mode on so there's nothing listed and i have to turn library mode off.

Anyone know how i can turn library mode off just for this plugin?


- t0mm0 - 2011-06-22

dybuk Wrote:14:08:54 M: 26800128 NOTICE: Finding audio codec for: 69645
14:08:54 M: 26693632 DEBUG: FactoryCodec - Audio: passthrough - Opening
14:08:54 M: 26701824 NOTICE: running thread: video_thread
14:08:54 M: 26701824 DEBUG: FactoryCodec - Audio: passthrough - Failed
14:08:54 M: 26456064 DEBUG: FactoryCodec - Audio: FFmpeg - Opening
14:08:54 M: 26456064 DEBUG: CDVDAudioCodecFFmpeg::Open() Unable to find codec 69645
14:08:54 M: 26456064 DEBUG: FactoryCodec - Audio: FFmpeg - Failed
14:08:54 M: 26841088 ERROR: Unsupported audio codec
14:08:54 M: 26841088 WARNING: CDVDPlayer::OpenAudioStream - Unsupported stream 1. Stream disabled.

looks like your xbmc doesn't have the correct codec? try switching on the setting to include all codecs in dvdplayer and see if that works. or maybe try using 'play with' and choosing 'mplayer' and let me know if that helps. i don't have any video set up on my server at the moment, but i'm sure i tested it before with no problems so i'm not sure what the problem is.


marcusjb Wrote:I've got an easy problem. Whenever i open the subsonic addon, it opens with library mode on so there's nothing listed and i have to turn library mode off.

Anyone know how i can turn library mode off just for this plugin?

weird, i don't see this problem (fairly recent nightly on linux). i can have library mode enabled and still see all the songs on my server when accessing the plugin.

but anyway i don't know how to switch off library mode for one plugin i'm afraid.

t0mm0.


- dybuk - 2011-06-22

Quote:try switching on the setting to include all codecs in dvdplayer

That sorted it.

Great plugin. Might try playing to see if I can get higher quality and try it over ssl.

Dybuk


- BlackBurn - 2011-06-26

Thanks for the plugin, works great!

Still a feature request, it would be nice if it was possible to add more then 1 server. So I can connect to my friends subsonsonic server as well.


- t0mm0 - 2011-06-26

BlackBurn Wrote:Thanks for the plugin, works great!

Still a feature request, it would be nice if it was possible to add more then 1 server. So I can connect to my friends subsonsonic server as well.

great idea! i'll see what i can do.

t0mm0