this post was submitted on 16 May 2024
4 points (100.0% liked)

Selfhosted

40173 readers
651 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Hello! I recently listened to a podcast that talked about how storing media files in .av1 format is very efficient and storage-friendly. I've been storing my files in .mkv format, but now I'm considering using Handbrake or a similar service to convert all my video files to .av1 if it's more compressed than .mkv. So;

  • What format do you store your media?
  • What is the optimal way of storing media?
  • Do you use handbrake or similar services (feel free to suggest) to convert media files?
all 8 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 6 months ago (1 children)

You're confusing a container format (MKV) with a video codec (AV1)

MKV is just a container like a folder or zip file that contains the video stream (or streams, technically you can have multiple) which could be in H264, H265, AV1 etc etc, along with audio streams, subtitles and many other files that go along, like custom Fonts, Posters, etc etc.

As for the codec itself, AV1 done properly is a very good codec but to be visually lossless it isn't significantly better than a good H265 encode without doing painfully slow CPU encodes, rather than fast efficient GPU encodes. people that are compressing their entire libraries to AV1 are sacrificing a small amount of quality, and some people are more sensitive to its flaws than others. in my case I try to avoid re-encoding in general. AV1 is also less supported on TVs and Media players, so you run into issues with some devices not playing them at all, or having to use CPU decoding.

So I still have my media in mostly untouched original formats, some of my old movie archives and things that aren't critical like daily shows are H265 encoded for a bit of space saving without risking compatibility issues. Most of my important media and movies are not re-encoded at all, if I rip a bluray I store the video stream that was on the disk untouched.

[–] [email protected] 2 points 5 months ago

Yeah I realised when a few others pointed it out. Learnt a lot from these comments, including yours. Thanks for clearing it up! 🙌

[–] [email protected] 3 points 6 months ago* (last edited 6 months ago)

.mkv is just a container and can contain any encode. All my av1 encodes are .mkv files.

But the majority of my videos are in h264 for compatability, though I've been adding more av1 and h265 encodes lateley. But storage isn't much of a concern for me.

[–] [email protected] 2 points 6 months ago

I don't reencode anything, I keep the raw bdmv rip and remuxed mkv for jellyfin. Even if the difference is imperceptible, as long as I have the storage space there's no reason to spend time fiddling with conversion when it can only make things look worse.

[–] [email protected] 1 points 6 months ago* (last edited 6 months ago)

The future is av1. Is it worth it to compress everything asap? No. Not all devices can play av1. You will still shoot pictures and videos in 264 or 265. Can you already edit av1? Do you do that? Check that everything you own and do can work with av1. You should prefer 265 over 264 nowadays.

Is it worth it for your own videos? It depends. If you have a lot, like terrabytes lot, of your own videos. Then yes, you could save storage. But, the time it'll take to reencode and the power consumption it needs isn't worth it. Just use av1 from nowon whereever possible if you export videos instead of 265 if all your devices and clients and friends who you're sending them to can play it. I converted all old media to 265 two years ago (or so) to have everything compatible. I do not plan on converting to av1 just for storage reasons. Storage is cheap compared to the time I invest in caring about it. Converting for compatibility yes, storage no. I switched to immich and I have no files on my phone or laptop anymore.

Torrents? No it's definetly not worth it to reencode. The guys who release the files are aware of av1 and they will switch as soon as almost all devices support av1 and people scream for it. It is not worth it to reencode imo. Just redownload once it's available. You can push av1 adoption by releasing videos in av1 yourself. Ask for it. Talk about it. Spread the word.

[–] [email protected] 0 points 6 months ago (1 children)

.iso …. Storage is cheap and I want it as native as possible, that way I keep all my menus, original video and audio quality without any chance of introducing artifacts.

[–] [email protected] -1 points 6 months ago* (last edited 6 months ago)

But one bit flip and you can trash the whole iso. Which is why i don't even pdf my scans but keep them as png.