Frodo playback error - Unable to Init Codec
#1
I'm the maintainer of the XBMC Rdio music plugin. I've been trying to get this plugin to work with Frodo but am running into errors playing back the rtmp stream. Would appreciate any assistance as I'm not sure what the problem is.

Here's the error I'm getting:
Code:
18:34:39 T:140009702885120  NOTICE: Rdio: Executing Rdio 1.6.0 addon operation play with params {'play': 'True', 'mode': 'play', 'key': 't3539892'}
18:34:40 T:140009702885120   DEBUG: Rdio: Resolved playback URL for key 'rtmp' to rtmpe://fms.25AC.edgecastcdn.net:1935/8025AC/media.rd.io app=8025AC/media.rd.io playpath=mp3:s/music/1/3/d/1/13d1680515a64bc7849d71df3a303e00/full-192?80e2d2f4276a71565175a1c15d3f54afa75b3b2c9d58dd8727a70e981e6db682c1977b5c0d50ddde8983961607b6f5308261c5c504f2ada74a68b7e34ee417502c569f97da630ab24d83233b7ac8d887aa900ba07b2d399d5a01df1c14f3934ae38bdf1cd18b85c8e7a296ab87c79bccbd11c0739cdbae8e65963a9db0
18:34:40 T:140009702885120  NOTICE: Rdio: Executed Rdio addon operation play in 570 ms
18:34:40 T:140009702885120    INFO: Scriptresult: Success
18:34:40 T:140010228934528   DEBUG: WaitOnScriptResult- plugin returned successfully
18:34:40 T:140010228934528   DEBUG: CPlayerCoreFactory::GetPlayers(rtmpe://fms.25AC.edgecastcdn.net:1935/8025AC/media.rd.io app=8025AC/media.rd.io playpath=mp3:s/music/1/3/d/1/13d1680515a64bc7849d71df3a303e00/full-192?80e2d2f4276a71565175a1c15d3f54afa75b3b2c9d58dd8727a70e981e6db682c1977b5c0d50ddde8983961607b6f5308261c5c504f2ada74a68b7e34ee417502c569f97da630ab24d83233b7ac8d887aa900ba07b2d399d5a01df1c14f3934ae38bdf1cd18b85c8e7a296ab87c79bccbd11c0739cdbae8e65963a9db0)
18:34:40 T:140010228934528   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
18:34:40 T:140010228934528   DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
18:34:40 T:140010228934528   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtv
18:34:40 T:140010228934528   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: hdhomerun/myth/mms/udp
18:34:40 T:140010228934528   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
18:34:40 T:140010228934528   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
18:34:40 T:140010228934528   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
18:34:40 T:140010228934528   DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: streams
18:34:40 T:140010228934528   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: aacp/sdp
18:34:40 T:140010228934528   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mp2
18:34:40 T:140010228934528   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
18:34:40 T:140010228934528   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
18:34:40 T:140010228934528   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
18:34:40 T:140010228934528   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
18:34:40 T:140010228934528   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio
18:34:40 T:140010228934528   DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
18:34:40 T:140010228934528   DEBUG: CPlayerCoreFactory::GetPlayers: adding audiodefaultplayer (3)
18:34:40 T:140010228934528   DEBUG: CPlayerCoreFactory::GetPlayers: for video=0, audio=1
18:34:40 T:140010228934528   DEBUG: CPlayerCoreFactory::GetPlayers: adding player: PAPlayer (3)
18:34:40 T:140010228934528   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
18:34:40 T:140010228934528   DEBUG: CPlayerCoreFactory::GetPlayers: adding player: DVDPlayer (1)
18:34:40 T:140010228934528   DEBUG: CPlayerCoreFactory::GetPlayers: added 2 players
18:34:40 T:140009702885120    INFO: Python script stopped
18:34:40 T:140009702885120   DEBUG: Thread XBPyThread 140009702885120 terminating
18:34:41 T:140010228934528   ERROR: CAudioDecoder: Unable to Init Codec while loading file rtmpe://fms.25AC.edgecastcdn.net:1935/8025AC/media.rd.io app=8025AC/media.rd.io playpath=mp3:s/music/1/3/d/1/13d1680515a64bc7849d71df3a303e00/full-192?80e2d2f4276a71565175a1c15d3f54afa75b3b2c9d58dd8727a70e981e6db682c1977b5c0d50ddde8983961607b6f5308261c5c504f2ada74a68b7e34ee417502c569f97da630ab24d83233b7ac8d887aa900ba07b2d399d5a01df1c14f3934ae38bdf1cd18b85c8e7a296ab87c79bccbd11c0739cdbae8e65963a9db0
18:34:41 T:140010228934528 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder

I'm running this on Ubuntu 11.10. librtmp is installed:

Code:
$ dpkg -s librtmp0 | grep -i version
Version: 2.4~20110711.gitc28f1bab-1ubuntu0~ppa1~oneiric1

I'm resolving the playback URL like this:

Code:
xbmcplugin.setResolvedUrl(self.handle, True, xbmcgui.ListItem(path=stream_url))

Interestingly if I copy the stream URL (rtmpe://...) into a .strm file and load that manually the same error doesn't seem to occur, so it's obviously something that I'm doing wrong in the plugin. The same setup works fine with Eden, so it seems to be something different with Frodo?

Any pointers?
Reply
#2
Some more information. Adding this rule to "playercorefactory.xml" seems to fix (work around) the problem:

Code:
<rule name="rtmpe" protocols="rtmpe" player="DVDPlayer" />

Seems that if this isn't here, the PAPlayer is selected and fails. Any tips on why this is happening and how it can be fixed?
Reply
#3
So I've raised a bug ticket for this problem: http://trac.xbmc.org/ticket/13864

But in the meantime, perhaps someone may be able to help on this forum. The problem basically breaks down to this.

The following code section generates the error I mentioned in my first post:

Code:
listitem = xbmcgui.ListItem("Play")
listitem.setProperty('IsPlayable', 'true')
listitem.setInfo('music', { 'artist': 'Test Artist' })
xbmcplugin.addDirectoryItem(handle, sys.argv[0] + "?play", listitem, isFolder=False)
xbmcplugin.endOfDirectory(handle)

# Then later when the user selects "Play"
xbmcplugin.setResolvedUrl(handle, True, xbmcgui.ListItem(path="rtmpe://fms.25AC.edgecastcdn.net:1935/8025AC/media.rd.io app=8025AC/media.rd.io playpath=mp3:s/music/1/3/d/1/13d1680515a64bc7849d71df3a303e00/full-192)

However if I remove the call to "listitem.setInfo" playback succeeds.

Any ideas why this might be? Am I using the API incorrectly somehow?

Reply
#4
Hi, anyone have any ideas on this? This will be an issue for users of my Rdio plugin upgrading to Frodo. Is Trac the right place to raise this, or should it be in the github tracker? I'd like to have a fix or at least a workaround that doesn't involve modifying core xbmc config files before Frodo is released if possible.
Reply
#5
checking into this
Reply
#6
calling that setInfo method creates a MusicInfoTag on the underlying FileItem. PAPlayer is assumed if the underlying item has a MusicInfoTag.

not sure the best way to handle this.
Reply
#7
XBMC : 12.2
OX: OS X 10.8.3


I have tried to play the Kerrang! radio that is included in the XBMC Radio Addon however I get an error written in the xbmc.log file:

13:43:53 T:4702343168 NOTICE: [xbmcswift2] Request for "/station/12081" matches rule for function "get_stream_url"
13:43:53 T:4702343168 NOTICE: [plugin.audio.radio_de] get_station_by_station_id started with station_id=12081
13:43:53 T:4702343168 NOTICE: [plugin.audio.radio_de] __api_call started with path=broadcast/getbroadcastembedded, param={'broadcast': '12081'}
13:43:53 T:4702343168 NOTICE: [plugin.audio.radio_de] __urlopen opening url=http://rad.io/info/broadcast/getbroadcastembedded?broadcast=12081
13:43:53 T:4702343168 NOTICE: [plugin.audio.radio_de] __resolve_playlist started with stream_url=http://tx.whatson.com/icecast.php?i=kerrang.mp3.m3u
13:43:53 T:4702343168 NOTICE: [plugin.audio.radio_de] __urlopen opening url=http://tx.whatson.com/icecast.php?i=kerrang.mp3.m3u
13:43:53 T:4702343168 NOTICE: [plugin.audio.radio_de] __urlopen HTTPError: HTTP Error 403: Forbidden
13:43:53 T:4702343168 NOTICE: [plugin.audio.radio_de] String is missing: network_error
13:43:53 T:140735241150848 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.audio.radio_de/station/12081]

If I add Kerrang manually to my favourites with the following url: http://icy-e-03.sharp-stream.com/kerrang.mp3 (this URL is valid as it plays with DS Audio Synology)

I get the following in the xbmc.log:

13:34:28 T:140735241150848 ERROR: MP3Codec: Unable to determine file format of http://icy-e-3.sharp-stream.com/kerrang.mp3 (corrupt start of mp3?)
13:34:28 T:140735241150848 ERROR: CAudioDecoder: Unable to Init Codec while loading file http://icy-e-3.sharp-stream.com/kerrang.mp3
13:35:41 T:140735241150848 ERROR: MP3Codec: Error reading file
13:35:41 T:140735241150848 ERROR: MP3Codec: Unable to determine file format of http://icy-e-3.sharp-stream.com/kerrang.mp3 (corrupt start of mp3?)
13:35:41 T:140735241150848 ERROR: CAudioDecoder: Unable to Init Codec while loading file http://icy-e-3.sharp-stream.com/kerrang.mp3

I appreciate your input.

cheers

aussie
Reply

Logout Mark Read Team Forum Stats Members Help
Frodo playback error - Unable to Init Codec0