How to fix XBMC video addon for raspberry pi


20 posts
by s7mx1 » Tue May 22, 2012 10:18 am
I noticed that some video addons for some odd reason decided to specifically use PLAYER_CORE_DVDPLAYER in their code which may cause a lot trouble on raspberry pi. The easy fix will be to replace PLAYER_CORE_DVDPLAYER by PLAYER_CORE_AUTO.

I fixed the TVCatchup addon that way on my raspberry pi and it works brilliantly.
Posts: 79
Joined: Fri Sep 30, 2011 9:28 am
by pdagnall » Tue May 22, 2012 11:37 am
Hi there

Can you advise how please?

TIA.
Posts: 1
Joined: Wed May 09, 2012 8:28 pm
by welshblob » Tue May 22, 2012 11:48 am
Thanks for the tip
Posts: 131
Joined: Sat Jan 21, 2012 9:31 am
by itsonlyme » Tue May 22, 2012 1:39 pm
Thanks for this s7mx1.

Unfortunately the ITV Player addon still does not work although I have made this fix. I think this an XMBC addon problem, rather than an OpenElec or Raspberry one. Anybody know of a solution?, fails with a script error at the last moment, sometimes displays the first 2or 3 frames.
Posts: 119
Joined: Sun Feb 12, 2012 12:43 pm
by rey » Tue May 22, 2012 1:57 pm
Weirdly, my ITV Player plays absolutely fine!
Posts: 38
Joined: Fri May 04, 2012 8:01 am
by s7mx1 » Tue May 22, 2012 2:48 pm
itsonlyme wrote:Thanks for this s7mx1.

Unfortunately the ITV Player addon still does not work although I have made this fix. I think this an XMBC addon problem, rather than an OpenElec or Raspberry one. Anybody know of a solution?, fails with a script error at the last moment, sometimes displays the first 2or 3 frames.


I have not tried ITV addon. Will give it a try tonight to see if its caused by the same issue.
Posts: 79
Joined: Fri Sep 30, 2011 9:28 am
by welshblob » Tue May 22, 2012 3:41 pm
Might be useful to state what builds/distros of xbmc you are using whether the plugins work or not so we might be able to tell if its a general problem or not.
Posts: 131
Joined: Sat Jan 21, 2012 9:31 am
by fodi » Tue May 22, 2012 6:39 pm
how can i add extra video scripts/plugins for xbmc?
i have found one on github, that is not in the official repos, but i can't figure out how to add it
User avatar
Posts: 112
Joined: Wed Mar 14, 2012 9:03 pm
Location: Hungary
by itsonlyme » Wed May 23, 2012 9:33 am
Build of xmbc is OpenElec 11034.
Working Plugins are iplayer, 4OD, Demand 5, TV Catchup.
Non working plugin is ITV Player which fails just before it starts to play whilst "working" is showing.
Posts: 119
Joined: Sun Feb 12, 2012 12:43 pm
by s7mx1 » Wed May 23, 2012 11:20 am
itsonlyme wrote:Build of xmbc is OpenElec 11034.
Working Plugins are iplayer, 4OD, Demand 5, TV Catchup.
Non working plugin is ITV Player which fails just before it starts to play whilst "working" is showing.


Have you tried the latest ITV addon? I did not get that error with raspbmc.
Posts: 79
Joined: Fri Sep 30, 2011 9:28 am
by itsonlyme » Wed May 23, 2012 1:15 pm
Yes. I have the latest version of the itv plugin

This is an extract form the error log? Any clues anyone?

14:00:29 T:1241158752 NOTICE: -->Python Interpreter Initialized<--
14:00:41 T:1241158752 NOTICE: Mode: 3
14:00:41 T:1241158752 NOTICE: URL: 317439
14:00:41 T:1241158752 NOTICE: Name: 56 Up 2012-05-21. Second of a three-part documentary continuing the acclaimed Seven Up! series. It is nearly 50 years since the programme first began following a group of seven-year-old children.
14:00:41 T:1241158752 NOTICE: Getting Videofiles: 317439
14:00:42 T:1241158752 NOTICE: Caption:
14:00:42 T:1241158752 NOTICE: http://subtitles.secure.content.itv.com ... leExt=.xml
14:00:42 T:1241158752 NOTICE: Subtitles URL http://subtitles.secure.content.itv.com ... leExt=.xml
14:00:42 T:1241158752 NOTICE: Offset %d
14:00:42 T:1241158752 NOTICE: 0
14:00:42 T:1241158752 NOTICE: MEDIA ENTRY %d %s
14:00:42 T:1241158752 NOTICE: 0
14:00:42 T:1241158752 NOTICE: <VideoEntries>
<Video timecode="00:00:00:000" duration="00:46:47:560" rendition-offset="00:00:00:000">
<ClosedCaptioningURIs>
<URL><![CDATA[http://subtitles.secure.content.itv.com/CATCHUP/67113344/9ce3/4f0b/a499/4eb612af7c21/1-9771-0002-001_56Up_TX210512.xml?__gda__=1337785222_ee2c284847e1cfb5243f46d5595c2854&fileExt=.xml]]></URL>
</ClosedCaptioningURIs>
<MediaFiles base="rtmpe://cp72511.edgefcs.net/ondemand?auth=eaEbtdhbxdfd5cAdVanacbFdKdNamaHcNaydfasdWcQbucIbCdgdcbTcraadRdybBbM-bpVn96-eS-dAt2FDsmCtCs&amp;aifp=v002&amp;slist=production/">
14:00:42 T:1241158752 NOTICE: MEDIA ENTRY %d %s
14:00:42 T:1241158752 NOTICE: 1
14:00:42 T:1241158752 NOTICE: "Streaming" bitrate="400000" base="" tkn="">
<URL><![CDATA[mp4:production/priority/CATCHUP/67113344/9ce3/4f0b/a499/4eb612af7c21/1-9771-0002-001_7-UP-UK_TX210512_ITV400_16X9.mp4]]></URL>
</MediaFile>
14:00:42 T:1241158752 NOTICE: MEDIA ENTRY %d %s
14:00:42 T:1241158752 NOTICE: 2
14:00:42 T:1241158752 NOTICE: "Streaming" bitrate="600000" base="" tkn="">
<URL><![CDATA[mp4:production/priority/CATCHUP/67113344/9ce3/4f0b/a499/4eb612af7c21/1-9771-0002-001_7-UP-UK_TX210512_ITV600_16X9.mp4]]></URL>
</MediaFile>
14:00:42 T:1241158752 NOTICE: MEDIA ENTRY %d %s
14:00:42 T:1241158752 NOTICE: 3
14:00:42 T:1241158752 NOTICE: "Streaming" bitrate="800000" base="" tkn="">
<URL><![CDATA[mp4:production/priority/CATCHUP/67113344/9ce3/4f0b/a499/4eb612af7c21/1-9771-0002-001_7-UP-UK_TX210512_ITV800_16X9.mp4]]></URL>
</MediaFile>
14:00:42 T:1241158752 NOTICE: MEDIA ENTRY %d %s
14:00:42 T:1241158752 NOTICE: 4
14:00:42 T:1241158752 NOTICE: "Streaming" bitrate="1200000" base="" tkn="">
<URL><![CDATA[mp4:production/priority/CATCHUP/67113344/9ce3/4f0b/a499/4eb612af7c21/1-9771-0002-001_7-UP-UK_TX210512_ITV1200_16X9.mp4]]></URL>
</MediaFile>
</MediaFiles>
<TrackingEvents/>
</Video>
</VideoEntries>
14:00:43 T:1074000560 NOTICE: COMXPlayer: Opening: rtmpe://cp72511.edgefcs.net/ondemand?au ... roduction/ swfurl=http://www.itv.com/mercury/Mercury_VideoPlayer.swf playpath=mp4:production/priority/CATCHUP/67113344/9ce3/4f0b/a499/4eb612af7c21/1-9771-0002-001_7-UP-UK_TX210512_ITV1200_16X9.mp4 swfvfy=true
14:00:43 T:1074000560 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
14:00:43 T:1251648608 NOTICE: Thread COMXPlayer start, auto delete: false
14:00:43 T:1251648608 NOTICE: OMXClock using video as reference
14:00:43 T:1251648608 NOTICE: Creating InputStream
14:00:43 T:1251648608 WARNING: HandShake: Type mismatch: client sent 6, server answered 9
14:00:44 T:1251648608 NOTICE: OMXClock using video as reference
14:00:44 T:1251648608 ERROR: COMXCoreComponent::SetConfig - OMX.broadcom.clock failed with omx_err(0x80001005)
14:00:44 T:1251648608 ERROR: OMXClock::OMXReset error setting OMX_IndexConfigTimeClockState
14:00:44 T:1251648608 NOTICE: Creating Demuxer
14:00:45 T:1251648608 ERROR: RTMP_ReadPacket, failed to read RTMP packet header
14:00:45 T:1251648608 WARNING: could not find codec parameters for rtmpe://cp72511.edgefcs.net/ondemand?au ... roduction/ swfurl=http://www.itv.com/mercury/Mercury_VideoPlayer.swf playpath=mp4:production/priority/CATCHUP/67113344/9ce3/4f0b/a499/4eb612af7c21/1-9771-0002-001_7-UP-UK_TX210512_ITV1200_16X9.mp4 swfvfy=true
14:00:45 T:1251648608 ERROR: OpenDemuxStream - Error creating demuxer
14:00:45 T:1251648608 NOTICE: COMXPlayer::OnExit()
14:00:45 T:1251648608 NOTICE: COMXPlayer::OnExit() deleting input stream
14:00:46 T:1074000560 ERROR: Playlist Player: skipping unplayable item: 0, path [rtmpe://cp72511.edgefcs.net/ondemand?auth=eaEbtdhbxdfd5cAdVanacbFdKdNamaHcNaydfasdWcQbucIbCdgdcbTcraadRdybBbM-bpVn96-eS-dAt2FDsmCtCs&aifp=v002&slist=production/ swfurl=http://www.itv.com/mercury/Mercury_VideoPlayer.swf playpath=mp4:production/priority/CATCHUP/67113344/9ce3/4f0b/a499/4eb612af7c21/1-9771-0002-001_7-UP-UK_TX210512_ITV1200_16X9.mp4 swfvfy=true]
14:00:46 T:1241158752 ERROR: EndOfDirectory - called with an invalid handle.
14:00:46 T:1074000560 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
14:00:59 T:1215992928 NOTICE: Thread Jobworker start, auto delete: true
14:01:01 T:1224381536 NOTICE: Thread XBPyThread start, auto delete: false
Posts: 119
Joined: Sun Feb 12, 2012 12:43 pm
by s7mx1 » Wed May 23, 2012 1:22 pm
itsonlyme wrote:Yes. I have the latest version of the itv plugin

This is an extract form the error log? Any clues anyone?

14:00:45 T:1251648608 ERROR: RTMP_ReadPacket, failed to read RTMP packet header
14:00:45 T:1251648608 WARNING: could not find codec parameters for rtmpe://cp72511.edgefcs.net/ondemand?au ... roduction/ swfurl=http://www.itv.com/mercury/Mercury_VideoPlayer.swf playpath=mp4:production/priority/CATCHUP/67113344/9ce3/4f0b/a499/4eb612af7c21/1-9771-0002-001_7-UP-UK_TX210512_ITV1200_16X9.mp4 swfvfy=true


This looks like problem with the addon itself and it failed to download the RTMP stream. Suggest try a different program/episodes from itv addon and if it still failed then contact the addon maintainer. I would imagine the itv addon will certainly fail on the pc as well if you try to play the same content.
Posts: 79
Joined: Fri Sep 30, 2011 9:28 am
by itsonlyme » Fri May 25, 2012 12:44 pm
It is not very often I give up on anything, but this is driving me crazy.

As I said above I am using these five addons. iplayer, ITV Player, 4OD, Demand 5, and TV Catchup.
On OpenElec I cannot get ITV Player to work, but 4OD does.
On Raspbmc I cannot get 4OD to work, but ITV Player does.
Re-checked a few minutes ago targeting the same programs on each player. All the others work OK on both

Exactly the same settings in XBMC.

I find Raspbmc the better program for my use.

There are many different versions of the latest 4OD plugin where people have corrected the path issue in different ways, but perhaps they have corrected something else as well. The 4OD plugin fails at the moment you select an episode from the final selection screen, it shows the downloading window and returns an empty list with a retry hanging at 0%

If you have a working 4OD plugin please can you post it here and I can try that as my almost last ditch attempt, otherwise I will have to make do with two cards.

The other issue I have seen whilst trying to resolve the plugin problem is about rtmpdump. An ITV Player problem was resolved by replacing "librtmp.0.dylib" with a later copy, but I cannot find it on XBMC. Can anybody point me to the file location on the pi? (my unfamiliarity with Linux is showing up here!)

Many, many thanks

Malcolm
Posts: 119
Joined: Sun Feb 12, 2012 12:43 pm
by s7mx1 » Fri May 25, 2012 9:08 pm
On linux people usually compile it which is not difficult.

Here is the latest librtmp.so.0

http://db.tt/oXVYzoLA

which you need to put to
Code: Select all
/usr/lib/librtmp.so.0


I would also suggest you update xbmc which was built with the matching librtmp headers http://db.tt/50gK589V. Just extract to /opt folder.

itsonlyme wrote:It is not very often I give up on anything, but this is driving me crazy.

As I said above I am using these five addons. iplayer, ITV Player, 4OD, Demand 5, and TV Catchup.
On OpenElec I cannot get ITV Player to work, but 4OD does.
On Raspbmc I cannot get 4OD to work, but ITV Player does.
Re-checked a few minutes ago targeting the same programs on each player. All the others work OK on both

Exactly the same settings in XBMC.

I find Raspbmc the better program for my use.

There are many different versions of the latest 4OD plugin where people have corrected the path issue in different ways, but perhaps they have corrected something else as well. The 4OD plugin fails at the moment you select an episode from the final selection screen, it shows the downloading window and returns an empty list with a retry hanging at 0%

If you have a working 4OD plugin please can you post it here and I can try that as my almost last ditch attempt, otherwise I will have to make do with two cards.

The other issue I have seen whilst trying to resolve the plugin problem is about rtmpdump. An ITV Player problem was resolved by replacing "librtmp.0.dylib" with a later copy, but I cannot find it on XBMC. Can anybody point me to the file location on the pi? (my unfamiliarity with Linux is showing up here!)

Many, many thanks

Malcolm
Posts: 79
Joined: Fri Sep 30, 2011 9:28 am
by itsonlyme » Sun May 27, 2012 3:06 pm
Thanks s7mx1. I have installed these as your instruction but the problems persist.
I am now even more convinced that it is a plugin problem more than as raspberry one. People especially ones with Apple TV's are having the same sort of trouble.

Last night, that is before I installed these updates the iTV Player plugin refused to work returning the same error as with openelec. The night before that it was working fine with Rasbmc. In between I never had Raspberry on, let alone made any changes.

I am giving up on this for the time being, it is causing me far to much frustration. I will come back to it in a few weeks when hopefully the problems will have been sorted.

Once again many thanks for your help.
Posts: 119
Joined: Sun Feb 12, 2012 12:43 pm
by Samba123 » Sun May 27, 2012 11:27 pm
Thanks for the great tip s7mx1.

Worked a treat for me for the TVCatchup plugin.

For those who need help the specific fix is to amend the TVClibs2.py contained within the TVCatchup directory.

The edit as per the top of the thread is to change the default player in this .py file from:
PLAYER_CORE_DVDPLAYER to PLAYER_CORE_AUTO

Alternatively you can download the updated .py file from here instead:
http://dl.dropbox.com/u/22755617/TVClibs2.py

Hope that helps anyone who may still be stuck. ;)
Posts: 1
Joined: Sun May 27, 2012 11:24 pm
by colinmartin100 » Wed May 30, 2012 8:01 pm
I've made some progresss, I'll try to keep this short and simple. Happy to provide further instuctions on obtaining and copying the files if needed.

TVCatchup - Following guidance in this thread this is now working after I updated the relevant file.

ITV Player - After initially installing using Hitcher Correctlys Repo (I think this installed 1.06) it is now working after I subsequently installed the most recent version 1.07 found here: http://code.google.com/p/xbmc-itv-player/downloads/list

4oD - There is a newer version available, I suspect the Repos will be updated at some point. If you can't wait I obtained files from this thread and overwrote the ones in the existing pugin directory at /.xbmc/addons/plugin.video.4od
Posts: 1
Joined: Wed May 30, 2012 7:46 pm
by itsonlyme » Fri Jun 01, 2012 12:25 pm
I now have the ITV Player addon working using the latest version of OpenElec (11198). In this version RTMPDump has been updated.

4OD I also have working with a new version of the plugin at https://github.com/MossyTC/xbmc-4od/zipball/master
Posts: 119
Joined: Sun Feb 12, 2012 12:43 pm
by mrcormacity » Mon Jul 16, 2012 10:49 pm
hi can some on help find the default pi so i can change PLAYER_CORE_DVDPLAYER to
PLAYER_CORE_AUTO
as im new to the xbmc pls help
Posts: 2
Joined: Mon Jul 16, 2012 10:47 pm
by mrcormacity » Mon Jul 16, 2012 10:51 pm
s7mx1 wrote:I noticed that some video addons for some odd reason decided to specifically use PLAYER_CORE_DVDPLAYER in their code which may cause a lot trouble on raspberry pi. The easy fix will be to replace PLAYER_CORE_DVDPLAYER by PLAYER_CORE_AUTO.

I fixed the TVCatchup addon that way on my raspberry pi and it works brilliantly.


can u help me so i can replace PLAYER_CORE_DVDPLAYER by PLAYER_CORE_AUTO.

as i dont know were it is
im using raspbmc but icefilms and 1channel seems to be stuck when loading a film
Posts: 2
Joined: Mon Jul 16, 2012 10:47 pm