[RELEASE] Jazz FM
#1
hi,

a little addon i made for myself, thought i may as well release it.

plays the live stream and the listen again shows from jazzfm.com

grab it from my repository:
https://github.com/downloads/t0mm0/t0mm0...-1.0.3.zip

xbox version also available in xbmc4xbox-addons via the SVN repo installer.

enjoy!

t0mm0
Reply
#2
Dude since you are on fire are you able to do one for veoh.com. is it difficult
Macmini Server 2011 i7 Quad Core, OS 10.8.2, Amp Onkyo TX-SR308 USB WD drives 3x2TB TV Samsung Plasma 720p EyeTV Integration
There are only 10 kinds of people in this world, those who understand binary, and those who don't.



Reply
#3
activate Wrote:Dude since you are on fire are you able to do one for veoh.com. is it difficult

not something i've looked at. i've got a lot in my queue of stuff to make at the moment though so i probably won't get a chance i'm afraid Sad
Reply
#4
That's cool.
Macmini Server 2011 i7 Quad Core, OS 10.8.2, Amp Onkyo TX-SR308 USB WD drives 3x2TB TV Samsung Plasma 720p EyeTV Integration
There are only 10 kinds of people in this world, those who understand binary, and those who don't.



Reply
#5
.
Reply
#6
speed32219 Wrote:Anyone having problems with this plugin. For some reason it just stopped working.

Code:
05:46:05 T:3079292800 M:1870491648   ERROR: CAudioDecoder: Unable to Init Codec while loading file rtmp://listen.onmyradio.net/JAZZFM
05:46:08 T:3079292800 M:1866264576 WARNING: Skin has invalid include: Breadcrumbs-Settings-Addons
05:46:10 T:2804685680 M:1860759552 WARNING: Previous line repeats 1 times.
05:46:10 T:2804685680 M:1860759552   ERROR: Texture manager unable to load file: special://masterprofile/Thumbnails/6/60e40c2e.png
05:49:04 T:3079292800 M:1865076736 WARNING: GetLabel - Unknown nodetype requested 0
05:49:09 T:2867219312 M:1870467072  NOTICE: -->Python Interpreter Initialized<--
05:49:20 T:2867219312 M:1866637312  NOTICE: -->Python Interpreter Initialized<--
05:49:22 T:3079292800 M:1866633216   ERROR: CAudioDecoder: Unable to Init Codec while loading file rtmp://listen.onmyradio.net/JAZZFM

still working for me (i'm listening to robbie vincent at the moment Wink)

can you pastebin a debug log?

t0mm0
Reply
#7
t0mm0 Wrote:still working for me (i'm listening to robbie vincent at the moment Wink)

can you pastebin a debug log?

t0mm0

I tried Robbie Vincent's Essential Rhytms, it doesn't work. In fact the only one that works seems to be the first selection, Live Stream - Christian Bragg.

Here is the pastebin that doesn't work: Sorry it took so long, been rather busy.

http://pastebin.com/vi6qUcRV


Here is the pastebin that works with the Live Stream - Christian Bragg:
http://pastebin.com/KfdqQmWX
Reply
#8
speed32219 Wrote:I tried Robbie Vincent's Essential Rhytms, it doesn't work. In fact the only one that works seems to be the first selection, Live Stream - Christian Bragg.

Here is the pastebin that doesn't work: Sorry it took so long, been rather busy.

http://pastebin.com/vi6qUcRV


Here is the pastebin that works with the Live Stream - Christian Bragg:
http://pastebin.com/KfdqQmWX

it looks like you have a rule in playercorefactory.xml which is forcing paplayer and overriding the default rule which selects dvdplayer for rtmp streams.

can you post your playercorefactory.xml file?

t0mm0
Reply
#9
t0mm0 Wrote:it looks like you have a rule in playercorefactory.xml which is forcing paplayer and overriding the default rule which selects dvdplayer for rtmp streams.

can you post your playercorefactory.xml file?

t0mm0

I made some changes to playercorefactory.xml (There were some PAPlayer entries, and one was in the JazztFM section) and I now have audio. But, again the first selection plays great as before (Live Stream), but the other channels play music normal but voice sounds like Mickey and Mini mouse.

Here is my current playercorefactory.xml

Code:
<playercorefactory>
  <players>
    <!-- These are compiled-in as re-ordering them would break scripts
    The following aliases may also be used:
      audiodefaultplayer, videodefaultplayer, videodefaultdvdplayer
    <player name="DVDPlayer" audio="true" video="true" />
    <player name="DVDPlayer" /> placeholder for MPlayer
    <player name="PAPlayer" audio="true" />
    -->
  </players>

  <rules name="system rules">
    <rule name="rtv" protocols="rtv" player="DVDPlayer" />
    <rule name="hdhomerun/myth/rtmp/mms/udp" protocols="hdhomerun|myth|cmyth|rtmp|mms|mmsh|udp" player="DVDPlayer" />
    <rule name="lastfm/shout" protocols="lastfm|shout" player="DVDPlayer" />
[b]<!-- Was PAPlayer  Above--->[/b]
    <!-- dvdplayer can play standard rtsp streams -->
    <rule name="rtsp" protocols="rtsp" filetypes="!(rm|ra)"player="DVDPlayer" />
[b]<!-- Was PAPplayer  Above -->[/b]  
<!-- Internet streams -->
    <rule name="streams" internetstream="true">
      <rule name="flv/aacp/sdp" mimetypes="video/x-flv|video-flv|audio/aacp|application/sdp" player="DVDPlayer" />
      <rule name="mp2" mimetypes="application/octet-stream" filetypes="mp2" player="PAPlayer" />
    </rule>

    <!-- DVDs -->
    <rule name="dvd" dvd="true" player="videodefaultdvdplayer" />
    <rule name="dvdfile" dvdfile="true" player="videodefaultdvdplayer" />
    <rule name="dvdimage" dvdimage="true" player="videodefaultdvdplayer" />

    <!-- Only dvdplayer can handle these normally -->
    <rule name="sdp/asf" filetypes="sdp|asf" player="DVDPlayer" />

    <!-- Pass these to dvdplayer as we do not know if they are audio or video -->
    <rule name="nsv" filetypes="nsv" player="DVDPlayer" />
  </rules>

I just need to get rid of the mickey and mini mouse voices and everything would be 100%.
Starting XBMC, Platform: Linux (Ubuntu 10.10, 2.6.35-28-generi
c i686). Built on Mar 9 2011 (Git:Unknown)
Reply
#10
Well, I see what the problem is, but have no idea on how to fix it. Here are some snippets from the xbmc.log.

Code:
#Working

10:04:06 T:3078076288 M:1797185536  NOTICE: DVDPlayer: Opening: http://listen.onmyradio.net:8050/
10:04:06 T:3078076288 M:1797185536 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
10:04:06 T:2896087920 M:1797185536  NOTICE: Creating InputStream
10:04:07 T:2896087920 M:1797185536  NOTICE: Creating Demuxer
10:04:09 T:2896087920 M:1792225280  NOTICE: Opening audio stream: 0 source: 256
10:04:09 T:2896087920 M:1792225280  NOTICE: Finding audio codec for: 86018
10:04:09 T:2896087920 M:1792225280  NOTICE: Creating audio thread
10:04:09 T:2827897712 M:1792225280  NOTICE: running thread: CDVDPlayerAudio::Process()
10:04:09 T:2896087920 M:1792225280 WARNING: CDVDMessageQueue(video)::Put MSGQ_NOT_INITIALIZED
10:04:09 T:2827897712 M:1792225280   ERROR: CDVDPlayerAudio::DecodeFrame - Decode Error. Skipping audio packet
10:04:09 T:2827897712 M:1792225280  NOTICE: Creating audio device with codec id: 86018, channels: 2, sample rate: 44100, no pass-through
10:04:09 T:2827897712 M:1792995328 WARNING: CALSADirectSound::GetSpace - get space failed. err: -32 (Broken pipe)


[b]Not Working[/b]

10:08:24 T:2896087920 M:1793576960  NOTICE: trackinfo:
10:08:24 T:2896087920 M:1793576960  NOTICE:   timescale             32000.00
10:08:24 T:2896087920 M:1793576960  NOTICE:   length                337920624.00
10:08:24 T:2896087920 M:1793576960  NOTICE:   language              eng
10:08:24 T:2896087920 M:1793576960  NOTICE: sampledescription:
10:08:24 T:2896087920 M:1793576960  NOTICE:   sampletype            mp4a
10:08:24 T:2896087920 M:1793576960  NOTICE:   audiochannels         2.00
10:08:24 T:2896087920 M:1793576960  NOTICE:   audiosamplerate       32000.00
10:08:24 T:2896087920 M:1793576960  NOTICE:   aacaot                2.00
10:08:24 T:2896087920 M:1793576960  NOTICE:   audiocodecid          mp4a
10:08:24 T:2896087920 M:1793576960  NOTICE:   moovposition          153776388.00
10:08:24 T:2896087920 M:1793576960  NOTICE:   duration              10560.02
10:08:24 T:2896087920 M:1793196032  NOTICE: Opening audio stream: 0 source: 256
10:08:24 T:2896087920 M:1793196032  NOTICE: Finding audio codec for: 86018
10:08:24 T:2896087920 M:1793196032  NOTICE: Creating audio thread
10:08:24 T:2838387568 M:1793196032  NOTICE: running thread: CDVDPlayerAudio::Process()
10:08:24 T:2896087920 M:1793196032 WARNING: CDVDMessageQueue(video)::Put MSGQ_NOT_INITIALIZED
10:08:24 T:2838387568 M:1793196032  NOTICE: Creating audio device with codec id: 86018, channels: 2, sample rate: 32000, no pass-through
10:08:24 T:2838387568 M:1793069056 WARNING: CALSADirectSound::CALSADirectSound - requested samplerate (32000) not supported by hardware, using 44100 instead

Back to working (Selected the top feed again)
10:09:48 T:2838387568 M:1793404928 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
10:09:48 T:2838387568 M:1793404928   ERROR: GetDelay - snd_pcm_delay, alsa error: -32 - Broken pipe
10:09:48 T:2838387568 M:1793404928 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
10:09:50 T:2896087920 M:1793413120 WARNING: Previous line repeats 1 times.
10:09:50 T:2896087920 M:1793413120 WARNING: CDVDMessageQueue(video)::Put MSGQ_NOT_INITIALIZED
10:09:50 T:2838387568 M:1793413120   ERROR: Pause - pcm_pause, alsa error: -77 - File descriptor in bad state
10:09:50 T:2838387568 M:1793413120 WARNING: CALSADirectSound::CALSADirectSound - device is not able to pause playback, will flush and prefix with 0 frames
10:10:12 T:2838387568 M:1793310720 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
10:10:14 T:2896087920 M:1793310720 WARNING: Previous line repeats 1 times.
10:10:14 T:2896087920 M:1793310720 WARNING: CDVDMessageQueue(video)::Put MSGQ_NOT_INITIALIZED
10:10:14 T:2838387568 M:1793310720 WARNING: CALSADirectSound::CALSADirectSound - device is not able to pause playback, will flush and prefix with 0 frames
10:10:20 T:2924477296 M:1792016384  NOTICE: -->Python Interpreter Initialized<--
10:10:23 T:3078076288 M:1790021632  NOTICE: DVDPlayer: Opening: http://listen.onmyradio.net:8050/
10:10:23 T:3078076288 M:1790021632  NOTICE: CDVDPlayer::CloseFile()
10:10:23 T:3078076288 M:1790021632  NOTICE: DVDPlayer: waiting for threads to exit
10:10:24 T:2896087920 M:1790021632  NOTICE: CDVDPlayer::OnExit()
10:10:24 T:2896087920 M:1790021632  NOTICE: DVDPlayer: closing audio stream
10:10:24 T:2896087920 M:1790021632  NOTICE: Closing audio stream
10:10:24 T:2896087920 M:1790021632  NOTICE: Waiting for audio thread to exit
10:10:24 T:2838387568 M:1790021632  NOTICE: thread end: CDVDPlayerAudio::OnExit()
10:10:24 T:2896087920 M:1790021632  NOTICE: Closing audio device
10:10:24 T:2896087920 M:1790021632  NOTICE: Deleting audio codec
10:10:24 T:2896087920 M:1790021632  NOTICE: CDVDPlayer::OnExit() deleting demuxer
10:10:24 T:2896087920 M:1790021632  NOTICE: CDVDPlayer::OnExit() deleting input stream
10:10:24 T:3078076288 M:1790656512  NOTICE: DVDPlayer: finished waiting
10:10:24 T:3078076288 M:1790656512 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
10:10:24 T:2896087920 M:1790656512  NOTICE: Creating InputStream
10:10:25 T:2896087920 M:1790316544  NOTICE: Creating Demuxer
10:10:27 T:2896087920 M:1790181376  NOTICE: Opening audio stream: 0 source: 256
10:10:27 T:2896087920 M:1790181376  NOTICE: Finding audio codec for: 86018
10:10:27 T:2896087920 M:1790181376  NOTICE: Creating audio thread
10:10:27 T:2817407856 M:1790181376  NOTICE: running thread: CDVDPlayerAudio::Process()
10:10:27 T:2896087920 M:1790181376 WARNING: CDVDMessageQueue(video)::Put MSGQ_NOT_INITIALIZED
10:10:27 T:2817407856 M:1778245632 WARNING: Previous line repeats 1 times.
10:10:27 T:2817407856 M:1778245632   ERROR: CDVDPlayerAudio::DecodeFrame - Decode Error. Skipping audio packet
10:10:27 T:2817407856 M:1778245632  NOTICE: Creating audio device with codec id: 86018, channels: 2, sample rate: 44100, no pass-through

EDIT: Fixed, deleted user xbmc files, re-installed xbmc and that did the trick. It was something in the home xbmc directory and was affecting more than jazzfm, but glad I have my music back, great plugin.

Now running:
on all my systems.
Reply
#11
Is there any way to get this working again?

It stopped working a while back - I cant listen to JazzFM (script fails). Thanks if you can do this!
Reply
#12
I went into the code and did just a little tweaking...

You will need to find the default.py file in the plugin.audio.jazzfm directory which is in the addons directory...

Around line 29 change the RTMP_APP string to the following...

RTMP_APP = 'rtmp://listen.onmyradio.net/shoutcast/mp4:jazzfmPR.stream'

Then go down to the bottom of the file and comment out the following lines. (Place a # in front of them...)

#for show in shows:
# thumb = show.img['src']
# title = decode_unicode_references(show.h3.a.string)
# comment = decode_unicode_references(show.p.string)
# data_url = show.p.findNextSibling('p').a['data_url']
# add_stream(title, thumb, comment, data_url)


Hope this helps, I will try to do some more digging and try to get on-demand part working...

p.s. - Tested only on a windows machine...
Reply
#13
Thank you! I will try this out. Hopefully it will work on the Xbox version of XBMC. Im really hoping the 'on demand' part will be usable again - I really miss listening to Dinner Jazz in my living room.
Reply
#14
Image

So I rewrote the plugin it works with both the xbmc4xbox as audio plugin and xbmc as a addon.

I changed the name to Jazz FM on Demand.

plugin.audio.jazzfmondemand.1.1.0.zip

I have it working on both a windows machine and the original xbox.
Reply
#15
afishe2000 Wrote:Image

So I rewrote the plugin it works with both the xbmc4xbox as audio plugin and xbmc as a addon.

I changed the name to Jazz FM on Demand.

plugin.audio.jazzfmondemand.1.1.0.zip

I have it working on both a windows machine and the original xbox.

Thank you! it works great.
Reply

Logout Mark Read Team Forum Stats Members Help
[RELEASE] Jazz FM0