Jumpy: Jump into Python (and onto XBMC) Updated 22 Sep 2012

Discuss third-party additions, plugins and translations for PS3 Media Server

PMS-Jumpy: Need help with Linux implementation

Postby tmknight » Wed Dec 28, 2011 11:00 pm

Cheers for the second pair of eyes, infidel. I'm much closer and now getting the xbmc addon and subdirectories on my Bravia, just can't play anything - anyone have any experience with this Hulu plugin: http://gitorious.org/xbmc-hulu/pages/Home
http://forum.xbmc.org/showthread.php?t=45889

Cheers in advance
Last edited by tmknight on Thu Dec 29, 2011 4:01 pm, edited 1 time in total.
SubJunk Build or Custom from SVN (depends on my mood)
Xubuntu x64 (3.2)
AMD 64 X2 4800+ [OC 2.8GHz]
4GB DDR2
JRE 6 u[latest]
Sony KDL-40W5100
tmknight
 
Posts: 43
Joined: Fri Jan 08, 2010 5:18 pm

Re: PMS-Jumpy - Jump into Python (and onto XBMC)

Postby infidel » Wed Dec 28, 2011 11:49 pm

tmknight wrote:anyone have any experience with this Hulu plugin

Try the version from the bluecop repo, which is up to date. As previously stated, it's much easier to just install xbmc somewhere else and manage the repos and addons inside xbmc: dependencies and updates will be installed automatically and you have a gui interface to the settings. Once everything is running smoothly copy '~/.xbmc' to your headless setup.

If you prefer to do it all by hand:
  • unzip the addon to '~/.xbmc/addons'.
  • open up 'addon.xml' and find and install the dependencies: e.g. for the bluecop Hulu addon
    Code: Select all
      <requires>
        <import addon="xbmc.python" version="1.0"/>
        <import addon="script.module.beautifulsoup" version="3.0.8"/>
        <import addon="script.module.cryptopy" version="1.2.6"/>
      </requires>
    (Jumpy provides 'xbmc.python', you will need to install script.module.beautifulsoup and script.module.cryptopy in your addons folder)
  • open up 'resources/settings.xml' and edit it to reflect your preferences.
but this is definitely the hard way to go about it :) .
infidel
 
Posts: 278
Joined: Sun Aug 15, 2010 4:56 pm

Re: PMS-Jumpy: Need help with Linux implementation

Postby tmknight » Thu Dec 29, 2011 1:10 am

Done and done, thanks for the quick response, infidel. I was heading down that path but was cherry-picking, full copy (using vm with XBMC) has me oh-so-much-closer. Now can play a commercial, but not the actual video. I've tried a few other settings per XBMC forum, but no joy. I can play the following video via XBMC on my vm, but no joy via PS3MS; here's an example of the debug.log:
Code: Select all
[New I/O server worker #1-4] INFO  18:57:14.508 Starting transcode/remux of Bones - 7x4 - The Male in the Mail
[mkfifo] DEBUG 18:57:14.509 Starting mkfifo --mode=777 /tmp/ps3mediaserver/pmsencoder_transcoder_out_1325116634508_22
[mkfifo] DEBUG 18:57:14.510 Unix process ID (mkfifo): 4286
[mencoder] DEBUG 18:57:14.738 Starting mencoder -msglevel all=2 -quiet -prefer-ipv4 -oac lavc -of lavf -lavfopts format=dvd -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=4096:threads=2:acodec=ac3:abitrate=128 -ofps 25 -cache 16384 -vf harddup -o /tmp/ps3mediaserver/pmsencoder_transcoder_out_1325116634508_22 rtmpdump://rtmp2pms?-r=rtmpe%3A%2F%2Fhulu-369.fcod.llnwd.net%2Fa4957%2Fo23%3Fsessionid%3DsessionId%26as%3Dadobe-hmac-sha256%26av%3D1%26te%3Dconnect%26mp%3D369%2F60009369%26et%3D1325116809%26fmta-token%3Ddd0cae3c7ae930fe845ca146f972b18788fa84f480078fbb2ad295014a8a9cdf%26hgt%3DOZU7Pvs7j27-nhteNno7wuFJjx1UjffWKEskcWS8k9iE55xg0OWB2sZMt1wdkF_zT_CTL3GV4nifeNL49YcriO0RaxQK_CX6lgbBwdvd-2F2dBoEhyx8ah50QItANILGw6V1y8H6o3GVAt_kWp5TjZTHDalwAuuvs-xB45iyTIFD9xk161QudvnI0iG770FNcrr020ov3ehIMmdkf_Zrl5eigIjXMTeqLTs7fxfL1fgG-rt5cSKv8wbnc-nwbHEQddSq1jNK8qhGIDlxNEqb96LdbOFGOamhA78kmbuW5Sc%3D%26hgt_ver%3D331370278&-a=a4957%2Fo23%3Fsessionid%3DsessionId%26as%3Dadobe-hmac-sha256%26av%3D1%26te%3Dconnect%26mp%3D369%2F60009369%26et%3D1325116809%26fmta-token%3Ddd0cae3c7ae930fe845ca146f972b18788fa84f480078fbb2ad295014a8a9cdf%26hgt%3DOZU7Pvs7j27-nhteNno7wuFJjx1UjffWKEskcWS8k9iE55xg0OWB2sZMt1wdkF_zT_CTL3GV4nifeNL49YcriO0RaxQK_CX6lgbBwdvd-2F2dBoEhyx8ah50QItANILGw6V1y8H6o3GVAt_kWp5TjZTHDalwAuuvs-xB45iyTIFD9xk161QudvnI0iG770FNcrr020ov3ehIMmdkf_Zrl5eigIjXMTeqLTs7fxfL1fgG-rt5cSKv8wbnc-nwbHEQddSq1jNK8qhGIDlxNEqb96LdbOFGOamhA78kmbuW5Sc%3D%26hgt_ver%3D331370278&-y=mp4%3A369%2F60009369%2Fagave50234444_8057851_H264_1000&-W=http%3A%2F%2Fdownload.hulu.com%2Fhuludesktop.swf&-p=http%3A%2F%2Fdownload.hulu.com%2Fhuludesktop.swf
[mencoder] DEBUG 18:57:14.739 Reading pipe: /tmp/ps3mediaserver/pmsencoder_transcoder_out_1325116634508_22
[Thread-57] DEBUG 18:57:25.940 Stopping process: mencoder
[New I/O server worker #1-4] ERROR 18:57:25.939 There is no inputstream to return for Bones - 7x4 - The Male in the Mail
[Thread-57] DEBUG 18:57:25.941 Stopping Unix process 4286: mkfifo
I'e tried mplayer to no improvement. Seems to be working otherwise as I can "logon" and see my subscriptions/favorites, just not able to play the core video.

Current config: Python 2.7.2+, latest py4j, jre 6u30, SB57, ubuntu kernel 3.2.0.7

Thoughts?
Last edited by tmknight on Thu Dec 29, 2011 4:01 pm, edited 1 time in total.
SubJunk Build or Custom from SVN (depends on my mood)
Xubuntu x64 (3.2)
AMD 64 X2 4800+ [OC 2.8GHz]
4GB DDR2
JRE 6 u[latest]
Sony KDL-40W5100
tmknight
 
Posts: 43
Joined: Fri Jan 08, 2010 5:18 pm

Re: PMS-Jumpy - Jump into Python (and onto XBMC)

Postby rocco24 » Thu Dec 29, 2011 3:14 am

infidel wrote:Hi all, back again :).

rocco24 wrote:I already uninstalled the previous version of PMS so I don't think I have this issue.

I just tested SHB34 and couldn't reproduce your problem. Can you attach debug.log+jumpy.log for both a good run (right after installing SHB) and a bad run (after restarting PMS-SHB). It's hard to tell what's going on without logs.
Here are the logs for bad run. will post good run in little bit
Attachments
debug not working.zip
(18.3 KiB) Downloaded 40 times
jumpy not working.zip
(4.69 KiB) Downloaded 33 times
rocco24
 
Posts: 21
Joined: Sun Dec 11, 2011 11:28 pm

Re: PMS-Jumpy - Jump into Python (and onto XBMC)

Postby rocco24 » Thu Dec 29, 2011 3:19 am

rocco24 wrote:
infidel wrote:Hi all, back again :).

rocco24 wrote:I already uninstalled the previous version of PMS so I don't think I have this issue.

I just tested SHB34 and couldn't reproduce your problem. Can you attach debug.log+jumpy.log for both a good run (right after installing SHB) and a bad run (after restarting PMS-SHB). It's hard to tell what's going on without logs.
Here are the logs for bad run. will post good run in little bit
Attachments
jumpy.zip
Good run
(5.23 KiB) Downloaded 57 times
debug.zip
Good run
(20.45 KiB) Downloaded 45 times
rocco24
 
Posts: 21
Joined: Sun Dec 11, 2011 11:28 pm

Re: PMS-Jumpy - Jump into Python (and onto XBMC)

Postby infidel » Thu Dec 29, 2011 3:48 am

@ tmknight:

It looks like you don't have rtmpdump. Jumpy translates rtmp links to rtmpdump://rtmp2pms? pseudo-protocol for pmsencoder, which should launch rtmpdump as downloader and ffmpeg as transcoder:

pmsencoder.log wrote:2011-12-28 21:20:40 [INFO|PMSEncoder|launchTranscode|New I/O server worker #1-2]: invoking matcher for: rtmpdump://rtmp2pms?-r=rtmpe%3A%2F%2Fcp ... esktop.swf
2011-12-28 21:20:40 [INFO|PMSEncoder|launchTranscode|New I/O server worker #1-2]: 1 match ([rtmpdump://]) for: rtmpdump://rtmp2pms?-r=rtmpe%3A%2F%2Fcp ... esktop.swf
2011-12-28 21:20:41 [INFO|ProcessManager|handleDownloadUnix|New I/O server worker #1-2]: downloader command: /usr/local/bin/rtmpdump -o /tmp/ps3mediaserver/pmsencoder_downloader_out_1325125240321_156 -r "rtmpe://cp...esktop.swf
2011-12-28 21:20:41 [INFO|ProcessManager|handleTranscode|New I/O server worker #1-2]: transcoder command: ffmpeg -v 0 -y -threads 4 -i /tmp/ps3mediaserver/pmsencoder_downloader_out_1325125240321_156 -threads 4 -target ntsc-dvd -async 1 /tmp/ps3mediaserver/pmsencoder_transcoder_out_1325125240321_156

BTW rtmpdump needs to be patched for current hulu (and mtvnservices, e.g comedycentral) rtmp streams to work:

Code: Select all
diff --git a/librtmp/rtmp.c b/librtmp/rtmp.c
index 5311a8a..79fefae 100644
--- a/librtmp/rtmp.c
+++ b/librtmp/rtmp.c
@@ -2854,7 +2854,7 @@ HandleCtrl(RTMP *r, const RTMPPacket *packet)
   if (nType == 0x1A)
     {
       RTMP_Log(RTMP_LOGDEBUG, "%s, SWFVerification ping received: ", __FUNCTION__);
-      if (packet->m_nBodySize > 2 && packet->m_body[2] > 0x01)
+      if (packet->m_nBodySize > 2 && packet->m_body[2] > 0x02)
    {
      RTMP_Log(RTMP_LOGERROR,
             "%s: SWFVerification Type %d request not supported! Patches welcome...",

You can do this by hand, just change '0x01' to '0x02' as shown in librtmp/rtmp.c after cloning the repo. (build instructions are in the README, very straightforward).
infidel
 
Posts: 278
Joined: Sun Aug 15, 2010 4:56 pm

Re: PMS-Jumpy - Jump into Python (and onto XBMC)

Postby infidel » Thu Dec 29, 2011 4:43 am

rocco24 wrote:Here are the logs for bad run. will post good run in little bit


Both sets of logs ('good' and 'bad') show the veetle folder being browsed under jumpy, and the 'good' set shows a veetle stream being opened. I thought you said the problem was that you can only see jumpy once after installing SHB and then it disappears after a restart??? Please clarify what the issue is.

PS also please put all the logs into one zip file next time, it helps minimize the superfluous posts and keeps the thread concise and readable for others.
infidel
 
Posts: 278
Joined: Sun Aug 15, 2010 4:56 pm

Re: PMS-Jumpy - Jump into Python (and onto XBMC)

Postby rocco24 » Thu Dec 29, 2011 5:03 am

infidel wrote:
rocco24 wrote:Here are the logs for bad run. will post good run in little bit


Both sets of logs ('good' and 'bad') show the veetle folder being browsed under jumpy, and the 'good' set shows a veetle stream being opened. I thought you said the problem was that you can only see jumpy once after installing SHB and then it disappears after a restart??? Please clarify what the issue is.

PS also please put all the logs into one zip file next time, it helps minimize the superfluous posts and keeps the thread concise and readable for others.

Yes that's what the issue is I guess the bad log has info carried from the fresh installation and that's why it shows. Can I delete the content of these files on a second run that way it wont carry logs from previous session ?
PS: when I reinstalled SHB I don't delete the previous one it kinda overwrite it.
rocco24
 
Posts: 21
Joined: Sun Dec 11, 2011 11:28 pm

Re: PMS-Jumpy: Need help with Linux implementation

Postby tmknight » Thu Dec 29, 2011 6:32 am

infidel wrote:It looks like you don't have rtmpdump. Jumpy translates rtmp links to rtmpdump://rtmp2pms? pseudo-protocol for pmsencoder, which should launch rtmpdump as downloader and ffmpeg as transcoder


Interesting, I do have rtmpdump, I guess though unpatched. I'll have a go at patching.

Thanks for your help thus far!
Last edited by tmknight on Thu Dec 29, 2011 4:02 pm, edited 3 times in total.
SubJunk Build or Custom from SVN (depends on my mood)
Xubuntu x64 (3.2)
AMD 64 X2 4800+ [OC 2.8GHz]
4GB DDR2
JRE 6 u[latest]
Sony KDL-40W5100
tmknight
 
Posts: 43
Joined: Fri Jan 08, 2010 5:18 pm

Re: PMS-Jumpy - Jump into Python (and onto XBMC)

Postby infidel » Thu Dec 29, 2011 6:54 am

rocco24 wrote:I guess the bad log has info carried from the fresh installation

The logs get overwritten each time you start PMS, so there shouldn't be any carryover. Both your debug.logs open with:
[main] TRACE 18:16:44.147 error killing old proc java.io.FileNotFoundException: pms.pid (The system cannot find the file specified)
which suggests that maybe there's something wrong with the installation.

rocco24 wrote:PS: when I reinstalled SHB I don't delete the previous one it kinda overwrite it.

Kinda wish you would have mentioned this sooner :). Uninstall, then delete or rename your PMS-SHB folder and do a completely fresh install and see if that helps.
infidel
 
Posts: 278
Joined: Sun Aug 15, 2010 4:56 pm

PreviousNext

Return to Additions and Plugins

Who is online

Users browsing this forum: No registered users and 5 guests