I’m well aware that I can rip most Blu-rays with MakeMKV and then convert to mp4 with Handbrake; however, the former just rips everything raw from the disk so the file size is humongous and the conversion via Handbrake for just a single file is terribly long and puts a lot of strain on my computer.

I’ve heard that EaseFab LosslessCopy is decent, but they only have a Windows and a Mac version, and I’m unsure how well it’d run under Wine.

I am willing to pay for it, but only as long as it’s not a subscription thing. Has to be a one-time payment.

Does anyone know any decent Blu-ray ripping software that fits these conditions and run well on Linux? Specifically, it would be either Pop!_OS or Linux Mint. (I’m still using Windows because I want to figure out some software alternatives before I do so I’m not caught with my pants down, so to speak.)

95 points
*

You can link the makeMKV libs to handbrake so it’s a one step process disk -> compressed form.

#!/bin/bash

# Intention: replace aacs decoding with makemkv's superior libmmbd programatically

# elevate privilages to sudo
[ "$UID" -eq 0 ] || exec sudo bash "$0" "$@"

# test if libmmbd is installed already, exit otherwise
libmmbdpath=$(find /usr -name libmmbd.so.0)
echo "libmmbd path is $libmmbdpath"
if [[ ! $libmmbdpath == *"/lib/"* ]]; then
    echo "libmmbd not found, please install makemkv first"
    exit 0
fi

# test if libaacs is installed already, set desired path otherwise
libaacspath=$(find /usr -name libaacs.so.0)
echo "libaacs path is $libaacspath"
if [[ ! $libaacspath == *"/lib/"* ]]; then
    libaacspath="/usr/lib/libaacs.so.0"
else
    echo "libaacs found, you must uninstall libaacs"
    exit 0
fi

# test if libbdplus is installed already, set desired path otherwise
libbdpluspath=$(find /usr -name libbdplus.so.0)
echo "libbdplus path is $libbdpluspath"
if [[ ! $libbdpluspath == *"/lib/"* ]]; then
    libbdpluspath="/usr/lib/libbdplus.so.0"
else
    echo "libbdplus found, you must uninstall libbdplus"
    exit 0
fi

# if we made it here, it's time to take action

# softlink mmbd to aacs
ln -s $libmmbdpath $libaacspath

# softlink mmbd to bdplus
ln -s $libmmbdpath $libbdpluspath

echo "successfully set up libmmbd as the system decrypter"
exit 0

permalink
report
reply
29 points

Bro answers with a complete bash script just for this dude’s conveniance! Hats off to you sir!

permalink
report
parent
reply
12 points

This is the kind of community atmosphere I’m here for <3

permalink
report
parent
reply
17 points

I don’t know whether this is brilliance or madness

permalink
report
parent
reply

Yes.

permalink
report
parent
reply

I apologize. As grateful as I am that you took the time to write all this out, I must admit I am still very much a Linux noob and so all this is way beyond my abilities. :/

permalink
report
parent
reply
9 points

You copy that whole thing into a terminal after you have both makeMKV and Handbrake installed, then press enter

permalink
report
parent
reply
9 points

While in this case it is the solution (and Kata1yst really seems to know what they’re talking about), I feel like there’s a need to remind people every now and then to be careful with shell scripts. There’s loads of instructions on the internet where they suggest just to pull random script from the internet and pass it trough as is to run with root privileges. When you do something like ‘curl https://stackoverflow…|bash -’ it’s quite literally the same than letting a random guy from the street to your computer and let them do whatever they want with it.

permalink
report
parent
reply
5 points

Oh my god I can’t even tell you how much I love you for posting this!

This is a question I had oh….a decade, I think?….ago and gave up on! Glad there are people smarter than I am out there!

permalink
report
parent
reply
2 points

Hats off to you good sir bows

permalink
report
parent
reply

Is there some legal reason why AACS and BDPlus can’t use the same decoding strategies as MMBD?

permalink
report
parent
reply
0 points

You could check the files you don’t need to see if they’re a symlink, otherwise your script would crash out if it’s already completed.

permalink
report
parent
reply
19 points

Well, if the file sizes are too big you need to reencode them. That’s just how it is, regardless of the software you’re using. If your computer is too slow at that, you may want to use faster settings. For example, you could use a codec that’s hardware accelerated by your GPU.

permalink
report
reply

I understand that. That’s what I was talking about with Handbrake. Problem is, when a single 23 min video file is 5 GiB in size, having Handbrake re-encode that just takes too long.

(I tried doing it and the estimated time remaining around start was something like 3 days worth of having my computer run 12 hours a day without stopping. I want to make the file sizes smaller, not burn out my computer components. Lol.)

permalink
report
parent
reply
3 points

Handbrake’s speed depends entirely on your settings. For example, in the video tab next to video encoder you can select codecs like H.264, H.265 or AV1. The newer the codec, the more efficient and space saving your result will be but also the more time it will take. You may or may not also see the same codec twice but with NVENC or some other hardware feature next to it. Those will be significantly faster. If you have a choice between multiple hardware acceleration options, I’d recommend picking Nvidia > Intel > AMD for the best results. If none appear, you could buy a newer graphics card that support those features if budget allows. Other than that, something else that also significant affects how fast Handbrake will be is the preset option in encoder option (also in the video tab). You can select everything from placebo to slow to fast to ultrafast. The slower the higher the quality but also the slower it will be. Faster presets will be faster but will offer lower quality.

permalink
report
parent
reply

I edited my post to include my Handbrake settings and system specs.

permalink
report
parent
reply
3 points

Depending on your hardware you should be able to have Handbrake use your GPU to reencode the video much faster than your CPU. If you have Nvidia it would be Nvenc, Intel is Quicksync, and AMD is VCE. If you select one of those as your codec it should go much faster. Check the hardware encoders section on the Handbrake documents https://handbrake.fr/docs/en/1.4.0/technical/video-nvenc.html . Even if you were using windows you would run into the same problem at some point you are limited by how fast your hardware can process the video and no software can make up for that.

permalink
report
parent
reply

As I said to @Octagon9561, I edited my post to include my Handbrake settings and system specs.

permalink
report
parent
reply
2 points

What settings are you using and what CPU?

I used to transcode blu-ray movies with handbrake in H.264 using an i7-950 and it only took a few hours for a 2 hour movie.
Try using the x.264 encoder in handbrake set to constant quality mode. Set the CRF to around 20-22 and use the fast preset.
The slower presets significantly increase the encode time with only a small decrease in file size.

permalink
report
parent
reply
3 points

Keep in mind that the RF values will be completely different if you use other encoders like H.265 or even H.264 with a hardware acceleration encoder. For 1080p, 20-22 is indeed appropriate but lower res like 480p will require a lower RF like 16-18 for the same quality. Meanwhile 4K will be fine with 24. Again, assuming you use the x264 encoder which is not hardware accelerated. For best results, I’d really recommend playing around with the settings and see what works best for you.

permalink
report
parent
reply
2 points

Computers are designed to run 24/7 so as long as you have proper cooling your PC will be fine. It would be good to post your specs too.

permalink
report
parent
reply

@Octagon9561@lemmy.ml and @NoDignity@lemmy.world : I edited my post to include my Handbrake settings and system specs.

permalink
report
parent
reply
11 points

qBittorrent /s

permalink
report
reply

Please excuse me if I’m misunderstanding, but I fail to see the joke here…

permalink
report
parent
reply
5 points

I was jokingly suggesting just pirating the content instead

permalink
report
parent
reply

Ah. Fair enough. I do dabble in the seaworthy arts from time to time, but I figured I already have it on Blu-ray so why do that? Lol.

permalink
report
parent
reply

Edit 1: A number of people have said that knowing my Handbrake encoding settings and my hardware specifications. So, here they are:

Handbrake encoding settings:

Hardware specs:

  • CPU: Intel Core i7 10700K @ 3.80 GHz
  • RAM: 32 GiB Dual-channel DDR4 @ 1066 MHz
  • GPU: Nvidia GeForce RTX 2060

Edit 2: My goal is to add the TV shows / movies in my Blu-ray collection to my NAS server, for use with services such as Jellyfin, Emby, Plex, etc.

permalink
report
reply
11 points

There are multiple VERY inadvisable things you’re doing here. Darkcalling has good points, but in addition:

You are using a CRF of 0, which will create an insanely huge result video size for no perceptual benefit. There is no reason to do this. You may as well just use makemkv to create mkv files directly and use those. The underlying video encoding is AVC in both cases, just placed into differing containers. This is kind of a misuse of Handbrake. You use handbrake to reencode videos either from one encoding to another, or for satisfactory file size reductions from source materials.

You are also using an encode speed preset of placebo, which if you have ever done a comparison you will find offers basically exceedingly minimal file size reduction advantages over slow or very slow, but for a MUCH longer encode time.

I recommend trying to encode samples of quality RF 20-24 and determine which looks best to you (if they end up looking very different). Lower numbers are higher picture quality. I recommend an encode speed of as slow as you can bear, but not slower than Very Slow. I recommend the Encoder Profile being set to High (from Main). Basically the spec for h264 has changed slightly and while Main is super compatible, High has some potential for file savings/quality improvements and is compatible with basically any player since… God knows when, maybe 15 years ago?

One thing I don’t recommend is using nvenc, the gpu encoder, for non real time contexts. x264, the software renderer, will produce higher quality results. Higher quality means either the videos will look the same but the size will be smaller, or the sizes will be the same but the picture looks better.

Also, even though you don’t have it set, I also do not recommend the Fast Decode checkbox. Maybe useful for a device from the year 2002, but at the cost of a noticeably larger file size.

Finally, you should state what your actual goal is. Yes you are ripping your blu rays, but what are you trying to really achieve with this? Further advice can be dispensed with that info.

permalink
report
parent
reply
1 point
*

aa

permalink
report
parent
reply

I really appreciate you taking the time to write all this out. I will definitely take these tips to heart and try again! Thank you! :D

permalink
report
parent
reply

I figure I should use 2-Pass Encoding if I want a more accurate output, but what about Turbo First Pass? What’s that all about?

permalink
report
parent
reply
1 point

IIRC, you only need 2 pass if you need to fit a size target. So you can safely deactivate both options.

permalink
report
parent
reply
1 point

2-pass and turbo first pass is only valid if you use average bit rate, but you should just stick with the constant rate factor. CRF will actually use a higher bitrate in more complex scenes, anyway.

Some additional thoughts: Since you are encoding animation you can try to change the Encoder Tune option to Animation. It will increase the amount of deblocking (smooths out blocks that become visually apparent at low bit rates) which works well in animation where there are lots of flat colors.

You could change the output container from MKV to mp4. This will increase compatibility for playback and will have no effect on the result, because mp4 is designed to contain AVC video and AAC audio, and I think even a subtitle, too. HOWEVER I do not think mp4 can support DTS audio. In your current audio settings your audio streams are being converted to 160kbps AAC, which is decent. If you do switch to mp4 you can check the “web optimized” option, too, if your plan is to internet stream these videos. It just moves some metadata to the start of the file so your browser can play back immediately without having to download all the contents. There really isn’t any downside that I am aware of for choosing this setting. I am also not sure if it makes any difference in a Jellyfin/Plex setup to have those checked.

You don’t have to worry about the subtitle being burned in because in the settings in your screen shot that will only burn in “foreign” subs – seems like English is the only match and English won’t be burned in. For peace of mind you can remove the foreign audio scan anyway.

On both the audio and subtitle screens there’s a button which says “Selection Behavior.” You can click it and change what languages handbrake will automatically include when you load files for encoding. It’s very useful to do that instead of selecting/deselecting each time you load something to encode. You can consider only choosing English if that’s your desired language.

permalink
report
parent
reply
8 points
*

Decomb filter is set and will increase the effort needed. Unless the video is noticeably interlaced (line artifacts, not likely for most blurays) and you’re trying to fix that there’s no reason to run it. (Note however this is the least time intensive thing you’re doing, I just mention it for completeness, to be honest handbrake may have detection so it only runs while needed but I’ve always set it manually and only as needed)

Besides that though you’re using software encoding which while better will take much longer. Try setting the encoding tune under video settings to something faster.

Alternatively set your encoder to use NVENC version of the scheme you want (264) With NVENC encoding 30 minutes without anything else should take 7 minutes or so.

One last thing. You seem to have it set to burn subtitles in. This generates a lot of extra work and is not advisable unless your hardware or software does not support soft-subs as a separate stream in for instance an mkv file. Most modern streaming devices will handle plain text and PGS image subtitles in my experience. Try instead to set the default and forced flags if you want subtitles to be on by default.

permalink
report
parent
reply
4 points

MakeMKV (at least in windows) lets you rip a remuxed mkv without having to rip everything. So you can just select the titles, audio, and subtitle tracks you want without ripping all the other stuff. You don’t need to make a full backup and then pull all that out.

permalink
report
reply

I’m not sure I understand. What I do is I use MakeMKV rip the files from the disk into MKV format. Not an ISO.

permalink
report
parent
reply
1 point

I use make MKV on Ubuntu to rip my blu-rays to MKV files. And I play them in that format. They are big but I have space on my NAS drive.

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 7.5K

    Monthly active users

  • 6.6K

    Posts

  • 179K

    Comments