AernaLingus

@[email protected]

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

AernaLingus,

There’s a variable that contains the number of cores (called cpus) which is hardcoded to max out at 8, but it doesn’t mean that cores aren’t utilized beyond 8 cores–it just means that the scheduling scaling factor will not change in either the linear or logarithmic case once you go above that number:

code snippet/* * Increase the granularity value when there are more CPUs, * because with more CPUs the ‘effective latency’ as visible * to users decreases. But the relationship is not linear, * so pick a second-best guess by going with the log2 of the * number of CPUs. * * This idea comes from the SD scheduler of Con Kolivas: */ static unsigned int get_update_sysctl_factor(void) { unsigned int cpus = min_t(unsigned int, num_online_cpus(), 8); unsigned int factor; switch (sysctl_sched_tunable_scaling) { case SCHED_TUNABLESCALING_NONE: factor = 1; break; case SCHED_TUNABLESCALING_LINEAR: factor = cpus; break; case SCHED_TUNABLESCALING_LOG: default: factor = 1 + ilog2(cpus); break; } return factor; }

The core claim is this:

It’s problematic that the kernel was hardcoded to a maximum of 8 cores (scaling factor of 4). It can’t be good to reschedule hundreds of tasks every few milliseconds, maybe on a different core, maybe on a different die. It can’t be good for performance and cache locality.

On this point, I have no idea (hope someone more knowledgeable will weigh in). But I’d say the headline is misleading at best.

AernaLingus, (edited )

https://github.com/yt-dlp/yt-dlp is gonna be the go-to tool for any YouTube downloading, but I don’t have much experience with frontends for it. I use Tartube for archiving channels, but it can be a bit byzantine and might be overkill for what you need–plus, there’s a decent chance you will need to manually enter some yt-dlp options anyway (although only during the setup process). That being said, it’s the only one I have experience with, so it’s the one I’ll recommend!

Couple of clarifying questions:

  1. When you say “download a YouTube channel in a particular language”, do you just mean a general monolingual channel (e.g. Masahiro Sakurai’s Japanese channel), or do you mean a channel that has videos with multiple audio tracks (such as this video with three different language tracks)? Both are doable, but I think you’ll need to add an actual command line flag for the latter whereas the former should be achievable pretty simply through Tartube’s GUI.
  2. Are the subtitles you’re talking about added by the uploader, or are they auto subs (in this case, auto subs that are auto translated)? Both are easily achievable through the GUI, just slightly different instructions for either one. Also, depending on the scope of things, the simplest approach might be to simply download all subtitles (may not want to do that for like a MrBeast video with a dozen subtitle tracks), which also sidesteps the possible issue where the language of tracks isn’t properly indicated by the uploader.
  3. When you say “put all streams for a single video together”, do you mean that you don’t want the video and audio tracks merged into a single file, or just that when you try to download the video you get a pre-merged file that doesn’t contain the tracks that you want? Was a little confused by this part.

I know you’re looking for a GUI solution, but while I wait for clarification I might as well drop a basic yt-dlp command to give you an idea of the parameters we’re dealing with (here I’m assuming separate audio tracks and uploader-added subs):

yt-dlp --format bv+ba[language=ja] --sub-langs en --write-subs --convert-subs srt --download-archive channel_archive.txt video_or_channel_url_goes_here

–format bv+ba[language=ja]: gets the “best” video track and Japanese audio track (for a 4K video yt-dlp prefers the VP9 encode, but if it’s a video with a lot of views there may also be an AV1 encode–if you want that AV1 encode you have to explicitly opt for it by using bv[vcodec^=av01] instead of plain bv)
–sub-langs en: downloads English subtitle(s)
–write-subs: write subs to an external file (as opposed to embedding them)
–convert-subs srt: converts subs to srt format, if possible
--download-archive channel_archive.txt: writes the IDs of successfully downloaded videos to the specified file channel_archive.txt. If you re-run this command, these videos will be automatically and very speedily skipped over without needing to fetch any additional information. Even without this option, yt-dlp is smart enough to skip over videos that have already been downloaded (assuming the output filenames will be the same), but it will go through the entire process of fetching all the video information for each video up to the point it is about to start downloading, which is a huge waste of time if you’re just updating a channel archive and need only the newest three videos.

Everything in that command (except for the audio track bit, to my knowledge) can be handled in the Tartube GUI in relatively simple fashion, provided you know which menus to dig into.

edit: forgot the URL in my command, kinda important!

AernaLingus, (edited )

I remember being wowed by Beowulf (which I think was the first high profile 3D movie in the most recent wave), and I also enjoyed Avatar in 3D. Other than those two movies I found that 3D detected detracted from the overall experience and I quickly stopped attending 3D showings.

edit: realized I made a typo three days later…embarrassing

AernaLingus,

MartSnack - okay, this one is kind of cheating because there’s only one video so far, but if you like obscure and highly technical video game challenges like the SM64 A Button Challenge, it’s one of the best damn videos on the internet right up there with pannenkoek’s classic Watch for Rolling Rocks - 0.5x A Presses. It’s satisfying, interesting, and also surprisingly funny and relaxing. I’ve watched it like 7 or 8 times by this point, and I’m gonna watch it again after I submit this comment. Also if you like it def subscribe and hit the bell, he’s been working on a new video for months and has been giving updates in the comments as recently as a few days ago, so hopefully it’ll come out eventually!

Church of Kondo - Repository for remastered video game OSTs (primarily the cartridge era). These aren’t just any old remastered, but the result of countless hours of painstaking research to identify the exact samples used in games, track them down in the highest possible quality, and recreate a “perfect quality” mix. They’ve got reams of spreadsheets detailing all the samples they’ve cataloged.

mklachu - Dope Otamatone covers with extremely cute Otamatone costumes

Retro Game Mechanics Explained - Probably the highest production value you’ll ever see for videos on this topic–combines a deep knowledge of retro game hardware and programming with beautiful visualizations and demos. His video on Pac-Man ghost behavior is pretty representative of how he takes a subject and drills down to the assembly to show you exactly what’s happening with some really cool graphics that show what the code does step by step.

AernaLingus,

Love your profile picture! I’ll always have warm feelings towards Netscape Navigator, and I appreciated that they gave us a little something to look at while we waited for pages to load over dial-up.

AernaLingus,

Holy shit. I’ll be honest, having quit using reddit for daily browsing and simply relegating it to its main productive purpose of “usable Google results,” I kind of assumed that the outrage over the API pricing ultimately didn’t have much of an effect. But this data is nuts. I guess it goes to show the effect that alienating power users can have on a site that’s so power-user driven, where a fraction of users even comment and a tiny fraction of that fraction posts content and an even tinier fraction of that tiny fraction moderates to keep things running smoothly.

AernaLingus,

O Tannentag, o Tannentag…

AernaLingus,

And the maze, and the spot the difference landscape (got sent that one over AIM)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • KamenRider
  • TheResearchGuardian
  • KbinCafe
  • Socialism
  • oklahoma
  • SuperSentai
  • feritale
  • All magazines