54
submitted 9 months ago* (last edited 9 months ago) by beta_tester@lemmy.ml to c/piracy@lemmy.dbzer0.com

Does someone have a script that converts all videos files from 264 to 265 and changes the name?

Even an attempt at it would be appreciated

looks like I will not convert anything at all.

It is definitely not worth converting x264, even less x265, to av1, if you are the only consumer. Just think about it. To get any "significant" space gains, while keeping a close to original quality (you will inevitably lose some detail), you need to spend maybe at least 3-4x more time encoding than the actual total video length, probably more, maybe 5x. Taking an average of 3GB/hour, 2TB is about 650 hours. x5 that's like 3250 hours. An 8 core ryzen will have like 150W total system load encoding av1. 3250h * 0.15 kWh =~ 500 kWh. 500 kWh * 0.15$/kWh (I took an optimistic electricity cost for these days, might be a lot more depending where you live) = $75 in electricity costs. Setting encodes, moving files around, will also take up some significant amount of time. You will gain maybe 1TB, if compressing audio to opus as well, less than that you will have significant video quality losses. 1TB of hdd space is worth $15 these days. And you don't waste time/electricity+money/video quality.

So it's only worth to get existing published encodes of the material you own, of if you are planning on publishing yourself. Or just for fun, if you want to experiment and encode one movie to see what's the best you can get out of av1.

source: https://www.reddit.com/r/AV1/comments/ymrs5v/id_like_to_encode_my_entire_library_to_av1/

all 39 comments
sorted by: hot top controversial new old
[-] art@lemmy.world 33 points 9 months ago

Just keep in mind you're going to lose quality. Any time you compress something in a lossy format is going to get worse.

Another note, if you're not worried about quality loss, you might look into AV1 over h265. Much better compression. Though, that might not work with your setup.

[-] snekerpimp@lemmy.world 10 points 9 months ago* (last edited 9 months ago)

I use a handbrake container and a watch folder. Just move what you want converted to the watch folder and handbrake does the rest.

[-] 7u5k3n@lemmy.world 2 points 9 months ago

That's a great idea!! Thanks!

[-] jws_shadotak@sh.itjust.works 7 points 9 months ago
[-] UberMentch@lemmy.world 1 points 9 months ago

Agreed. I've converted my library all to 265 using Tdarr, I'm up to 11.5 TB of saved space. I like having all my media be uniform for my Plex server, and Tdarr is a nice and easy tool to achieve it

[-] banadushi@sh.itjust.works 7 points 9 months ago
[-] Mechanite@lemmy.world 6 points 9 months ago* (last edited 9 months ago)

I use tdarr for my large scale conversions to AV1 but I use shutterencoder for everything else. It's like handbrake but friendly for working in large batches and the UI is really nice https://www.shutterencoder.com/en/ It will add H265 to the end of the name too

[-] alphacyberranger@lemmy.world 6 points 9 months ago

Maybe a script using ffmpeg can be made. For further time saving, do it using ffmpeg hardware acceleration using gpu.

[-] Faceman2K23@discuss.tchncs.de 5 points 9 months ago

I have several media libraries so I set up file flows to only perform compression based on a few specific rules. I never used to compress, but 2 years ago I ran out of space and had no money to upgrade disks, so I started compressing, intending for it to be temporary until I could add space. but it became part of my servers automatic setup and it works great.

TV show episodes between 3 and 5gb that aren't already H265 get compressed with RF21 H265, but files over 5gb get RF22. only files older than 6 weeks get compressed to give people a chance to watch them in original quality. the compression flow also includes making a stereo aac downmix audio track for added compatibility. so anything that is already H265 or low bitrate is left untouched to avoid unnecessary compression.

Movies get a similar treatment and H264 files under 5gb are ignored, 5-20gb gets RF21 and 20gb plus gets RF22. All of this is done with 10bit H265 as it tends to look a little better. the amount of compression I;m doing is pretty small, a 3gb TV show for example might end up being 2gb or so, and a 30gb movie will usually end up around 12-15gb at most. I could push harder, particularly for movies but I don't see a need as i've saved 13TB so far with this setup.

If sonarr/radarr download new versions of something (a TV show gets released on bluray for example) it will go back into the loop and get compressed again, but now it will be a higher quality.

4K shows and movies are always left untouched, they are in a separate library and are only accessible to certain clients.

[-] Kevnyon@kbin.social 4 points 9 months ago

I use ffmpeg batch AV converter, you can convert multiple files automatically, its great for that.

[-] db2@lemmy.world 2 points 9 months ago

I've made several, what are your needs?

[-] Imgonnatrythis@sh.itjust.works 3 points 9 months ago
  1. Convert all 264 videos to 265 format
  2. Change file names (replace the 264 with 265)
[-] filister@lemmy.world 1 points 9 months ago

You can do that fairly easy with a simple bash script and ffmpeg or bat

[-] db2@lemmy.world 1 points 9 months ago

Got one ready made for that but I'm not where the script is atm, I'll post it later tonight. It can be used directly or as a gnome/cinnamon context menu script, one or many files at once.

this post was submitted on 21 Jan 2024
54 points (87.5% liked)

Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ

54390 readers
467 users here now

⚓ Dedicated to the discussion of digital piracy, including ethical problems and legal advancements.

Rules • Full Version

1. Posts must be related to the discussion of digital piracy

2. Don't request invites, trade, sell, or self-promote

3. Don't request or link to specific pirated titles, including DMs

4. Don't submit low-quality posts, be entitled, or harass others



Loot, Pillage, & Plunder

📜 c/Piracy Wiki (Community Edition):


💰 Please help cover server costs.

Ko-Fi Liberapay
Ko-fi Liberapay

founded 1 year ago
MODERATORS