Kodi Community Forum
WIP Couch Ripper - Easy to Use DVD/Blu-ray Ripper - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: WIP Couch Ripper - Easy to Use DVD/Blu-ray Ripper (/showthread.php?tid=219720)

Pages: 1 2 3 4 5


RE: Couch Ripper - Easy to Use DVD/Blu-ray Ripper - reverendj1 - 2015-03-26

blueeyiz702, That appears to be Windows only (I use Ubuntu/Linux) and only for DVD's, not BluRays. If you are just ripping DVD's MakeMKV will do that for free forever. However, if you do still want to use DVD Decrypt, my latest version supports custom rip and encode commands. You're just on your own building the command though.

Irusak, thanks! I've never played with OpenElec, so I don't know anything about integrating it. If there was some test I could run to see if openelec is installed instead of Kodi proper, that could solve 1. As for 2, I'm not sure how to open settings from within a plugin. I could look at it later, or if you want to do it, just give me a PR.


RE: Couch Ripper - Easy to Use DVD/Blu-ray Ripper - blueeyiz702 - 2015-03-26

Ok thank you im for sure using your addon! there is no doubt.


RE: Couch Ripper - Easy to Use DVD/Blu-ray Ripper - Klojum - 2015-03-26

(2015-03-26, 01:11)lrusak Wrote: This is great. We would like to get this add-on into shape for use with OpenELEC as being able to rip dvds from OpenELEC is a feature many users want.

I have compiled a handbrake add-on for OpenELEC (which will be going into the unofficial repo soon)
makemkv is already available in the unofficial add-ons repo

The issues I foresee are:

1) Locating the handbrake and makemkv binaries.

This is because the binaries are packaged as add-ons in OpenELEC, so the paths are as follows
/storage/.kodi/addons/multimedia.handbrake/bin/HandBrakeCLI
/storage/.kodi/addons/lib.multimedia.makemkv/bin/makemkvcon

This requires enabling hidden files and folders in system --> appearance --> file lists

My first try on a 'non-clean' OpenELEC 5.0.6, Intel C1037 setup. Filled out all the settings in the CouchRipper Configure screen as far as deemed necessary, and came up with these errors:

PHP Code:
09:03:38 T:139839412328192   ERRORscript.couch_ripper-0.1.3 Could Not Find nfs://192.168.1.149/volume1/temp/.  Please Check Your Settings.
09:03:38 T:139839412328192   ERRORscript.couch_ripper-0.1.3 Could Not Find nfs://192.168.1.149/volume1/torrent/.  Please Check Your Settings.
09:03:38 T:139839412328192   ERRORscript.couch_ripper-0.1.3 Invalid Native Language (3 characters).  Please Check Your Settings.
09:03:38 T:139839412328192   ERRORscript.couch_ripper-0.1.3 Could Not Find nfs://192.168.1.149/volume1/temp/. Could Not Find nfs://192.168.1.149/volume1/torrent/. Invalid Native Language (3 characters). 

The NFS folders do exist of course, and are write-enabled.
"Invalid Native Language (3 characters)" being 'ned'.

EDIT: BTW guys, where does the CouchRipper Settings GUI store its settings? The parent option when selecting folders does not work correctly. I can go deeper into the "nfs://192.168.1.149/volume1/torrent" tree, but I cannot go back to "nfs://192.168.1.149/volume1" anymore.


RE: Couch Ripper - Easy to Use DVD/Blu-ray Ripper - reverendj1 - 2015-03-26

Klojum, I'm not handling "special" paths (anything in the format of XXXX://somepath) like that, only regular old local file system paths. I *think* I can see how to translate them to real paths though. I'll look into it. Otherwise, you could mount your NFS path using /etc/fstab permanently, and it would see it just fine if you point it at your mount points. I'd really recommend using local folders, if possible, though. Then just move them to the network storage afterwords. It's going to make a long process take a lot longer ripping/encoding over the network.

Forgive my ignorance, but what language is "ned"? I'm verifying against the ISO-639-2 3-letter language format, found here, which should be what HandBrake expects.

The settings file is located in (kodi profile dir)/addons/script.couch_ripper/resources/settings.xml, or maybe (kodi profile dir)/addons/kodi-couch-ripperr/resources/settings.xml, but again, a special path isn't going to work at the moment.


RE: Couch Ripper - Easy to Use DVD/Blu-ray Ripper - lrusak - 2015-03-26

(2015-03-26, 16:06)reverendj1 Wrote: Forgive my ignorance, but what language is "ned"? I'm verifying against the ISO-639-2 3-letter language format, found here, which should be what HandBrake expects.
Perhaps this should fix this issue? http://kodi.wiki/view/Add-on_settings#Rotary_selector

(2015-03-26, 16:06)reverendj1 Wrote: The settings file is located in (kodi profile dir)/addons/script.couch_ripper/resources/settings.xml, or maybe (kodi profile dir)/addons/kodi-couch-ripperr/resources/settings.xml, but again, a special path isn't going to work at the moment.
The settings file should be placed in the default settings dir.
Code:
~/.kodi/userdata/addon_data/script.couch_ripper/settings.xml



RE: Couch Ripper - Easy to Use DVD/Blu-ray Ripper - reverendj1 - 2015-03-26

lrusak, Yeah, I should probably use the rotary selector for that. Should be pretty easy to implement.

I'm an idiot. The settings are in the default settings dir as you stated. I was looking at the addon defaults.


RE: Couch Ripper - Easy to Use DVD/Blu-ray Ripper - Klojum - 2015-03-26

In the older days of programming, 'ned' was sometimes used as country code for 'Nederland' aka the Netherlands, depending on which standard was used.

I will try & use some local folders instead, and no NFS mounts. It's always handy to have some extra disk space for this kind of projects. Tongue

BTW, using network folders for ripping is much of a problem if you have a decent gigabit network. Doing the same now when recoding x264 into x265, which averages 9-14 fps on my office pc. Doing DVD with x265 will be faster, but the network won't be the bottleneck there.


RE: Couch Ripper - Easy to Use DVD/Blu-ray Ripper - Klojum - 2015-03-26

Changed the settings, and there is an initial start. Helas, the makemkv from the Unofficial Addon Repo in OpenELEC is out of date:

PHP Code:
18:26:08 T:140189622400768  NOTICEscript.couch_ripper-0.1.3 Beginning RipCommandnice --19  "/storage/.kodi/addons/lib.multimedia.makemkv/bin/makemkvcon" mkv --decrypt disc:0 all --minlength=2700 "/storage/couch/temp/"
18:26:10 T:140189622400768   ERRORscript.couch_ripper-0.1.3 MakeMKV Failed!
18:26:10 T:140189622400768   ERRORscript.couch_ripper-0.1.3 Your version of MakeMKV is too oldPlease update it



RE: Couch Ripper - Easy to Use DVD/Blu-ray Ripper - reverendj1 - 2015-03-26

Klojum, That makes sense. Like lrusak mentioned, I'll add a dialog box for choosing the language, which should clear up any confusion when selecting the language.

Yeah, disk space can definitely be an issue if you have a small hard drive when ripping, and I can see the want/need for ripping/encoding over the network. I think Blu-rays can be ~50GB uncompressed, and with my tests so far up to 8GB compressed, so that's at least 60GB of temp free space you would want for ripping/encoding them. If you have a good network, and your remote disk is fast, yeah, it is possible it won't be too much of a bottleneck, but there are a lot of extra factors in there that could cause issues, since that's a lot of data to be pushing over the network. Once to the remote drive, and once back, means you could be pushing over 120GB of data over the network to rip and encode a single Blu-ray, and I'm not entirely sure how fault tolerant the process is.

After some brief research, it looks like there is no easy way to get the path of network drives in Kodi. I can copy and paste to/from them, and do file manipulation, but I need to have a mounted path for the commands to work. It doesn't look like they are necessary mounted at any given time, or I can't see where they are mounted. At any rate, if I want to support network drives without you first mounting/mapping it, it's not going to be something I can implement easily/soon. As far as I can tell, I'd basically have to mount it within Couch Ripper first, and then use it.

Have you used MakeMKV outside of Couch Ripper on OpenElec? It should raise a similar error (This application version is too old). There are a few reasons that this error can be raised. All of them are central to MakeMKV and should not be Couch Ripper specific. I just search for an error in MakeMKV and spit one out that's a little nicer to read.
1) Your system date/time is way off.
2) Your key has expired, or is missing (although this *should* raise a different error) Here is where you can always get the latest one, but as a side note, it does expire in a few days.
3) You really do have too old of a version of MakeMKV.

Hopefully it's 1 or 2, since those should be easily fixable. If it's 3, you'd have to wait for the MakeMKV package maintainer to update it, I guess.


RE: Couch Ripper - Easy to Use DVD/Blu-ray Ripper - Klojum - 2015-03-26

I installed MakeMKV 1.9.1 & Handbrake on Ubuntu Mate 14.04 on my laptop with DVD-drive. It's a bit handier in testing. It does work, although I will have to find other DVDs to test. The current one may be too heavily encrypted...

The beta licence key has a couple of days before it expires, but the Ubuntu install MakeMKV has some 25 days left. Enough time to play with.

I myself won't be ripping Bluray discs, so my network won't be overloaded with data. First I have to make MakeMKV work in OE locally, after that, we'll see how network storage fits in.


RE: Couch Ripper - Easy to Use DVD/Blu-ray Ripper - reverendj1 - 2015-03-27

Klojum, I'm surprised you'd run into a DVD you couldn't decrypt with it. They're pretty on top of updating it soon after anything new hits the shelves. That's a major reason I chose it. Of the 40+ DVDs/Blu-rays I've ripped with MakeMKV since creating Couch Ripper, I haven't had a single one not work. My previous method had about 95% success rate, IIRC.

If you aren't ripping Blu-rays, you *shouldn't* need to worry about the license key. They've stated that DVD functionality should be free forever, and I think works without it.

Anyway, I hope it all works out for you.


RE: Couch Ripper - Easy to Use DVD/Blu-ray Ripper - tlchris - 2015-03-27

Thank you for your addon, I have follow your instruction but i have no succes when trying to make a dvd copy. I click on my profile, it start working for about 5 min, then eject the disk with succes messages but directory folder is empty. Can you look at my log and see if i did something wrong.

thank you

christian

Your debug kodi.log: http://xbmclogs.com/plhwyvtbu


RE: Couch Ripper - Easy to Use DVD/Blu-ray Ripper - reverendj1 - 2015-03-28

tlchris, I'm not seeing anything readily apparent that would cause it to fail. Can you watch the DVD in Kodi? Can you open the MakeMKV GUI? I should probably add some more logging/validation. To me it *looks* like something else killed the process.

I did notice a couple things that are a little off though. It looks like you are using an old version, grab the current one. This has been in pretty heavy development. Is G:\1 really a valid, writable folder? You don't seem to be using CPU priority, you'll most likely want to keep that set to low, otherwise you won't be able to use that machine while you're ripping/encoding, unless you've got a beast of a PC.


RE: Couch Ripper - Easy to Use DVD/Blu-ray Ripper - reverendj1 - 2015-03-28

A couple more ideas. After updating to the newest version, make sure to identify your drives and that you are using the correct drive ID for your DVD drive. Did Windows or Kodi try playing the DVD while you were ripping it? What was going on with Internet Explorer? It looks like you opened it up while ripping.


RE: Couch Ripper - Easy to Use DVD/Blu-ray Ripper - tlchris - 2015-03-28

Thank you for your help, ill will look into it tomorow and let you know.