NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 … 4 5 6 7 8 … 56 Next »
myGBPVR: use XMBC as GBPVR FrontEnd

 
  • 0 Vote(s) - 0 Average
myGBPVR: use XMBC as GBPVR FrontEnd
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#121
2010-05-08, 09:13 PM
well the dates are finally correct on my machine, but i can't play any files..
it just hangs and i have to quit it..
i get a lot of these:
16:05:21 T:748 M:403492864 ERROR: DIRECTORY::CDirectory::GetDirectory - Error getting ?
16:05:21 T:748 M:403492864 ERROR: CGUIMediaWindow::GetDirectory(?) failed
everything else seems to work except i don't have any .nfo files yet and no recordings show up in library view..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
Ton
Offline

Member

Posts: 233
Threads: 16
Joined: Aug 2005
#122
2010-05-09, 07:09 PM
Hi Martyn,

Super man!!! Really cool that you got this to work in your original XBOX...

I'll also have a look at the AES module (makes installing a lot easier when compared to PyCrypto)....

Great work
martynw Wrote:Hey Ton,

I persevered with this and got it to work:

Code:
def _AESEncrypt(self, clear_bytes, key_bytes, iv_bytes):

    import aes

    try:
        mode = aes.AESModeOfOperation.modeOfOperation["CBC"]
        
        key_bytes = map(ord, key_bytes)
        key_size = len(key_bytes)
        assert key_size in aes.keySize.values(), 'invalid key size: %s' % key_size

        clear_bytes = aes.append_PKCS7_padding(clear_bytes)
        
        iv_bytes = map(ord, iv_bytes)

        aes_cypher = aes.AESModeOfOperation()        
        (mode, orig_len, encrypted) = aes_cypher.encrypt(clear_bytes,mode,key_bytes,key_size,iv_bytes)
        
        return ''.join("%c" % i for i in encrypted)
        
    except:
        import traceback
        traceback.print_exc()
        return

myGBPVR on original XBox XBMC rocks!!

Martyn
//Ton
Ton
Offline

Member

Posts: 233
Threads: 16
Joined: Aug 2005
#123
2010-05-09, 07:19 PM
Hi pbs,

What settings / changes did you use to get the dates to sort out?? Just wondering....

pBS Wrote:well the dates are finally correct on my machine, but i can't play any files..
it just hangs and i have to quit it..
i get a lot of these:
16:05:21 T:748 M:403492864 ERROR: DIRECTORY::CDirectory::GetDirectory - Error getting ?
16:05:21 T:748 M:403492864 ERROR: CGUIMediaWindow::GetDirectory(?) failed
everything else seems to work except i don't have any .nfo files yet and no recordings show up in library view..
With regards to playing files, there's three ways:
1) Directly from myGBPVR, but this requires a direct (SMB) mapping to your "Recordings" directory...
2) Using file mode, which requires you to define a "source" in XBMC (videos) that points to your recordings directory
3) Using library mode. This has the most pre-requisites. It requires you to:
a) define a source that points to where your recordings live, and define it as containing "TV Shows"
b) generate a "tvshow.nfo" for each show you're recording which is used for downloading logo's and fan-art
c) rename your recordings to a format XBMC understands (season/episode must be included)
d) generate a "nfo" file for each recording
e) scanning the source, then XBMC will pick up any existing tv-shows...

I have written the "2xbmc" program that takes a recording from GBPVR, copies it to the defined destination (my NAS in my case) and it then:
- renames the file so XBMC recognises it
- generates an nfo file for the recording (using the XML-data in the altenate stream of the recording)
- copies the "comskip.txt" file if it exists
- generates a "tvshow.nfo" for the show if it doesn't exist yet

Other have used other methods... I've been using library mode so-far (since I get all the meta-data AND it looks really good), but I do see a point for viewing it directly from myGBPVR (makes things a lot simpler and saves disk-space in the end)....

The messages you are getting seem to be normal (when using scripts in XBMC). I get them as well, but it doesn't hurt any. Maybe something not 100% compliant in my skin.xml files...

When you say it hangs and just sits there, don't you see any messages in the log? Otherwise set XBMC to debug-level (and I think I am generating messages one way or the other)....
//Ton
carpeVideo
Offline

Posting Freak

Posts: 824
Threads: 23
Joined: Dec 2006
#124
2010-05-09, 10:43 PM
I'll be doing a new release for vidImport & guidePlus that will make library mode better essentially allowing you to point at GBPVRs single recording directory for both movies and series (as long as series are named with seas and ep) and it will utilize XBMC's lookup capability which will give you fanart etc.

CV
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#125
2010-05-10, 11:29 AM (This post was last modified: 2010-05-10, 12:30 PM by pBS.)
sweet Carpe...Smile sounds good...
yea, i think i changed library mode in xbmc or something...but it all started working when i used the new beta..
now i see shows listed on recent recordings, but when i try to play them, i get errors about playback and button focus..
Quote:16:20:56 T:3236 M:378388480 ERROR: Control 201 in window 13002 has been asked to focus, but it can't
16:21:24 T:3236 M:377843712 ERROR: Exception in python script's onAction
16:21:24 T:3236 M:377843712 NOTICE: Traceback (most recent call last):
16:21:24 T:3236 M:377839616 NOTICE: File "C:\Program Files\XBMC\scripts\myGBPVR\resources\src\gbpvr\details.py", line 84, in onAction
16:21:24 T:3236 M:377839616 NOTICE: if action.getId() in (EXIT_SCRIPT):
16:21:24 T:3236 M:377839616 NOTICE: File "C:\Program Files\XBMC\scripts\myGBPVR\resources\src\gbpvr\details.py", line 143, in onClick
16:21:24 T:3236 M:377835520 NOTICE: self.goPlay()
16:21:24 T:3236 M:377835520 NOTICE: File "C:\Program Files\XBMC\scripts\myGBPVR\resources\src\gbpvr\details.py", line 103, in goPlay
16:21:24 T:3236 M:377835520 NOTICE: website = urllib2.urlopen(theUrl)
16:21:24 T:3236 M:377835520 NOTICE: File "special:\\xbmc\system\python\python24.zlib\urllib2.py", line 130, in urlopen
16:21:24 T:3236 M:377835520 NOTICE: File "special:\\xbmc\system\python\python24.zlib\urllib2.py", line 358, in open
16:21:24 T:3236 M:377835520 NOTICE: File "special:\\xbmc\system\python\python24.zlib\urllib2.py", line 376, in _open
16:21:24 T:3236 M:377831424 NOTICE: File "special:\\xbmc\system\python\python24.zlib\urllib2.py", line 337, in _call_chain
16:21:24 T:3236 M:377810944 NOTICE: File "special:\\xbmc\system\python\python24.zlib\urllib2.py", line 1021, in http_open
16:21:24 T:3236 M:377794560 NOTICE: File "special:\\xbmc\system\python\python24.zlib\urllib2.py", line 996, in do_open
16:21:24 T:3236 M:377794560 NOTICE: urllib2
16:21:24 T:3236 M:377794560 NOTICE: .
16:21:24 T:3236 M:377794560 NOTICE: URLError
16:21:24 T:3236 M:377794560 NOTICE: :
16:21:24 T:3236 M:377794560 NOTICE: <urlopen error (10060, 'Operation timed out')>
hadn't seen those errors before..

i'd like to try easiest mode to play, maybe direct file method..
but i don't see any 'add dir' in my videos library..just blank list..
i remember it used to be there..hence i think i changed modes or something..[i could play files before from xbmc]
any difference between first 2 methods of playback?

aha, got the "add source' back and added..
i've added the smb path in mygbpvr config for my recordings dir..but no joy...

EDIT: after a restart it's now adding library info...wee Smile
[it was the adding of source that did the trick..thanx for the excellent explanation of play methods..Smile]

sweet! plays from 'watch recordings' but not from lists in mygbpvr..[like 'currently added' etc]
any thoughts as to why
now to get video deinterlacing to work properly..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#126
2010-05-10, 02:59 PM
i made an enhanced .nfo generator batch file...can point to any path even on network..
i was wondering if the "uid" number episode could be matched on scrapers info?
like EP00848357.0073 for episode number, straight from TMC data...
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
carpeVideo
Offline

Posting Freak

Posts: 824
Threads: 23
Joined: Dec 2006
#127
2010-05-10, 06:48 PM (This post was last modified: 2010-05-10, 07:56 PM by carpeVideo.)
PBS here is what I have found about nfo files for XBMC. Keep in mind my goal is to a) get library mode working for all GBPVR files and b) make it work without moving files. XBMC does a pretty good job scraping info by itself if tv shows and movies are in separate directory trees and if the filename has the right syntax (show name.s00e00) or movie name (year). So in many cases its better with no NFO unless you want exactly the info that GBPVR got from the guide. In addition, using episode nfo's for movies really messes with library mode since it has a bunch of show with the same episode number.

Series:
If a tvshow.nfo exists XBMC will not scrape for additional information on that series unless there is a URL within separate from any XML - this is important if you want XBMC to grab banners and fan art for itself, any NFO without the URL will kill that function. So I actually recommend no NFO for tv series unless it is one that XBMC gets wrong (for example it always thinks Scifis (or BBCs) Merlin is "Mr. Merlin" from the '70s and it things V is the old V. In that case generating an NFO with nothing but a URL with the series info gets it back on track and you don't lose the banners etc. for the library mode. (EG: http://www.thetvdb.com/index.php?tab=series&id=94971 for V (2009). This is what I plan to have vidImport or guidePlus generate for any directories with TV series in them.

Movies:
Here it falls down if the movie doesn't have the year in the title and its a remake (for obvious reasons) and an NFO matching the movie name with a URL for the scraper should work as well. It also may get messed up by the GBPVR date string but this can be fixed with a clean string regex in XMBC'
s advancedsettings.xml

Using the above method will let it scrape correctly but not in the native GBPVR dir since movies and series are mixed. So to keep them in the native GBPVR dirs you have to do two things 1) create two XBMC sources pointing to the same directory with ones content as TV and the others as Movies.

However, you can't just copy the same source as XBMC considers their content the same even though it was added twice. I "fooled" XBMC by adding one as a network drive (ie 192.168.0.12/recordingVideos) and the other as a drive assigned to a letter (ie y:/recordingVideos) then for the Movies I added this setting to the advancedsettings.xml for XBMC :
- <excludefromscan>
<regexp>[\._ \-][Ss]([0-9]+)[\.\-]?[Ee]([0-9]+)[\._ \-]([^\\/]*)</regexp>
</excludefromscan>

Which basically causes movie scans to ignore any file with a season episode string assuming a renamer is used.

The series matching regex setting doesn't seem to work so I used a more drastic measure. I added a tvshow.nfo in any movie directory that simply has a showname of "z.ignore" this basically creates 1 blank tv series called z.ignore and causes XBMC to not scrape. Hopefully further exploration will get rid of this need,perhaps I am using the wrong syntax.

With that I end up using library mode almost exclusively since the look is so much nicer.

CV
Ton
Offline

Member

Posts: 233
Threads: 16
Joined: Aug 2005
#128
2010-05-10, 06:57 PM
Hi,
pBS Wrote:sweet Carpe...Smile sounds good...
yea, i think i changed library mode in xbmc or something...but it all started working when i used the new beta..
now i see shows listed on recent recordings, but when i try to play them, i get errors about playback and button focus..

hadn't seen those errors before..

i'd like to try easiest mode to play, maybe direct file method..
but i don't see any 'add dir' in my videos library..just blank list..
i remember it used to be there..hence i think i changed modes or something..[i could play files before from xbmc]
any difference between first 2 methods of playback?

aha, got the "add source' back and added..
i've added the smb path in mygbpvr config for my recordings dir..but no joy...

EDIT: after a restart it's now adding library info...wee Smile
[it was the adding of source that did the trick..thanx for the excellent explanation of play methods..Smile]

sweet! plays from 'watch recordings' but not from lists in mygbpvr..[like 'currently added' etc]
any thoughts as to why
now to get video deinterlacing to work properly..

I think the version of "detail.py" still has a small error in it...

Open it in an editor and replace this line:
Code:
theUrl = "http://192.168.2.98/gbpvr/"
With this:
Code:
theUrl = "http://" self.settings.GBPVR_HOST+ ":" + self.settings.GBPVR_PORT + "/gbpvr/"

I'll make an updated (beta) release soon, that incorportates this fix (and my current suggestion for the date/time issues).... I'm still waiting on some more info to get the date/time thingy to work correctly....
//Ton
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#129
2010-05-11, 03:03 AM (This post was last modified: 2010-05-11, 03:54 AM by pBS.)
that didn't seem to help..
but i notice an error in how it handles series...mine have a " *" at end of series name...but not at end of dir or file.. * is ignored by gbpvr in filenames and dirs...so i get this:
21:52:29 T:2568 M:353325056 ERROR: Control 201 in window 13001 has been asked to focus, but it can't
21:52:37 T:2568 M:353308672 NOTICE: SMB Path opening: SMB://pvr2/e/mpg/How I Met Your Mother */How I Met Your Mother_20100510_19001930.mpg
21:52:37 T:3804 M:352059392 NOTICE: DVDPlayer: Opening: SMB://pvr2/e/mpg/How I Met Your Mother */How I Met Your Mother_20100510_19001930.mpg

it should be without the * on the dir names...otherwise ok..

yep, that's what it was...i scrolled down to a show without a * and it played fine without your modification above..
i tried that mod and it wouldn't even show details anymore..

aha: missing a + in your line..
theUrl = "http://" + self.settings.GBPVR_HOST + ":" + self.settings.GBPVR_PORT + "/gbpvr/"
still, with corrected stream, info shows but play says:
22:19:29 T:3000 M:335941632 NOTICE: theUrl = "http://" + self.settings.GBPVR_HOST + ":" + self.settings.GBPVR_PORT + "/gbpvr/"
22:19:29 T:3000 M:335937536 NOTICE: TypeError
22:19:29 T:3000 M:335937536 NOTICE: :
22:19:29 T:3000 M:335937536 NOTICE: cannot concatenate 'str' and 'int' objects

theUrl = "http://" + self.settings.GBPVR_HOST + ":" + str(self.settings.GBPVR_PORT) + "/gbpvr/"
works Smile...so it must have been just the port..
still have the * problem tho..[and don't forget the space before it]
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#130
2010-05-11, 03:39 AM (This post was last modified: 2010-05-11, 04:30 AM by pBS.)
on a side note [my original post] how do i get it showing my existing info and thumbs only?
i see thumbs but no info in 'watch recordings'
everywhere else i see the proper info and thumbs..
tried both library mode and file mode..

what do you mean by "generating an NFO with nothing but a URL with the series info"?
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (17): « Previous 1 … 11 12 13 14 15 … 17 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  External tool: Transfer Season Record schedules from GBPVR to NPVR kendrak24 37 21,312 2013-04-11, 05:58 AM
Last Post: kendrak24
  Translations for nPVR and GBPVR MixMan 19 8,232 2011-08-25, 07:32 PM
Last Post: sub
  N3XT Rev 001.6 with GBPVR support psicotron3 0 1,993 2009-08-30, 08:57 PM
Last Post: psicotron3
  Showname - Rename utility for GBPVR recordings Anthony 0 1,482 2009-03-05, 05:40 PM
Last Post: Anthony
  GBPVR install on WINE/Ubuntu Gutsy fhmanas 28 15,953 2009-02-03, 12:53 PM
Last Post: fhmanas
  GBPVR Wellington Xmas drinks psycik 44 11,134 2008-12-08, 05:44 AM
Last Post: skippy_nz
  Possible infection found on GBPVR site? suddste 40 13,172 2008-10-21, 01:06 AM
Last Post: sub
  GBPVR LCD Plugin for LCDSmartie fooman1 146 68,687 2008-07-03, 08:04 PM
Last Post: prada115
  GameZone, Now much more than an Emulator frontend idkpmiller 0 1,461 2008-06-08, 05:56 AM
Last Post: idkpmiller
  PSP Streaming from GBPVR psycik 11 4,824 2008-06-03, 11:58 AM
Last Post: fuzzweed

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode