[-] Armand1@lemmy.world 1 points 18 hours ago

What did bro mean by that? ๐Ÿคจ

[-] Armand1@lemmy.world 11 points 20 hours ago

Chat, is this real?

[-] Armand1@lemmy.world 5 points 1 day ago

A criminal! Lock him up ๐Ÿš“.

[-] Armand1@lemmy.world 74 points 2 days ago

Meanwhile, Deezer is completely unknown. No one in the comments even mentioned it. RIP.

[-] Armand1@lemmy.world 3 points 3 days ago

You got me hooked on this guy's videos.

[-] Armand1@lemmy.world 28 points 3 days ago* (last edited 3 days ago)

They fly now?!

[-] Armand1@lemmy.world 36 points 4 weeks ago* (last edited 4 weeks ago)

108cm is squarely within the range of dwarfism so, as a minority, I wouldn't be surprised if the data the user is searching for is scarce or missing altogether.

Hence the result pictured.

That said, the person searching this could have just made a typo for 180cm, which is much more common.

Why am I analysing the meme? Who knows.

61
Caption this (lemmy.world)
submitted 1 month ago by Armand1@lemmy.world to c/memes@lemmy.world
33
submitted 1 month ago* (last edited 1 month ago) by Armand1@lemmy.world to c/technology@lemmy.world

This is a short how-to on how to set custom values for LapSharp sharpening in Handbrake.

Not sure if this is the right place to post this. I would have historically posted it to a dedicated sub-reddit on Reddit, but I can't stand the owners of that website nowadays.

This is all original work, but I may myself repost this as a blog post at some point to try to improve reach if this gets burried.

Why?

I like Handbrake's LapSharp sharpening, but I found I wanted something in between the Stronger and Very Strong presets, which have a big jump between them, for a movie I was encoding. Therefore, I was trying to find out how to use the "Custom" value in the drop-down to get something in between the two.

I am not an expert in video encoding nor a command line wizard, so I prefer to use Handbrake over FFMPEG for most encoding tasks.

Finding out how

A general search around the internet, a skim through the documentation and questions to the prominent AI tools of today gave me no (or incorrect) answers on how to set these values.

It was only with some extra digging through the handbrake forums that I found people posting their logs for an unrelated problems that I noticed that Handbrake logs the following when you encode with LapSharp:

[09:01:35]  * video track
[09:01:35]    + decoder: h264 8-bit (yuv420p)
[09:01:35]    + filters
[09:01:35]      + Framerate Shaper (mode=0)
[09:01:35]        + frame rate: same as source (around 23.976 fps)
[09:01:35]      + Crop and Scale (width=1920:height=1040:crop-top=20:crop-bottom=20:crop-left=0:crop-right=0)
[09:01:35]        + source: 1920 * 1080, crop (20/20/0/0): 1920 * 1040, scale: 1920 * 1040
[09:01:35]      + Sharpen (lapsharp) (y-strength=1.1:y-kernel=isolog:cb-strength=0.55:cb-kernel=isolog)

Sure enough, pasting this string into the Custom textbox when the Custom preset is selected gave me equivalent results to the Very Strong preset.

Looking through the source code of Handbrake, I found the function that converts presets to values. It's written in C, which is not my forte, but we can see a bunch of if statements that pick values based on the Preset (Ultra-light, Light, Medium etc.) and the Tune (None, Film, Grain etc.). Comparing with my log, we can determine that In the code strength[0] is y-strength and strength[1] is cb-strength. Kernel is picked purely based on Tune value, and seems to always match between y-kernal and cb-kernal.

else if (!strcasecmp(preset, "stronger"))
{
    strength[0] = 0.5;  strength[1] = 0.25;
}
else if (!strcasecmp(preset, "verystrong"))
{
    strength[0] = 1.1;  strength[1] = 0.55;
}

Here's a chart of values for Grain Tune:

Chart of parameter values at different presets

Ok, but how do I use it?

If you want to go between Presets values, simply interpolate (pick values between) two presets. For example, with Grain Tune, We can see from the code that

Stronger is y-strength=0.5:y-kernel=isolog:cb-strength=0.25:cb-kernel=isolog

Very strong is y-strength=1.1:y-kernel=isolog:cb-strength=0.55:cb-kernel=isolog

So, the mid-point between the two is y-strength=0.8:y-kernel=isolog:cb-strength=0.4:cb-kernel=isolog

Then, simply copy-paste this into your Custom textbox:

Value pasted into Custom textbox in Handbrake UI

Conclusion

The approach above seems to work for me in the few cases where I need a bit more control than the presets afford. I recommend playing around a bit with the values yourselves and letting me know how you get on!

[-] Armand1@lemmy.world 47 points 2 months ago

Co-op video games say that's the max number of friends you can have, so it must be true.

[-] Armand1@lemmy.world 85 points 3 months ago

Cue a dance number of Thriller but it happens in a pyramid with mummies.

[-] Armand1@lemmy.world 68 points 7 months ago

You can't void your warranty by rooting your phone. They claim you can, but that's only their extended warranty, not that statutory one.

[-] Armand1@lemmy.world 30 points 8 months ago

As someone who has used this app for at least 6 years, I am very sad to see this happen.

I'm surprised they weren't able to get away with it after the change in extensions a couple versions ago. By not shipping extensions that have copyrighted content that should have been enough, similar to how emulators, services like Plex and torrenting applications survive.

It's effectively just a comic / manga reader that can be used for piracy when the right extensions are added.

Apparently that wasn't enough, and I can't blame open source devs for not wanting to start a legal battle with a profit-earning company.

For now, the app does allow you to add external repository's (list of extensions for various sources) that are still being updated, and I believe there are at least a few forks of the project that will survive for now.

All I can say is great work to the dev team for sticking with us until now and I wish you luck in your future ventures.

[-] Armand1@lemmy.world 67 points 1 year ago

I think they mean "inaccuracy to reality" rather than "cheating on their partners"

view more: next โ€บ

Armand1

joined 1 year ago