BD Chapters: Command Line Chapter Extractor for Bluray

Filed in bluray , code , technology , windows 7 comments

Well, I started a project to rip chapter information from MPLS files and save them as Matroska XML file. Now, there are already atleast ten different ways to get the chapter information out of the MPLS file associated with the M2TS video on the disc, but I wanted one command-line option that would encompass the entire process…no highlighting, copying of text, etc.

The syntax:

bdchapters -i <mpls file> -o <mkv xml chapter file>

It is a Python program.  I started on a C++ version, but ran out of steam whilst writing it.  The only thing that you have to make sure of is to include it in your PATH variable so you can use it no matter where you’re browsing at.  That and the installer I made isn’t smart enough to add itself to the PATH variable on its own.

As a warning: this Python code hasn’t been documented and will make many people feel like creating a way to stab me over the internet.  I’m working on the whole “nice, neat, and well documented” thing as I transfer it over to C++.

It does, however, just work and no, I’m still learning C/C++.  I did, however, create an NSIS installer/uninstaller that will atleast install it correctly (minus the aforementioned PATH deficiency).

Enjoy.

Posted by jamesthebard on 31 December 2008
Tags : , , , ,

7 Comments

Comments
Feb 27, 2009
3:39 am
#1 bjoen :

Hello James,

I wrote a very simple free GUI for your tool – are you interested to publish it here?

Cheers,

Björn

Author Feb 28, 2009
6:50 pm
#2 jamesthebard :

Björn,

I appreciate the work and the offer. I’d be happy to do so.

JamesTheBard

Mar 3, 2009
2:36 pm
#3 bjoern :

Hello James,

hope you will be not disappointed.

you can download the program at

http://www.foldi-bande.com/Public/Prg_Share/

Feel free to share.

Björn

Dec 9, 2009
10:14 am
#4 Stan :

Could you upload the real source code? The linked source code has errors and once corrected produces better, but very different output than the .exe you provide.

Dec 9, 2009
10:21 am
#5 Stan :

My bad. Never mind; wrong input. I am puzzled by the runtime errors, but over it. Python 2.6.4 has a problem with line 82: ptsinfo.pop([-1])

Feb 10, 2010
12:33 pm
#6 Denis :

2 bjoern:

your utility doesnt enclose space-contained paths to double quotes, so calling BD subs failed :)

Author Feb 10, 2010
3:18 pm
#7 jamesthebard :

@Denis: It’s easier to just pull ‘em off the eac3to program.

Leave a Comment

Previous Post
«
Next Post
»
Zionn designed by ZENVERSE  |  In conjunction with Reseller Hosting from the #1 Web Hosting Provider - HostNexus.

Bad Behavior has blocked 68 access attempts in the last 7 days.