Skip Navigation
GnuLinuxDude GnuLinuxDude @lemmy.ml
Posts 23
Comments 287
/media or /mnt or anywhere ? Discussion.
  • The answer to your question why is because I arbitrarily decided on that years ago. That's basically all there is to it.

    The answer to your file ownership problems I can't answer, because I don't have that happening. My files are mounted like so:

    LABEL=BigHD /mnt/BigHD btrfs nosuid,nodev,nofail,noatime,x-gvfs-show,compress-force=zstd:1 0 0

  • /media or /mnt or anywhere ? Discussion.
  • It ultimately doesn't actually matter because in many cases these things are convention and there is no real system-based effect. So while it would be especially weird if your distro installed packages into those directories, it ultimately doesn't matter. Someone already linked the filesystem hirearchy. See how tiny the /media and /mnt sections are?

    I put my fixed disks into subdirectories under /mnt and I mount my NAS shares (I keep it offline most of the time) in subdirectories in /media.

  • /media or /mnt or anywhere ? Discussion.
  • But what about cases where you wish to mount and share with multiple users?

  • What’s the worst piece of technology you’ve ever owned?
  • and couldn’t put it back together ever again.

    I did this to my X201. Somehow i have like 7 screws that I couldn't find where they belonged (even though I tried to document each screw). I also broke part of the bezel. So I did put it back together again, but with poor structural integrity. The thing still works but I do not use it. Sadly that era of laptops just run too warm and the fans are too noisy.

  • What’s the worst piece of technology you’ve ever owned?
  • I think the Thinkpad X130e with the AMD E-240 CPU. That processor, really, was the bad part. Every little single thing you wanted to do was absolutely CPU-bound, even when it was contemporary and new (c. 2011-2012). The amount of time I wasted waiting for the fully hammered CPU to do literally anything was too much.

    I bought the laptop used because I figured a tiny Linux laptop would be great. And other aspects of it were fine, such as the display, keyboard, trackpad, build quality, etc. But that stupid CPU totally killed the device. Such a regret.

  • What YouTubers did you used to watch back then but not anymore?
  • Two Best Friends Play / Super Best Friends. Because some of them stopped being best friends and only pushed forward through a professional working relationship until even that became too strained for them to continue. 😥

  • What YouTubers did you used to watch back then but not anymore?
  • In terms of the gaming ones you listed I only watched markiplier. Specifically the FNAF stuff. That was a lot of fun almost 10 years ago when it was novel and new. But now the genre is so played out and the whole “scariest game scream at the camera” thing, while maybe based on something genuine then, became obviously forced and annoying after not that long.

  • Mozilla has acquired ad metrics firm Anonym
  • “Don’t show me personalized ads”

    Oh so you will continue to try and track me, you just won’t show me targeted advertisements?

    That’s what passes for privacy on the internet today.

  • Dr Disrespect fired by the game studio he co-founded: 'It is our duty to act with dignity on behalf of all individuals involved'
  • I forgot about this but as soon as you said red-faced it came back to me. This “adult” became a tomato because he could choose to be referred to as he/him in a video game. I only ever saw toddlers and small children scream the way he did. So pathetic!

  • Mozilla roll out first AI features in Firefox Nightly
  • native tab grouping would be a much more desirable feature, to me

  • which one do you prefer? having kids or no kids? and why??
  • If my life were financially more secure and if the climate didn’t seem objectively fucked in the future I could imagine myself being a happy father of kids

  • Capitalists: capitalism is the only system that lets you chase your dreams…
  • Reminds me of George Lucas talking about how Soviet filmmakers had more creative freedom than American ones https://www.youtube.com/watch?v=SWqvaMEFIdI

  • What's something you want to stop doing but can't actually stop?
  • I believe you that if you're paying 2x a traditional ticket price you get a better experience, but I would really just prefer high speed rail lines that can service many people at once, not a boutique experience catered to the wealthy.

  • Watch: Adobe angers artists with new Photoshop terms
  • I agree with you about the terrible name. It also doesn’t betray its purpose. Photoshop… hmm something to do with photos? Ok. It makes sense. GIMP? It’s… what, now?

    But I disagree that making everyone wonder how to pronounce GIM is the solution 😆

  • What's something you want to stop doing but can't actually stop?
  • This isn’t a personal habit but flying. If I could never ever in my life ever have to go through a stupid security theater checkpoint at an airport and then board a plane and sit like a sardine for hours on end…

    Too bad I live in public transit shithole USA

  • Biden administration signals it will support push to hit ICC with sanctions
  • “It’s a rogue prosecutor who’s out to demonise the one and only Jewish state,” he added.

    Which is it, American man? Is the separation of church and state the ultimate ideal, or is it that theocratic states are sacrosanct?

  • Texas power prices briefly soar 1,600% as a spring heat wave is expected to drive record demand for energy
  • Maybe power is more reliable in central Texas, my family still has no electricity from the derecho that hit Houston. And they lose power frequently from all the heavy storms or hurricanes that pummel the gulf coast.

  • SVT-AV1 2.1.0 Released

    gitlab.com v2.1.0 · Alliance for Open Media / SVT-AV1 · GitLab

    [2.1.0] - 2024-05-17 API updates One config parameter added within the padding size. Config param structure...

    v2.1.0 · Alliance for Open Media / SVT-AV1 · GitLab

    [2.1.0] - 2024-05-17

    API updates

    • One config parameter added within the padding size. Config param structure size remains unchanged
    • Presets 6 and 12 are now pointing to presets 7 and 13 respectively due to the lack of spacing between the presets
    • Further preset shuffling is being discussed in #2152

    Encoder

    • Added variance boost support to improve visual quality for the tune vq mode
    • Improve the tradeoffs for the random access mode across presets:
    • Speedup of 12-40% presets M0, M3, M5 and M6 while maintaining similar quality levels
    • Improved the compression efficiency of presets M11-M13 by 1-2% (!2213)
    • Added ARM optimizations for functions with c_only equivalent

    Cleanup Build and bug fixes and documentation

    • Use nasm as a default assembler and yasm as a fallback
    • Fix performance regression for systems with multiple processor groups
    • Enable building SvtAv1ApiTests and SvtAv1E2ETests for arm
    • Added variance boost documentation
    • Added a mailmap file to map duplicate git generated emails to the appropriate author
    0
    This week in KDE: all about those apps
  • Love your enthusiasm. Your comment feels like it was just written with the most positive attitude straight from the heart. I wish to carry that energy with me through the rest of my day :)

  • SVT-AV1 v2.0.0 released · GitLab

    gitlab.com v2.0.0 · Alliance for Open Media / SVT-AV1 · GitLab

    [2.0.0] - 2024-03-13 Major API updates Changed the API signaling the End Of Stream (EOS) with...

    v2.0.0 · Alliance for Open Media / SVT-AV1 · GitLab

    [2.0.0] - 2024-03-13

    Major API updates

    • Changed the API signaling the End Of Stream (EOS) with the last frame vs with an empty frame
    • OPT\_LD\_LATENCY2 making the change above is kept in the code to help devs with integration
    • The support of this API change has been merged to ffmpeg with a 2.0 version check
    • Removed the 3-pass VBR mode which changed the calling mechanism of multi-pass VBR
    • Moved to a new versioning scheme where the project major version will be updated every time API/ABI is changed

    Encoder

    • Improve the tradeoffs for the random access mode across presets:
    • Speedup presets MR by \~100% and improved quality along with tradeoff improvements across the higher quality presets (!2179,\#2158)
    • Improved the compression efficiency of presets M9-M13 by 1-4% (!2179)
    • Simplified VBR multi-pass to use 2 passes to allow integration with ffmpeg
    • Continued adding ARM optimizations for functions with c\_only equivalent
    • Replaced the 3-pass VBR with a 2-pass VBR to ease the multi-pass integration with ffmpeg
    • Memory savings of 20-35% for LP 8 mode in preset M6 and below and 1-5% in other modes / presets

    Cleanup and bug fixes and documentation

    • Various cleanups and functional bug fixes
    • Update the documentation to reflect the rate control changes
    1

    Yuzu Emulator is gone from Github

    https://github.com/yuzu-emu/yuzu

    ICYMI, Yuzu settled with Nintendo for $2.4M and tl;dr said that Yuzu's primary purpose was to aid and abet piracy. Nintendo won outright.

    https://twitter.com/OatmealDome/status/1764715696250843321

    8

    >"I tend to spread positive energy," Hassouna says. "But when the war started, there was no positive energy." > >His darkest hour came on Feb. 12. > >The Israeli military unleashed heavy bombings to provide cover for commandos during a successful hostage rescue mission. At least 74 Palestinians were killed in that bombing campaign, according to Gaza health officials. > >Hassouna's mother, father, brother, sister-in-law and young nieces and nephew were among them. They were killed as they slept in the home where they were sheltering. It was the one night Hassouna happened to sleep over at a friend's house. > >"Now I am by myself," he says. "Why should I live my life without a family?"

    9

    Ryujinx: Progress Report January 2024

    blog.ryujinx.org Progress Report January 2024

    February is here which must mean that January has slid by once again. While this time of year isn’t usually so hot for those Twitter-melting AAA games, we all sometimes need less action-packed schedules. Ubisoft proved they still have some ability to make a compelling video game, and potential

    Progress Report January 2024
    1
    www.politico.eu Zelenskyy fires Ukraine’s top general Zaluzhny

    The two had strong differences over how the war should be fought.

    Zelenskyy fires Ukraine’s top general Zaluzhny

    And an extra article giving more background and lead up https://www.politico.eu/article/ukraine-general-runs-out-of-road-kyiv-washington/

    7

    How to determine the level of film grain synth on a video?

    Does anyone know how to determine the level of grain synth used in an encoded video? I have .webms that I've encoded with ffmpeg and svt-av1 but I don't have that grain synth information anymore.

    In fact it would be nice if I could just see any other information about an encoded video (rate factor, preset used, etc). These details don't appear when using mediainfo so I presume they are lost and unknowable. But grain synth occurs at decode time, so that should still be something I can figure out, right?

    1
    United States | News & Politics @lemmy.ml GnuLinuxDude @lemmy.ml
    www.wsj.com Florida Is First State Allowed to Import Prescription Drugs From Canada

    The agency’s decision could change the way Americans obtain prescription medicines and could reduce their cost.

    Florida Is First State Allowed to Import Prescription Drugs From Canada

    Archive link. https://archive.is/N4Rqj

    Some personal editorializing: This is a pretty remarkable first because of how captive we Americans are to pharma prices. Famously, when Medicare Part D was brought into existence by law it restricted the federal government from negotiating Part D drug prices. To me, shopping for drugs in Canada is tackling the symptom and ignores the cause. I wonder if this gets more traction with more states how it might affect drug prices in Canada, too.

    The real solution to all this, of course, would be nationalize the healthcare industry in all aspects and to create a single payer healthcare system.

    48

    HandBrake 1.7.0 released with AMD & Nvidia AV1 hwenc, SVT-AV1 v1.7 & SVT-AV1 multi-pass ABR

    github.com Release 1.7.0 · HandBrake/HandBrake

    Upgrade Notice Before updating HandBrake, please make sure there are no pending encodes in the queue, and be sure to make a backup of any custom presets and app preferences you have, as they may no...

    Release 1.7.0 · HandBrake/HandBrake

    Huge improvements for AV1 users over the last stable HandBrake release.

    4

    Monaspace - Microsoft presents a new font family for code

    monaspace.githubnext.com Monaspace

    An innovative superfamily of fonts for code

    Monaspace

    The way they talk about it makes it sound like they invented the written word, but that notwithstanding the fonts actually look really nice in my opinion.

    124

    Apple's newly announced M3 processors feature hardware decode

    www.apple.com Apple unveils M3, M3 Pro, and M3 Max, the most advanced chips for a personal computer

    M3, M3 Pro, and M3 Max feature groundbreaking technologies that deliver dramatically increased performance and unleash new capabilities for Mac.

    Apple unveils M3, M3 Pro, and M3 Max, the most advanced chips for a personal computer

    I think with the weight of Apple finally behind AV1 it is as blessed of a format as anything can be. Sisvel be damned.

    > And, a new media engine now includes support for AV1 decode, providing more efficient and high-quality video experiences from streaming services.

    I do not see AV1 encode support on this chip's announcement, however.

    1

    There are a lot of good improvements and fixes in this release. As a remorseful Nvidia on Linux user, I am extremely excited that GAMMA_LUT is finally making its debut in the Nvidia driver. This means I can actually try to use Gnome Wayland at night with the night shift feature, assuming other Wayland issues are also resolved.

    5

    The original source code to the classic shmup Raptor Call Of The Shadows has been released

    github.com GitHub - skynettx/dosraptor: Original Raptor Call Of The Shadows version 1.2 DOS source code

    Original Raptor Call Of The Shadows version 1.2 DOS source code - GitHub - skynettx/dosraptor: Original Raptor Call Of The Shadows version 1.2 DOS source code

    GitHub - skynettx/dosraptor: Original Raptor Call Of The Shadows version 1.2 DOS source code

    It is licensed under GPLv2

    2

    Is there a way to open a predetermined list of websites at once?

    Say I define different contexts or workspaces. So in my address bar I can type work and it will open up 5 pages that will be associated to that keyword. Then I can type bored and it will open up my 4 defined pages associated to that keyword.

    I am NOT asking about pinning pages to the start/home page, and I am NOT asking about loading websites when Firefox starts up (because I don't want to always load the same things every time I launch ffox). I am also not asking about pinning tabs.

    23
    lemmy.ml meta @lemmy.ml GnuLinuxDude @lemmy.ml

    Should lemmy.ml block chatgpt scraping in robots.txt?

    Some context about this here: https://arstechnica.com/information-technology/2023/08/openai-details-how-to-keep-chatgpt-from-gobbling-up-website-data/

    the robots.txt would be updated with this entry

    User-agent: GPTBot Disallow: /

    Obviously this is meaningless against non-openai scrapers or anyone who just doesn't give a shit.

    12

    Niceness and Cgroups. How do I change this correctly?

    tl;dr question: How do I get the Handbrake Flatpak to operate at a high niceless level in its own cgroup by default? I'm using Fedora Linux. --- So if I understand things correctly, niceness in Linux affects how willing the process scheduler is to preempt a process. However, with cgroups, niceness only affects this scheduling relative to other processes within a cgroup. This means a process running with a high niceness in its own cgroup has the same priority as other processes in equivalent cgroups, and it will not in fact be preempted in a way one would expect.

    So why does this matter to me at all? I have a copy of Handbrake installed from Flatpak. And sometimes I want to encode a video in the background while still having a decently responsive desktop experience so I can do other things, and basically let Handbrake occupy the cpu cycles I'm not using. Handbrake and the video encoding process should be at the bottom priority of everything to the maximum extent possible.

    But it does not appear to be enough to just go into htop and set the handbrake process's niceness level to 19 and then start an encode, because of the cgroup business I mentioned above.

    Furthermore, in my opinion Handbrake should always be the lowest priority process without my having to intervene. I would like to be able to launch it without having to set its niceness. Does anybody have suggestions on this? Is my understanding of the overall picture even correct?

    2

    How I encode AV1 with Av1an and Podman

    I have been encoding some videos in AV1 lately and I thought I'd share my technique for those who may wish to do some AV1 on their own without having a messy setup. I think this is a pretty clean way, ultimately, to use Av1an's Docker image.

    A forewarning: AV1 can be pretty to slow encode with. I've been doing it with DVDs where the 640x480 resolution of the video means a frame can be processed relatively quickly, but videos in 1920x1080 or 4k resolutions might be pretty intense where the encode speed only ends up being a frame a second.

    Forewarning pt. 2: Something I learned that I CANNOT rely on is trying a faster encode speed to guesstimate the resulting file size and picture quality and then really maximize my results by lowering the encode speed. My observation has been that a slower encode speed will in fact improve the picture quality (and file size), such that I cannot be sure what something will look like without just encoding a very short sample at a slow speed. OK. Let's begin.

    Operating System & Environment

    I am using Fedora Linux 38. I'd like to use the Av1an package but that only has an official Arch release. I definitely don't want to spend time compiling this myself, so I will use the official Docker image instead. And I won't use Docker, actually, but Podman. I also use the Fish Shell. Its syntax is very slightly different from Bash's.

    Now, Fedora users may know about SELinux. And something that kept happening to me was the security context of some of the files I'm shuffling around my hard drives would end up being not correct, making Podman incapable of seeing the files I'm trying to use. So instead of fixing the context per file (annoying) I just temporarily disabled SELinux.

    sudo setenforce Permissive

    Container image

    From here things are pretty straightforward. I'll pull the docker image, which has a full Av1an setup ready to go.

    podman pull docker.io/masterofzen/av1an:master

    One little note is that you should use the master tag. A confusing thing about this image is that the latest tag is the old python version, and we want the current Rust version.

    Executing Av1an

    Now, navigate to whatever directory your source video is in. In my case, I losslessly encoded the DVDs with Handbrake into h264 and passed through the audio/chapter markers, etc. This gave me a good source to work with, even though it was a little bloated in file size. I don't think Av1an accepts MPEG-2, which is why I did that.

    First I'll explain what the Podman command is doing for those who aren't familiar with Docker/Podman, and then I'll give a full working example.

    podman run -v "$(pwd)":/videos:z --userns=keep-id -it --rm docker.io/masterofzen/av1an:master -i sourcevideo.mp4 -s scenes.csv --pix-format yuv420p10le -o output.webm -v "--VIDEO_OPTIONS" --keep -a "--AUDIO_OPTIONS"

    • podman run - Execute a container
    • -v "$(pwd)":/videos:z - Mount the present working directory as /videos in the container, and the :z is an SELinux labeling thing that can be dropped for non-SELinux users.
    • --userns=keep-id - This flag helps keep the user id and group ids consistent between the host and container so that they don't get mangled. Your output file will belong to your user.
    • -it - Execute the command in a visible shell session
    • --rm - Remove the container (not the image, the container) when the command is done executing.

    Final example

    The rest of the flags are for Av1an itself, or for the encoders. So here's a full working example of how I used it, to encode with aomenc and Opus for the audio. Av1an uses aomenc by default.

    podman run -v "$(pwd)":/videos:z --userns=keep-id -it --rm docker.io/masterofzen/av1an:master -i sourcevideo.mp4 -s scenes.csv --pix-format yuv420p10le -o output.webm -v " --cpu-used=3 --enable-qm=1 --threads=4 -b 10 --end-usage=q --cq-level=28 --lag-in-frames=48 --auto-alt-ref=1 --enable-fwd-kf=1" --keep -a "-c:a libopus -b:a 128k"

    I think for an explanation for what individual flags do, and perhaps some guidance on how to use them effectively, I can only refer one to the guide written by Reddit user BlueSwordM https://www.reddit.com/r/AV1/comments/t59j32/encoder_tuning_part_4_a_2nd_generation_guide_to/

    5