CCML Plugin (Updated 2012-05-20)

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

CCML Plugin (Updated 2012-05-20)

Postby jdknight » Wed May 25, 2011 9:56 pm

Custom Category Media Library
Plugin Version: 4
Supported PMS Versions: 1.25.1, 1.40, 1.52 and Higher
Download (PMS >= v1.52): http://code.google.com/p/ps3mediaserver-plugin-ccml/downloads/detail?name=CCML_v5_x1.52.jar
Download (v1.51 >= PMS >= v1.50): http://code.google.com/p/ps3mediaserver-plugin-ccml/downloads/detail?name=CCML_v5_x1.50.jar
Download (PMS < v1.50): http://code.google.com/p/ps3mediaserver-plugin-ccml/downloads/detail?name=CCML_v5_Legacy.jar
Homepage: http://code.google.com/p/ps3mediaserver-plugin-ccml/
Requirements: Java 6 or Higher

This is a plugin for PS3 Media Server; named Custom Category Media Library (or CCML). The plugin provides individuals with a way of categorizing their media by allowing each individual media file to have their own meta file for description.

Change Log:
  • v5 - Supporting filters for folder meta files and user interface improvements.
  • v4 - Supporting multiple Master categories per meta file, alternative meta folder and user interface improvements.
  • v3 - Supporting Java 6, hide unused categories and language updates.
  • v2 - Supporting Master categories and folder meta files.
  • v1 - Initial release. Supporting meta files for media content.
Initial Post:
I made a plugin for myself and wanted to share it with others as well.

It's called "Custom Category Media Library". What is does it allows you so specify a '.meta' file for each media file (kind of like how you some may have a thumbnail for each media file; '.cover.png'). In this file you can add categories for a media file and browse through categories on your PS3. For example, for my own collection of media I now add a 'Genre' and a 'Year' to each video file. Now I can browse my videos by the normal file browsing and now by genre/year as well.

Also put the plugin code online as well:
http://code.google.com/p/ps3mediaserver-plugin-ccml/
Last edited by jdknight on Sun May 20, 2012 2:06 pm, edited 5 times in total.
jdknight
 
Posts: 19
Joined: Wed May 25, 2011 9:42 pm
Top

Re: CCML Plugin

Postby bvone21 » Tue Jun 14, 2011 12:00 am

I don't know why no one's posted a reply yet, this is a great idea. Especially if a script can be created to create the meta files from themoviedb or something. As it stands with my full collection ripped, it's a lot of manual work to create.
bvone21
 
Posts: 1
Joined: Tue May 18, 2010 2:13 pm
Top

Re: CCML Plugin

Postby odub303 » Wed Jun 15, 2011 1:26 am

I couldn't agree more. This is a very useful plugin and could really boost the overall utility of the media server.
odub303
 
Posts: 9
Joined: Thu Mar 19, 2009 11:09 pm
Top

Re: CCML Plugin

Postby lot2smile4 » Thu Jun 16, 2011 3:33 pm

I was wondering if using MyMovies (www.mymovies.dk) would generate the relevant info files to go with the movies in the right folders so that this plugin would work well for the genre sorting, etc.

I may give this a go with the latest version of PMS (1.25) and see what results I get with it... I know that it can generate XML formatted files with actors, genres and everything in it, is this something that this addon could be adapted to work with?

Thanks for your help, and yes, this plugin does seem like a great idea :)
Running SUSE 11.3 from the PMServ distro
Updated PMS to SVN version 413 (although at the moment trialling pms-mlx)
Running Java 1.6.0 b20 (latest for SUSE that I can find!)
Rendering on PS3 or Samsung 40C7000
lot2smile4
 
Posts: 33
Joined: Fri Dec 17, 2010 3:49 pm
Top

Re: CCML Plugin

Postby odub303 » Fri Jun 17, 2011 11:58 pm

I'd be interested to hear if this would work with My Movies metadata as well. Good idea.
odub303
 
Posts: 9
Joined: Thu Mar 19, 2009 11:09 pm
Top

Re: CCML Plugin

Postby lot2smile4 » Sun Jun 19, 2011 12:16 am

Having looked at the generated metadata, I think that the format would be wrong, as it appears that the information is generated in XML format, so it would need to be able to read something along the lines of:
Code: Select all

<movie>
  <createdby>My Movies</createdby>
  <title>Aeon Flux</title>
  <originaltitle>Aeon Flux</originaltitle>
  <sorttitle>Aeon Flux</sorttitle>
  <rating>5</rating>
  <year>2005</year>
  <top250>
  </top250>
  <votes>
  </votes>
  <outline>Academy Award®-winner Charlize Theron stars as Aeon Flux, the underg
round operative fighting totalitarian rule in 25th-century Earth's last living city.
Aeon is the rebels' best hope of overthro...</outline>
  <plot>Academy Award®-winner Charlize Theron stars as Aeon Flux, the undergro
nd operative fighting totalitarian rule in 25th-century Earth's last living city.

Aeon is the rebels' best hope of overthrowing the oppressively sterile, "perfect"
 society.  But while on assignment to gun down the government's leader, Aeon u
covers a web of startling secrets that could completely change the world's futu
e in this gripping sci-fi action thriller based on the ground-breaking MTV anim
ted series.</plot>
  <tagline>
  </tagline>
  <runtime>89 min.</runtime>
  <thumb>
  </thumb>
  <mpaa>PG-13</mpaa>
  <watched>false</watched>
  <id>tt0402022</id>
  <genre>Science-Fiction / Action</genre>

  <credits>
  </credits>
  <director>Karyn Kusama</director>
  <studio>Paramount Home Entertainment</studio>
  <actor>
    <name>Charlize Theron</name>
    <role>Ãon Flux</role>
  </actor>
  <actor>
    <name>Marton Csokas</name>
    <role>Trevor Goodchild</role>
  </actor>

Is this something that could potentially be allowed? Perhaps a choice in the config file of either the basic folder=value or the XML format <folder>value</folder>

I have had a brief look at some of the code, but can't really see where this could be determined, but there again I am not a proper coder... just a simple 'change some values' kind of level :-p

Thanks for your help
Running SUSE 11.3 from the PMServ distro
Updated PMS to SVN version 413 (although at the moment trialling pms-mlx)
Running Java 1.6.0 b20 (latest for SUSE that I can find!)
Rendering on PS3 or Samsung 40C7000
lot2smile4
 
Posts: 33
Joined: Fri Dec 17, 2010 3:49 pm
Top

Re: CCML Plugin

Postby jdknight » Sun Jun 19, 2011 1:07 am

Hey guys - didn't know if anyone would be interested in this. :)

I'm willing to make some changes to adapt different types of meta input if it will help people manage their media. I also wouldn't mind looking into a script to help aid people with an already existing media collection. I didn't think of this since I'm just starting to build my first media collection. :?

I'm first looking into getting a capture card for my computer so I can test easily with the PS3 near my development box. It's a real pain to attempt to develop a plugin by writing some test code and running up and down stairs to test minor changes. Once I have the hardware I will be able to make some enhancements I've been wanting myself as well as others if anyone wants some.

If you really interested in having a specific enhancement to this plugin, you can add an enhancement request in the projects page. I'm sure I'll get to it eventually.
jdknight
 
Posts: 19
Joined: Wed May 25, 2011 9:42 pm
Top

Re: CCML Plugin

Postby ExSport » Sun Jun 19, 2011 12:42 pm

To see code changes immediatelly you can also use XBMC as a renderer client ;)
It is not needed to run upstairs/downstairs all the time 8-)
ExSport
 
Posts: 2191
Joined: Mon Jan 19, 2009 4:40 pm
Top

Re: CCML Plugin

Postby jdknight » Sun Jun 19, 2011 3:10 pm

ExSport wrote:To see code changes immediatelly you can also use XBMC as a renderer client ;)
It is not needed to run upstairs/downstairs all the time 8-)


Wow! I never knew. Thanks!

(Yes, I'm new to the media server world; I feel like such a newb).
jdknight
 
Posts: 19
Joined: Wed May 25, 2011 9:42 pm
Top

Re: CCML Plugin

Postby baldy » Wed Jul 06, 2011 12:23 am

Hey JD, this looks very interesting. A while back I decided I was going to build an XBMC machine ( I never got around to it because I had my good ol ps3 and this fantastic software). But in preparation I used a program called Media Companion - its free, unlike MyMovies - to scan my media library and add meta data to everything it contained. It generated an nfo file like so: (in this example I used the file Generation Kill S01E01 Get Some.avi, the nfo file was Generation Kill S01E01 Get Some.nfo)
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<episodedetails>
  <fileinfo>
    <streamdetails>
      <video>
        <width>624</width>
        <height>352</height>
        <aspect>1.773</aspect>
        <codec>XVID</codec>
        <format>XVID</format>
        <duration>1h 8mn</duration>
        <bitrate>1 290 Kbps</bitrate>
        <container>.avi</container>
      </video>
      <audio>
        <codec>MP3</codec>
        <channels>2</channels>
        <bitrate>130 Kbps</bitrate>
      </audio>
    </streamdetails>
  </fileinfo>
  <title>Get Some</title>
  <season>1</season>
  <episode>1</episode>
  <aired>2008-07-13</aired>
  <plot>Marines prepare to invade Iraq at the beginning of Operation Iraqi Freedom; while the Marines wait to receive their orders at Camp Mathilda in Kuwait, they learn that Rolling Stone columnist Evan Wright will be embedded with them.</plot>
  <playcount>0</playcount>
  <director>Susanna White</director>
  <credits>David Simon / Ed Burns</credits>
  <rating>7.9</rating>
  <runtime>68 min</runtime>
  <actor>
    <name>Alexander Skarsgård</name>
    <role>Sgt. Brad 'Iceman' Colbert</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMTUxMDA5OTc2Nl5BMl5BanBnXkFyZXN1bWU@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>James Ransone</name>
    <role>Cpl. Josh Ray Person</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMjI0MjY0ODIyOF5BMl5BanBnXkFtZTcwOTI3NjY4MQ@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Lee Tergesen</name>
    <role>Evan 'Scribe' Wright</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMTk2NjQ3Nzc2MV5BMl5BanBnXkFtZTcwMTIwOTQwMw@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Jon Huertas</name>
    <role>Sgt. Antonio Espera</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMTczNjEyMzE3M15BMl5BanBnXkFtZTcwNjIwNjM1Mg@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Stark Sands</name>
    <role>Lt. Nathaniel Fick</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMTQzOTMwOTczMV5BMl5BanBnXkFtZTcwODE3OTAyMQ@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Billy Lush</name>
    <role>Lance Cpl. Harold James Trombley</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMTY1Nzc4OTcxMl5BMl5BanBnXkFtZTcwNDAwNzEzMQ@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Jonah Lotan</name>
    <role>Navy Hm2 Robert Timothy 'Doc' Bryan</role>
  </actor>
  <actor>
    <name>Wilson Bethel</name>
    <role>Cpl. Evan 'Q-Tip' Stafford</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMTczMjczOTU3Ml5BMl5BanBnXkFtZTcwMTA3NjA3MQ@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Pawel Szajda</name>
    <role>Cpl. Walt Hasser</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMjIzNjA1Mjg5OF5BMl5BanBnXkFtZTcwMzM5MzEwMw@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Marc Menchaca</name>
    <role>Gunnery Sgt. Mike 'Gunny' Wynn</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMTcxNjc2ODQzNl5BMl5BanBnXkFtZTcwMDM4NzAwMw@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Rey Valentin</name>
    <role>Cpl. Gabe Garza</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMTg2MjU5MTU3MV5BMl5BanBnXkFtZTcwNDI1ODk3Mg@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Kellan Lutz</name>
    <role>Cpl. Jason Lilley</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMTg1MjUzNDUzNl5BMl5BanBnXkFtZTcwMDczMDIyMw@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Mike Figueroa</name>
    <role>Sgt. Leandro 'Shady B' Baptista</role>
  </actor>
  <actor>
    <name>Josh Barrett</name>
    <role>Sgt. Larry Shawn 'Pappy' Patrick</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMjAzNTQ2MjU0NV5BMl5BanBnXkFtZTcwNDUyNTg2MQ@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Rudy Reyes</name>
    <role>Sgt. Rodolfo 'Rudy' Reyes</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMTk5ODk4OTUyOF5BMl5BanBnXkFtZTcwNzAzODU1MQ@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Rich McDonald</name>
    <role>Cpl. Anthony 'Manimal' Jacks</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMzk2NDI4NzY0NV5BMl5BanBnXkFtZTcwMTIzMjU3Mw@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Eric Ladin</name>
    <role>Cpl. James Chaffin</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMjE0OTczMjY4MV5BMl5BanBnXkFtZTcwOTQyMjgyMg@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Chance Kelly</name>
    <role>Lt. Col. Stephen 'Godfather' Ferrando</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMTIzNjg5OTQyNl5BMl5BanBnXkFtZTcwOTY3NjcyMQ@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Eric Nenninger</name>
    <role>Cpt. Dave 'Captain America' McGraw</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMTQyNjQxMjU1OV5BMl5BanBnXkFtZTcwMTkxMDAxMw@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Brian Wade</name>
    <role>Cpt. Craig 'Encino Man' Schwetje</role>
  </actor>
  <actor>
    <name>Neal Jones</name>
    <role>Sgt. Maj. John Sixta</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BNTMyMDk5MTg2Nl5BMl5BanBnXkFyZXN1bWU@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Michael Kelly</name>
    <role>Cpt. Bryan Patterson</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMTgwODI1MzQwOF5BMl5BanBnXkFtZTcwNDYxMTQxMw@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>David Barrera</name>
    <role>Gunnery Sgt. Ray 'Casey Kasem' Griego</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMTQyOTAxNjA4MF5BMl5BanBnXkFtZTcwMDU3MDYyMg@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Benjamin Busch</name>
    <role>Maj. Todd Eckloff</role>
  </actor>
  <actor>
    <name>Owain Yeoman</name>
    <role>Sgt. Eric Kocher</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMTk2MTMxMDAyMV5BMl5BanBnXkFtZTYwMjE4NDA3._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>J. Salome Martinez</name>
    <role>Cpl. Jeffrey 'Dirty Earl' Carisalez (as J. Salomé Martinez Jr.)</role>
  </actor>
  <actor>
    <name>Nabil Elouahabi</name>
    <role>Meesh</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMTg5Mjg0NTIwNV5BMl5BanBnXkFtZTcwNDk4OTg1MQ@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Langley Kirkwood</name>
    <role>Sgt. Steven Lovell</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMTQyOTExNjI2OV5BMl5BanBnXkFtZTcwNzk4MjcyMQ@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Stefan Otto</name>
    <role>Cpl. Nathan Christopher</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMjA4MjgzMjA3OV5BMl5BanBnXkFtZTcwMzU2NjE4Mg@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Sal Alvarez</name>
    <role>Cpl. Hector Leon</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMjY5ODkwMjExMV5BMl5BanBnXkFtZTcwMDQ1NDgyMg@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Daniel Fox</name>
    <role>Pfc. John Christeson</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMTYzOTcyODIxM15BMl5BanBnXkFtZTcwMTkyOTY4Mg@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Bjorn Steinbach</name>
    <role>Cpl. Michael Stinetorf</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMTU2NzE5MDEzMF5BMl5BanBnXkFtZTcwNjUxNzA1Mg@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Sydney Hall</name>
    <role>Cpl. Teren 'T' Holsey</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMjE2NTQyODE4OF5BMl5BanBnXkFtZTcwNDYxNDU4MQ@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Justin Shaw</name>
    <role>Sgt. Michael 'Budweiser' Brunmeier</role>
  </actor>
  <actor>
    <name>Sean Brosnan</name>
    <role>Cpl. Daniel Redman</role>
  </actor>
  <actor>
    <name>Denton Douglas</name>
    <role>Cpl. Trevor Darnold</role>
  </actor>
  <actor>
    <name>Theo Landey</name>
    <role>Sgt. Damon Fawcett</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BNTEwNjA2MTkzOV5BMl5BanBnXkFtZTcwNDg2MzE4MQ@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Kyle Siebert</name>
    <role>Cpl. John Burris</role>
  </actor>
  <actor>
    <name>Jeffrey John Carisalez</name>
    <role>Cpl. Smith</role>
  </actor>
  <actor>
    <name>Darron Meyer</name>
    <role>Cpl. Cody Scott</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMjE2NDc2NjQxN15BMl5BanBnXkFtZTcwODkwMTEwMg@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Eric Kocher</name>
    <role>Gunnery Sgt. Rich Barrett</role>
  </actor>
  <actor>
    <name>Daniel Janks</name>
    <role>Sgt. Christopher Wasik</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMTM5NDc4MTA1OV5BMl5BanBnXkFtZTcwMzg2ODg3MQ@@._V._V1._SY400_SX300_.jpg</thumb>
  </actor>
  <actor>
    <name>Amair Jomran</name>
    <role>Surrendering Iraqi</role>
  </actor>
  <actor>
    <name>Abdelaziz Tamri</name>
    <role>Iraqi Prisoner</role>
  </actor>
  <actor>
    <name>Mehboob Bawa</name>
    <role>Pizza Vendor</role>
  </actor>
</episodedetails>


I'm clueless about coding but these are xml coded like the meta data lot2smile4 was talking about above. I wonder could you alter your plugin to read these nfo files instead? Media Companion is fully automated so it generates all the data with minimal user input. Theres a good guide here - http://www.lifehacker.com.au/2010/04/how-to-whip-your-movie-and-tv-show-art-into-shape-for-xbmc-and-boxee/
If you could it will be an exciting development for ps3mediaserver, it was one of the main reasons I was going to put an XBMC box together.

Anyway, if this is complete waffle just say so, as I said I'm clueless about coding etc but it does seem promising!

Cheers for reading,
B
baldy
 
Posts: 4
Joined: Wed Jul 06, 2011 12:08 am
Top

Next

Return to Additions and Plugins

Who is online

Users browsing this forum: Alexa [Bot], Google [Bot] and 0 guests