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.

deadbeef79000 , in Good printers?

Brother MFC-xxxx whichever is available. Plug in the ethernet or connect to wifi and go. No drivers.

We’ve had a decade+ of solid use, the couple of times we’ve had issues we’ve had reasonably priced local service.

It’s because they’re lower-end “business” machines rather than any-level “consumer” grade crap.

We’ve had a bad run with off-brand toner shitting up the machine though. We probably spend about $600/year on genuine toner. But we do a lot of printing. I shudder to think what our inkjet costs would be though.

If you don’t need immediate printing facility, you might find printing ad hoc at Stationery Warehouse or the public library more cost effective!

krdo ,

Second the Brother MFC. We’re really happy with ours. Before that we had a HP LaserJet which actually was that bad either. I guess just avoid the cheap inkjet machines.

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

Reencoding video will always put a lot of strain on your computer, regardless if it’s Handbrake or some other tool doing the conversion. With that said, it also depends a lot on the settings you use to transcode.

Can you share what video settings you tried in Handbrake?

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

Yup, edited my post. Thanks. :)

exu ,

Ok, so two things stand out.
First, you’re using placebo as your encoder preset. This is slow, stupidly slow.
Searching for some comparisons between the different presets that show how slow it is was more difficult than expected, most people don’t even test this setting. Found one comparison here anyways luckily. The first graph (red line) shows how many fps/second were achieved on average. The fastest preset they tested, veryfast, is 68 times faster than placebo.
For reasonable values I’d use medium or slow, which are still 20 times or 10 times faster with minuscule quality differences. Also see the FFMPEG FAQ on why placebo is stupid.

Now for the second thing. I get why you put 0 as CRF, but that’s not a good idea. You’ll most likely have a bigger file in the end than what you started with.
The bluray itself does not contain enough details to actually need such a low CRF. 17 or 18 is visually lossless, as in you won’t be able to tell the difference with your eyes. For my encodes I use 20 most of the time, as it still more than good enough. Reasonable values, if you want a smaller file size are up to ~28.

TLDR: use slow with CRF 20 as a starting point.

I hope some of this made sense to you and sorry if it comes over as too agressive.
Still, hope this helps you get what you want.

Edit: One more thing I thought about. You can use the hardware encoder in your GPU if you want. However, that will come with worse quality and bigger files than encoding on the CPU. Still something you might want to look at just to compare.

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

I…uh…feel like a dumbass now. I didn’t know a lot of this. When I first started using Handbrake, a lot of articles I read suggested to use Placebo / CRF 20 if I wanted no loss in quality. I also do this when I rip DVDs and the file sizes and everything have always been perfectly reasonable. Though I suppose maybe that was because DVDs are 480p max typically and those naturally have much smaller file sizes than Blu-rays hold.

I just don’t want a loss in quality, that’s all. :(

Also,

TLDR: use slow with CRF 20 as a starting point.

Thanks. You didn’t come across as agressive to me. :) I appreciate the information. I’m no noob as I’ve been ripping DVDs for years using Handbrake but I am very much a beginner when it comes to ripping Blu-rays, which seem to be a slightly different beast than the former, so I’m glad that everyone is so willing to share tips. :)

PoisonedPrisonPanda , in How can I use BASH to parse metadata from jpg and mp4 files?

Chatgpt is your friend here. ;)

Gutless2615 , (edited )

It literally is. This is a great use case for going down the chat gpt approach. It will help you throw together a script for this quickly.

LastoftheDinosaurs ,
@LastoftheDinosaurs@lemmy.world avatar

deleted_by_author

  • Loading...
  • PoisonedPrisonPanda ,

    for simple code snippets chatgpt can give you a really nice performance boost. plain routines where there is more syntax to write than actual cognitive thinking to do can be perfectly outsourced.

    PoisonedPrisonPanda ,

    yeah but in 80% of the time the less complex solutions are more quickly resolved using chatgpt.

    waiting for another human is not instantaneous.

    Mechanize ,

    Probably I’m misreading it, but isn’t this kind of answer basically saying “google it”?

    I don’t want to sound rude, but my english is kind of failing me, I’m just curious, but what’s the point?

    One of the reasons of this kind of public forum is to share knowledge and experiences. ChatGPT is a closed, private, garden where the answer will just die.

    I could get a “I don’t really know the answer but I used ChatGPT and it gave me this:” followed by a script, or something like that.

    I know, this is off-topic and I’m sorry, I’m just really interested in Why, considering it’s said multiple times in this comment section.

    PoisonedPrisonPanda ,

    chatgpt is built on the foundations of stackoverflow etc. therefore yeah it is kind of googling it.

    however the nature of the generative approach of chatgpt gives you tailored answers.

    when you google your question you get abstract answers for other related questions. with an explanation of how doing it. e.g. when I dont understand something but want to I will google it - to gain knowledge.

    but with chatpgt you can specify - hey I want a functiom that does this and that in prints me a string/double using that format. chatpgt gives me exactly what I want - without fiddling with format strings etc. anithet example is regex. for my field of experience I am no core developer, therefore for me everything is a tool to get what I want. chatpgt can give this me in a more comfortable way. I dont need to master regex. but it is very helpful. therefore Im outsourcing that kind of work.

    One of the reasons of this kind of public forum is to share knowledge and experiences. ChatGPT is a closed, private, garden where the answer will just die.

    I agree that for a general standpoint this is valid. however for such simple questions we do not need new forums asking about the already discussed stuff. this is just repetition and we do not like duplicates (which is why forum rules are strict about this)

    so I dont see any issue here.

    could get a “I don’t really know the answer but I used ChatGPT and it gave me this:” followed by a script, or something like that.

    that is the total responsibility by the user and has nothing to do with chatgpt. its the same as running ambiguous linux commands as sudo. its not the fault of stackoverflow, the reddit thread or linus itself. its the users fault.

    therefore if such thing you mentioned happens. but it can be rejected - one should now about the culprits and strenghts of chatgpt.

    edit: as you can see the top voted comment is a human made answer (could also be a chatpgt bot?).

    so we are not yet doomed. ;)

    INeedMana ,
    @INeedMana@lemmy.world avatar

    Let’s see

    Hi @ChatGPT , write a bash script that extracts date of modification including seconds from all .jpg and .mp4 files in the current directory and prints it out

    PoisonedPrisonPanda ,

    cool thing. I assume it works by piping the linked comments to the API, with the private API key of the bot maker?

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

    AFAIK no and yes ;)

    It sends only the comment where the bot is referenced (no context, no chaining. Each comment is a separate prompt) and it does use the private account of the creator. In the topic where it got announced you can see that at some point it ran out of limit and started generating using 3.5

    PoisonedPrisonPanda ,

    right. makes sense. thanks for digging into this monster thread tho.

    may your day be blessed.

    db2 , in How can I use BASH to parse metadata from jpg and mp4 files?

    Use ffprobe to get video info, it makes it dead easy. Practically a one liner.

    SymbolicLink , in Keeping and running frequently used commands

    I wouldn’t install a program for this if your use case is simple. You will end up relying on it when there are already some built in tools that can get you 99% of the way there.

    1. Bash scripts placed in ~/bin or ~/.local/bin
    • Can have simple or complex scripts setup to do whatever you want
    • Easily called from terminal or automated through cron or systemd
    1. Environment variables set in -/.bashrc
    • Great for storing common paths, strings, etc.
    • Can be easily incorporated into bash scripts
    1. Aliases set in ~/.bashrc
    • Ideal (IMO) for common commands with preferred options
    • for example you could setup your most used rsync command to an alias: alias rsync-cust=“rsync -avuP”

    Edit: rephrased to not discount the tools shared. I am sure if you had a specific reason to use them they could be helpful. But I think for many users the above options are more than enough and are supported pretty universally.

    dragonfly4933 OP ,

    I more or less was just looking for a general survey of what other people used.

    I agree installing a binary for this small kind of thing might be excessive.

    SymbolicLink ,

    Yeah, potentially overkill, but all the power to anyone who wants to try them out. Freedom of choice is one of the best parts of Linux.

    And sorry for the long response. It’s hard to gauge the proficiency that someone might have with Linux, so I tend to lean towards detailed explanations just in case

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

    maybe something like this using mediainfo and exiftool?

    <pre style="background-color:#ffffff;">
    <span style="color:#323232;">#!/bin/bash
    </span><span style="color:#323232;">
    </span><span style="color:#323232;">for file in *.jpg *.mp4; do
    </span><span style="color:#323232;">    # Extract date and time from file's metadata
    </span><span style="color:#323232;">    if [[ $file == *.jpg ]]; then
    </span><span style="color:#323232;">        datetime=$(exiftool -DateTimeOriginal -d "%Y%m%d_%H%M%S" "$file" | awk -F': ' '{print $2}')
    </span><span style="color:#323232;">    else
    </span><span style="color:#323232;">        datetime=$(mediainfo --Output="General;%File_Modified_Date%" "$file" | awk -F' ' '{print $1"_"$2}' | tr -d ':' | tr -d '-')
    </span><span style="color:#323232;">    fi
    </span><span style="color:#323232;">
    </span><span style="color:#323232;">    # If datetime was found, rename the file 
    </span><span style="color:#323232;">    if [ -n "$datetime" ]; then
    </span><span style="color:#323232;">        # Extract extension of file 
    </span><span style="color:#323232;">        ext="${file##*.}"
    </span><span style="color:#323232;">        # Rename file with date and time as prefix (remove echo after testing it)
    </span><span style="color:#323232;">        echo mv -- "$file" "${datetime}.${ext}"
    </span><span style="color:#323232;">    fi
    </span><span style="color:#323232;">
    </span><span style="color:#323232;">done
    </span>
    
    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 ,
    @entropicdrift@lemmy.sdf.org avatar

    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 ,
    @entropicdrift@lemmy.sdf.org avatar

    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.

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