You could use stat to get this information based on the file itself. And with jhead for example you can get the additional meta data in the files, stored in the EXIF and IPTC tags.
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.
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.)
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 handbrake.fr/docs/en/1.4.0/…/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.
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.
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.
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.
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
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. :/
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 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.
Yeah, that’s totally fair. My prior comment was about that exact script, which you and I can both see isn’t malicious, but OP can’t since they don’t know how to read it yet.
It’s good to point this out. No matter how often reminders are written people still will go and download and run random programs without vetting them. Frankly, I blame how software is distributed for Windows for this general acceptance of blind faith in other peoples’ code without a trusted third party like e.g. the Debian maintainers validating that it works as intended.
I’m a middle-aged truck driver. I’ve been using Linux Mint (Cinnamon) now for about seven years as my only operating system (without dual booting) since Windows XP Pro became totally obsolete. Granted, I’m a hobbyist programmer and lifelong computer enthusiast. However, there are definitely some easy to install and use distros out there these days.
Lenovo is renowned for their excellent linux compatibility. I’m sure you’ll get a bunch of proponents here saying the same.
BUT, oh boy. Don’t get me started…
Too late. Having used various models of thinkpads in recent years, their inconsistent keyboard layouts will drive you absolutely insane. I swear, at this point they’re just fucking with us.
I’ve got one in pieces somewhere, that has/had the ~ key next to the FN key on the bottom row! How the fuck are you supposed to use Linux if you’re ~ key is down there? It’s fucking stupid.
Not to mention their keys have a tendency to break off with just the mildest of fist slams.
AND the latest work-issued recent model is fucking with us again! It has the FN key ON THE LEFT SIDE of the Ctrl key on the left. Who does that? The Ctrl is always the left-most bottom key. Now, every time I fucking go to press Ctrl+something, I end up hitting FN instead.
Fucking morons! At this rate this laptop will also end up in pieces.
So, tldr; Stay the fuck away from Lenovo if you want to use Linux and not end up in prison for vehicular homicide.
Oh :( As annoying as that is I can’t bring myself to completely take it off the board. Thanks for the warning, though! Nobody’s mentioned that so far :)
It’s not like other keyboards are better, I know why they are pissed and while it is annoying, Thinkpads X, T and P series are great linix machines.
What I don’t like is soldered RAM. I got T490 after almost a decade of using X220, because it, at least, had one ram slot. Now I am rocking 48GB of ram in reliable hardware which os completely supported in linux (except bt having some issues, but still).
What issues are you having with BT? I recently bought a second hand T490 and Fedora with KDE has been great! I have not extensively used BT, but I always use a BT keyboard and it has been fine :)
I have X1 Carbon Gen 6 and I love the laptop overall, I’ve been using it for 4 years so far. I don’t mind having fn and ctrl swapped, but my keyboard has also a stupid placement of PrntScr. It’s on the bottom row, right to the space bar. I can’t count times when I accidentally opened spectacle 50 times, because I hold the wrong key.
I have also happened to have a try with some newer thinkpads and they felt like the company made them worse on purpose. The material felt cheap, keyboard choppy and the trackpad absolutely abysmal with its lack of precision.
With the hardware support under Linux… yeah, they do work, but when you pick a new model, expect some missing features, worse power management, quicker thermal throttling etc. For me it significantly improved over time. With 10yo refurbished thinkpads Linux is great though, they say
Funny, I seriously considered getting one over the past year, but the past couple of months I’ve been reading all kinds of complaints about them. Seems there is a problem with consistent quality.
The Fn and Carl keys can be switched in software. I have a work-issued Lenovo with a similar layout. They can be soft-swapped in the BIOS. There’s also a desktop utility to do the same but I don’t know if they have a Linux version of it. I totally agree, the physical layout is annoying but it has a simple fix.
Probably never. They’re my third option after native packages and built-from-source packages/installs either manually or using the AUR. They’re convenient and the only option I tolerate of those newer package styles (Flatpak/Snap/AppImage), but seemingly having to download a new 800+MB runtime for small 32MB applications is ridiculously wasteful and I wouldn’t touch them if I didn’t have at least a TB of storage.
This is amazing! I hope it stays compatible with the EPEL repositories. I see no reason not to start using it when available. If it maintains compatibility I could see Rocky or Alma starting to follow this as well.
That would be my recommendation as well. I’ve been using a Zowie mouse on Linux for years now.
However, the switches with which you can make the changes are at the bottom of the mouse. Changing the DPI, for example, with one click is therefore not possible. For some users, this is apparently a problem, for whatever reason.
Have been using a Zowie FK2 for a couple years now and it’s really nice. No drivers needed due to being USB class complient. Hardware toggle for DPI. Good build quality. If it would break tomorrow, I’d buy it again if available.
linux
Newest
This magazine is from a federated server and may be incomplete. Browse more on the original instance.