There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

linux

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

Dirk , in How can I use BASH to parse metadata from jpg and mp4 files?
@Dirk@lemmy.ml avatar

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.

Both can be used in scripts.

ShustOne , in The year of Linux on the desktop is closer. Linux reaches 3% of desktops

I love Linux but I’ve been hearing this song since 2002. I’d love for it to grow bigger but we should stop framing it as the year of Linux.

victron , (edited )
@victron@lemmy.world avatar

I’ve been hearing this song since 2002

That’s the joke, my guy. THIS TIME IS REAL!

lol ,

I met the linux kernel on the bus station on my way home yesterday, and asked him about this and he answered with a simple “yes” and left.

stappern ,

i hope that day never comes

pztrn , in Are there any good Blu-ray ripping software for Linux?
@pztrn@bin.pztrn.online avatar

You can save money with mkvtoolnix and use hardware encoder with ffmpeg to speedup conversion.

Octagon9561 , in Are there any good Blu-ray ripping software for Linux?

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.

EveryMuffinIsNowEncrypted OP ,
@EveryMuffinIsNowEncrypted@lemmy.blahaj.zone avatar

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.)

NoDignity ,

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.

EveryMuffinIsNowEncrypted OP ,
@EveryMuffinIsNowEncrypted@lemmy.blahaj.zone avatar

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

TheOptimalGPU ,

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.

cmnybo ,

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.

Octagon9561 ,

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.

Octagon9561 ,

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.

EveryMuffinIsNowEncrypted OP ,
@EveryMuffinIsNowEncrypted@lemmy.blahaj.zone avatar

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

EveryMuffinIsNowEncrypted OP , (edited )
@EveryMuffinIsNowEncrypted@lemmy.blahaj.zone avatar

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

Kata1yst , (edited ) in Are there any good Blu-ray ripping software for Linux?
@Kata1yst@kbin.social avatar

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

vaseline ,

I don’t know whether this is brilliance or madness

EveryMuffinIsNowEncrypted OP ,
@EveryMuffinIsNowEncrypted@lemmy.blahaj.zone avatar

Yes.

Steam-Roller ,

Hats off to you good sir bows

EveryMuffinIsNowEncrypted OP ,
@EveryMuffinIsNowEncrypted@lemmy.blahaj.zone avatar

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. :/

entropicdrift ,

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

IsoKiero ,

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.

entropicdrift ,

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.

30021190 ,

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.

wallmenis ,

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

gravitas_deficiency ,

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

pensivepangolin ,

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!

csolisr ,

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

pearsche , in What are your must-have packages?
  • ardour
  • kdenlive
  • vscode
  • kdenlive
  • gnome
  • xmrig
  • fish
  • element
  • telegram
Petul , in Keeping and running frequently used commands

McFly for better ”ctrl+c”. It also keeps track of what commands you ran in what directory.

https://github.com/cantino/mcfly

neytjs , in Advice for a middle-age, moderately pc knowledgeable person to finally switch to or become proficient with Linux?

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.

pascal ,

I also endorse Linux mint as a Windows replacement distribution.

l3mming , (edited ) in Plan on getting a Linux laptop: any suggestions?

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.

PurrJPro OP ,

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 :)

monobot ,

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).

jameskirk ,
@jameskirk@startrek.website avatar

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 :)

monobot ,

Microphone on my headphones is not working, it is connecting but codec is off. It us not working with second parmir different manufacturer.

I got bt usb dongle and both work with it.

I don’t know if the problem is in kernel driver or bt deamon…

jameskirk ,
@jameskirk@startrek.website avatar

Hear me out. Go to the BIOS. Swap Left Ctrl and FN! Thanks me later :)

l3mming ,

Thank you! It’s a bloody miracle!

Agility0971 ,
@Agility0971@lemmy.world avatar

I’ve had to borrow computers with fn and ctrl swapped. I understand shat you mean

azvasKvklenko ,

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

shertson ,
@shertson@lemmy.world avatar

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.

pixelprimer ,

Hahaha, I’m the opposite I’ve been so used to the thinkpad fn that I hate using other laptop keyboards.

keen1320 ,

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.

sleepyTonia , in Anyone else starting to favor Flatpak over native packages?
@sleepyTonia@programming.dev avatar

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.

DidacticDumbass OP ,

That is a fair take. The universal package systems seem to disregard space outright, which is unfortunate.

amanneedsamaid , in [Suggestions] Good distros for gaming

I’ve found setting up gaming on Fedora to be easy, but if you want it to be even easier I’ve heard that’s the entire point of Nobara.

iamthatis OP ,

Awesome thanks!

original_ish_name ,

I don't understand why nobara can't be a post install script

amanneedsamaid ,

I don’t either, honestly.

assembly , in SuSE is working on a RHEL fork

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.

fictitiousexistence , (edited ) in Keeping and running frequently used commands

I use this method from Luke smith for bookmarking.

vid.puffyan.us/watch?v=d_11QaTlf1I

I just have another file for commands.

You can use rofi/dmenu/bemenu. I use kickoff though.

xkforce , in SuSE is working on a RHEL fork

So what happens with Fedora?

k_rol ,

Fedora will remain the same. Just like CentOS Stream. There will probably have less people contributing though.

s_s , in Need a good gaming mouse that is Linux compatible. Any suggestions?

Zowie (BenQ) gaming mice all have hardware toggles for report rate and dpi on the bottom of the mice, if that suits you.

Fryboyter ,

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.

bellsDoSing ,

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.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines