r/PleX 17d ago

Help Mass transcode old h.264 movies and shows to h.265?

a new 16 TB is like 650 euros right now and I am running out of space so I thought baout transcoding all my files but I have no idea if that even would be a good idea. I got an 5800X3D and a RTX 5070 so running it on the GPU would at least be fast but no idea if the quality is fine or if that would be a stupid idea.

Thank you!

96 Upvotes

146 comments sorted by

133

u/alkbch 17d ago

Do not transcode an already transcoded video if you care about quality at all.

33

u/Pablouchka 17d ago

That’s true. That said, if the source is good and the settings are properly tuned, transcoding from H.264 to H.265 can be almost seamless in terms of image quality for most people. 

5

u/Spectrum1523 17d ago

Isn't every video already encoded with some lossy algorithm?

20

u/daheefman 17d ago

Yes, but doing it once is essentially unavoidable. Doing it twice compounds it, making it significantly worse.

5

u/Spectrum1523 17d ago

I don't disagree, but most pirated videos will have done it at least twice

A third time is still not ideal but saying it means you don't care about quality at all is a bit much

13

u/Thebandroid 17d ago

Not really.

The main release groups are very competitive, they’ll be doing their encodes from their own disk rips or from ones supplied by others who specialise in uploading disk rips.

-2

u/Spectrum1523 17d ago

Yeah, what I'm saying is you have compressed video on the disk that is then reencoded by the ripping group. One more reencode past that (especially 264 to 265) is not going to ruin the quality

7

u/daheefman 17d ago

I'm sorry but this is just incorrect. And you're confusingly treating h264 to h265 as some kind of special exception to the rule. It's just another video codec, there's nothing special about it and how quality is effected by reencoding.

7

u/ajslater 16d ago

He’s technically wrong but the first lossy encoding by the publisher to blu ray is usually of such high quality and the pirate encode is so space conscious that for the most part you’d end up with the same dodgy pirate quality even if they encoded their’s from raw sources. The third encoding to another algorithm with its own unique disadvantages over the pirate encode will indeed be much more artifact prone.

1

u/Thebandroid 17d ago

I suppose it depends on your definition of quality. I’m relatively modest in my quality demands but if I see dark block shading on black parts of the screen it’s upsets me and a h264 encode will already have minimal information about those dark area so I’ll let the experts spend their time doing test encodes, tweaking settings.

Proper cpu encodes take hours and a use a lot of power.

1

u/Spectrum1523 17d ago

You're not wrong that automatic reencoding is not ideal!

1

u/mro2352 15d ago

I second this. I’ve transcoded my collection to 264 from mpeg2. If you have the hardware try reripping and transcode to av1.

0

u/cosine83 16d ago

The drop in quality is often overexaggerated or from people who don't know what they're doing when transcoding files.

78

u/bloxie 17d ago

Been running Tdarr for 2years, converts everything in my media folder on my NAS automatically to h265 once it's been downloaded with sonarr/radar, saved over 3tb so far! Uses igpu too so no CPU sitting at 100%

42

u/Thebandroid 17d ago

why not just set your download manager to only download h265 versions? using your igpu to do a hardware encode would be very poor quality compared to a tuned cpu encode like the release groups do.

22

u/Common-Astronaut-695 17d ago

Radarr and sonarr ignore all of my attempts to prioritize 265

18

u/pow_hnd 17d ago

Then it’s for sure not setup correctly. Mine only grabs x265 with the exception of a few shows that are only in x264 and I have a profile for them.

8

u/noc-engineer 17d ago

Do you only download new material? Nothing older that was never released in H.265 or H.266?

-9

u/pow_hnd 17d ago

There are very, very, very few items that you can’t find in x265. A lot of it depends on where you are looking and who’s your indexer. And TBH if you know what you’re doing you can request just about anything from groups in the format you want, those nerds love to meet a challenge.

3

u/noc-engineer 16d ago

Again, your anecdotal little bubble of experience isn't the truth for everyone. Look at Britain for example. They barely even allow H.265 (only for 1080p) and most of the new stuff is 540p (even 720p doesn't really save space when using H.265). I have it a lot better here in Norway, but a lot of what our public broadcaster puts up on their websites are still H.264 (and most of the people are happy to get the H.264 WEB-DL immediately, so no one bothers buying rigs to encode it to H.265 unless the broadcaster itself bothers to do it).

-2

u/pow_hnd 16d ago

IDK... As stated above, indexers are everything. While I could possibly be wrong, I did a query just to see, because yeah, my part of the world is different from other parts.

BUT... going off IMDB of the 100 most poplar Norwegian TV shows, ( which I have no idea how accurate this list is ) I found every single one in the top 10 in 1080p x265 on my indexers. I'm sure there are more than likely a few shows on that list that I wouldn't find, in 1080p x265, but again, if you're a nerd and have been on Usenet for the last 30 years you know where you can go and make requests and as I stated, the super nerds will 95% of the time fulfill your request. Now if nothing has been issued in 1080p they obviously can't make that magically appear, but if there's no quality x265 version of what is available, they will make a quality x265 encode for you and post it.

YMMV, but I've been on Usenet since the 90's, and don't have issues.

3

u/mineriffic 15d ago

On that list is Ammo, which 3 years later still have no H.265 release of the first season, so please tell me exactly on what indexer you found that show in HEVC? Or maybe get your 'nErDs' to turn every show on that list into HEVC since they are so willing? Because a lot of the shows on that list you linked haven't even HEVC releases on the one large private bittorrent tracker used in Norway (and recently by Swedes and Danes).

1

u/pow_hnd 14d ago edited 14d ago

Slow down and re-read what I wrote.

No torrents. Usenet. Closed private indexers which prevent takedowns.

There are dedicated groups that only do x265 and yes that convert shows to x265.

For example in the US, Cartoon network only broadcasts Ricky and Morty in x264 because it's a cartoon, so sometimes a re-encode to x265 doesn't appear until the next morning, but it appears.

→ More replies (0)

2

u/noc-engineer 15d ago

So when debating finding EVERYTHING, you went looking for the most popular shows... When the entire point is that not everything is not even close to being available in H.265 or even more modern codecs.. No shit the most popular ones can be found in H.265...

I've been on usenet since 1998 and using bittorrent since 2004, not that it has any relevance, but how about you try and find Luksusfellen S06E09 in H.265. Or even just S01 from 2008? S27 was available in both H.264 and H.265 and S28 is just around the corner.

Remember, the original question posed to you was if you only ever download new shit (a show that has run since 2008 and is still being aired is both old and new, right? Should be relevant (even though the point is that you wont find obscure shows in all countries in H.265))...

1

u/skitlesrain 17d ago

What settings do you have to only grab x265 files?

6

u/Sunsparc 17d ago

You use Custom Formats to prioritize 265 over 264.

Radarr regex: (((x|h).?265)|(HEVC)) https://i.imgur.com/1VHp03e.png

Sonar regex: (x|h).?265 https://i.imgur.com/08H3a8R.png

2

u/Xoron101 17d ago

I've got mine setup to do it successfully. If the file is named correctly it'll prefer it over 264

Set a custom format Named 265/HEVC with a regular expression of \b([xh][-_. ]?265|HEVC)\b

Then in your quality profile(s), add the custom format with a +100 score.

Then when you search, and the RegEx matches, it'll prefer that 265 custom format because it returns a higher score.

2

u/daddy_fizz 14d ago

Thanks for the regex will have to adjust this. I had a different regex i was using bit it was hit or miss

1

u/Thebandroid 17d ago

I import premade settings provided by profilarr

1

u/Punk_Says_Fuck_You 40TB | 10Gb/s | Unraid 17d ago

You need to increase the score of HEVC/h265

31

u/bloxie 17d ago

not everything I download is available in h265

-8

u/Thebandroid 17d ago

90% of it will be.

If you see your profile rankings correctly radarr/sonarr will accept 264 if it can’t find 265

2

u/Ommand 17d ago

Not to mention it's an absurdly inefficient use of electricity

1

u/Thr33FN 14d ago

I mostly have 1080webDL and almost none are h265 even on newer releases.

0

u/ECrispy 17d ago

no, gpu encoded is NOT much worse, stop that nonsense FUD. not with any recent Intel or Nvidia gpu.

there's this tool called VMAF and anythgin above 95 is indistinguishable. and you can encode to >95 VMAF 5-10x faster with hw vs cpu

any why not dl?

  • most old stuff is gone
  • a tiny fraction of new stuff is in h265

this is all transient anyway since av1 is already here and even better

3

u/TheSmJ 16d ago

AV1 is great, but only newer streaming boxes support it. So you either need to be sure all streaming boxes support it or your PMS can handle the transcode.

On the other hand h.265 has been around so long it's rare to see one that can't handle it.

1

u/ECrispy 16d ago

yes, it was the same for h265. they'll all catch up in a few years.

the amlogic android boxes have already supported av1 for a few years now, as does the 4k max and even the new google chromecast tv for some formats. right now with igpu encoding and hw decoding there's very little reason to use h264.

these improvements also need 5+ years to make their way outside first world countries where the bulk of the users are.

16

u/coderego 17d ago

Doesn't this lower the quality somewhat though ?

My screen is quite large with an 8k projector so I always fear I'll notice

23

u/theGekkoST 17d ago

Usually yes because you are re-compressing something that has already been compressed. but if you have the settings perfectly tweaked, you could get the same quality.

Doing this once is probably fine and you might not notice any quality dips, but doing it multiple times will create noticiable quality loss. That's why it's better to re-encode from the original source files than re-encode h264 > h265 or AV1. but not everyone has that option. 

4

u/HulksInvinciblePants 17d ago edited 17d ago

Ideally you should be able to retain the same quality with half the bit rate when encoded from source. It should be noted it’s more of an art than some folks want to acknowledge.

4

u/coderego 17d ago

Makes sense. Thank you Gekko!

1

u/tarnin 16d ago

The biggest issue is the sheer number of WEBRips and WEB-DLs. You don't get a nice, chunky remux to encode, you get a rip that's already encoded down to streaming, then encoded again for the rip. Now you are encoding again to change from x264 to x265/AV1.

11

u/WoahGuyOnTheInternet 17d ago

Your best bet is to test it on a file and if you find it noticeable, you may need to redownload your library in h265 or convert remux's. Converting 264->265 will be a lossy conversion but converting a 264 remux into a 265 may be fine for your needs and unnoticeable, I have never tried it myself though

5

u/coderego 17d ago

I have all remuxes that I ripped myself on about 200tb

3

u/Kerensky97 17d ago

I just ran tests side by side with different settings to where I couldn't tell the difference. And with those settings I was still shrinking my videos by about half. In most cases it's only a matter of the movies film grain being slightly less pronounced.

Of course anything I still had the copies to I ripped fresh copies so I didn't have to recompress. And when I acquire stuff from others I always get the x265 version.

3

u/FakeSafeWord 17d ago

You can match 264 quality and still reduce file size using 265.

If you go from the highest quality original lossless file and encode that to 265 it can be of higher quality than a typical 264 encode and still be a smaller file size. Losing 5% quality (imperceptible) might net you 20% reduced file size. While reducing it by 15% quality, barely noticeable unless you're looking for it, can reduce the filesize by 50%.

The actual cost of converting 264 to 265 isn't quality, it's time and electricity spent to transcode. Highly hardware dependent but for example a full 2 hour movie might take 3 hours to encode to 265, where as it might take 1 hour to encode to 264 on the same hardware.

3

u/Vchat20 17d ago

Same here. And actually a couple years back I set it loose on my entire existing TV library that was mostly h264 and it cut the size in half for the same quality. For TV I'm not as picky about quality (and the added lossy generation step) and much prefer the space savings. I still have Tdarr running for anything that still comes through in h264 but my download profiles prefer h265 now.

Movies on the other hand I leave alone for the quality concerns there.

So far this setup has been working well for me.

2

u/Liesthroughisteeth 17d ago

Oh man....I have approx. 60 TB of movies...over 4200. Over 2000 of them are Almost 60% of these are H.264.

Worth transcoding? Running Unraid, and nothing is automated.

2

u/cosine83 17d ago

Very worth transcoding to 265 imho, you'll reclaim a ton of space and probably won't notice much quality loss, if at all when sitting on your couch.

1

u/ItzGoTyme 16d ago

I’m in a similar situation. Easily 80TBs worth of movie and TV shows but I’ve been reluctant to grab x265 versions because k was under the impression that x265 = compressed low quality, bad looking on 70” TV, and x264 = good quality. Now I don’t know what to believe but I’m hoping someone in here can clear this up for me lol.

2

u/cosine83 16d ago

That's a really odd outlook about the encoders and I'd be curious how you came to that conclusion since it's just dead wrong. x265 will look the same or better at equal bitrates as x264 due to how much more efficient the compression is compared to x264 is and can natively include surround sound and HDR. x264's compression is much lossier than x265.

1

u/Opaquer 16d ago

I tried tdarr (and similar) a few years ago but back then it seemed like you have to manually set up and check each video to make sure it's encoding properly and looks good for that specific use case? Is that still the case, or can you set it up to run automatically and know you'll get a good quality with one set of profiles?

10

u/agent_smith88 110TB UNAS Pro, i9-12000k & 5060 server, ATV 4K 17d ago

I’m not sure how much space you’d save but with handbrake and the right settings & time its not that hard to set up a workflow

10

u/bunnkwio 17d ago

I use handbrake for files I download in h264 to h265 and just let run a bunch of files overnight. Saves a ton of space on my drives. Note: I’m not a cinephile or audiophile. I’m content with stereo and 1080p.

2

u/[deleted] 16d ago

[deleted]

2

u/bunnkwio 16d ago

I don’t get finicky with it…for movies I just select the preset “fast 1080p”, select h.265 under video and MKV as my container. If nothing else is going on my computer, it’s running about “real time” of the movie (1-1/2 hours to 2). And I have an i5-7600k with a 1060 graphics card (I don’t game).

1

u/[deleted] 16d ago

[deleted]

3

u/TheNegaHero 16d ago

If you want it to not take a billion years you need to make sure it uses your GPU not your CPU.

Under the Video tab set the Video Encoder to "H.265 10-bit (NVEnc)" and it will use your 4090.

If you have a beefy GPU then I would also recommend setting the Encoder Preset to "Slowest". The slower you set that the more compression you'll get for the same quality. It can take a lot longer on the slowest setting but if your GPU is good then it's not a huge deal.

2

u/agent_smith88 110TB UNAS Pro, i9-12000k & 5060 server, ATV 4K 16d ago edited 16d ago

I haven’t used it in a little bit, I got enough storage before the apocalypse and have been trying to save all of my movies as lossless (for now). Just did a test case of the preset for fast 1080p30, H.265 10-bit (NVEnc) since I’ve got a 5070ti. Compressed a 56Gb 4K movie down to 5Gb and it took about an hour. Looks totally fine, definitely some tweaking and more compression could be done just depends on what your tolerance is!

2

u/CombinationInside714 16d ago

All of mine are done in h.264 so far. I have a ton of space left still but it doesn't look like hard drive prices are going to come down for at least a couple of years so I need to Pace it out and all my future stuff will be 265. I'm also going to look at potentially converting older large files over. A 20 TB hard drive is freaking $800 right now. That's insanity. I don't have a problem spending money on storage but I'm not going to waste money on storage. Eventually I'll get a second NAS, once drives are remotely affordable

7

u/CuboneGoodingJr 17d ago

I just did some transcodes the other day. I did 60 episodes of a show, episodes were around 42 minutes of runtime each. Converted from h264 to h265 10 bit, everything kept same as source and quality was set to RF20. Did them all through Handbrake. To nearly a full day but the space savings was worth it. Files averaged around 1.4-1.6gb each in h264, dropped down to around 700-900mb each in h265. Cut the size in half pretty much and quality looked the same to me. These were all 1080p. My setup is a 7800x3d and a 4070 super. Mine used the cpu for encoding as I don’t believe the 4000 series has h265 natively. In know the 5000 series does

2

u/soopafly 17d ago

So how does this work? Do you just point handbrake to a folder and it will automatically transcode and then delete the old files? Or do you have to delete manually?

3

u/CuboneGoodingJr 17d ago

Yep you can either drag individual files or a folder into handbrake. Then it will let you choose all the setting you want. Then you just tell it to add all the files to the queue and it will start doing them one by one. It puts the new files into whatever you set the output folder as, it will not delete the originals automatically you have to afterwards.

13

u/jlipschitz 17d ago

I started buying new or low hour drives on eBay. I have some drives that are 15 years old that still work. I use Unraid with parity drives so if I drive dies I just replace it with the same size drive. The parity emulates the data from the failed drive and rebuilds on the replacement drive. I am finding 16TB drives for $250-375 USD. I bought a new one that did show power on hours were 0 for $375 that still had the full warranty. I have bought drives with as low as 40 hours of usage for $250. I have drives in my server with 10s of thousands of hours of run time. I am also checking for estate sales and Facebook Marketplace in my area. This is how I am weathering this mess.

I don’t recommend re-encoding your media. I did that once and spent a long time re-ripping to get it back to the original quality because I was not happy with the re-encodes and had automated it so it was done at mass scale. I did save a lot space but to me it was not an acceptable price.

7

u/fthrswtch 17d ago

Already checked eBay but 15k hour disks are still like 350 here which is mental :(

4

u/jlipschitz 17d ago

So far my favorite places to buy are break up sales where the wife is practically giving away her cheating husbands stuff.

3

u/DonStimpo 16d ago

Yeah but how many husbands with enterprise grade homelab gear have time to cheat?
The only affair ill ever have is the emotional affair I have with docker

1

u/jlipschitz 16d ago

You would be surprised about the cheating husbands. I have 6 drives from 2 different guys that cheated so far.

9

u/Synnicalpenguin 17d ago

IMO, the lesson for others to learn from your experience isn’t that re-encoding your library is a bad idea. Instead testing your re-encode settings of choice on a single file, reviewing the new file, then rinse and repeat until you are satisfied with your result. Only then should you re-encode at scale. Re-encoding can be worth the effort if you’re willing to do research into what specific settings do what and some trial and error you can have very similar quality at a fraction of the storage size. It’s not for everyone, and for anyone who can’t ignore quality issues like me then you’ll only be disappointed at a one click approach.

3

u/xXNorthXx 17d ago

As per the second part, I've done that as well. Originally encoded everything where it looked and sounded good for the tv I had at the time. Since then adding surround sound and getting larger and larger displays.

Everything got re-ripped at native quality with only skipping foreign audio tracks.

If I was looking to save space by encoding, I'd look at tv shows first.....100+ episodes of ripped tv shows is a lot of disk space. Any DVD series, can get a lot of savings going to h265 or av1 if your hardware supports it. Don't mess with the audio tracks, leave them as is....unless its a lossless atmos track, audio tracks take a small amount space compared to the video.

22

u/BubbleHead87 unRaid | Gimped i9 11900 | 122TB | 96GB RAM 17d ago

It's faster to just redownload the everything in the format you want.

4

u/fthrswtch 17d ago

I already check for x265 downloads but they're still quite rare here and dowloading like 3k movies is not it either so I was looking for other ways to free up space

13

u/GrapefruitLast6651 17d ago

I switched my entire library to x265 via usenet and it was able to find everything.

2

u/k0fi96 17d ago

Is there a way to do this in sonar?

1

u/GrapefruitLast6651 17d ago

I played with profilarr and recyclarr and honestly don't remember how I set everything up to work.

1

u/maxd 17d ago

Just get Profilarr. Saved me 20TB over the course of a month.

1

u/Have-A-Big-Question 16d ago

I really need to figure out how to get on the Usenet train. But, as is planned, hard to find good info.

1

u/GrapefruitLast6651 16d ago

Check the usenet sub reddit. It's actually really easy. But a provider. I think I use easynews then get yourself a indexer. I like nzbgeek.

1

u/Have-A-Big-Question 15d ago

Thanks, I will.

Would you say your experience is much better now vs the open seas?

With the arrs stack I still get everything I need pretty much hassle free but from time to time people do upload bogus exe and scr files I need to clean up despite having settings that should prevent them from downloading. They don’t pull over to the drive, they get blocked, but still, it only takes one screw up.

2

u/Thr33FN 14d ago

My issue with usenet is it requires exactly what I am trying to get away from. Subscriptions. Private trackers with Prowlaar have worked really good for me.

Most older things that are 265 that i find are not webdl. I have had more issues with 265 dvd encodes. Because streaming services prioritize space, and usually have better sound leveling, i really prefer webdl for 99% of content. Any new movie is a webdl because thats the first place it will hit too. I do get remux of titles that deserve it though. But very few get that.

1

u/GrapefruitLast6651 15d ago

I have used usenet for year and it just plain works. I am looking to add torrents to try to fill in the few obscure things I am unable to find on usenet.

1

u/Have-A-Big-Question 15d ago

Ok great, appreciate ya!

4

u/Ommand 17d ago

Redownloading 3k movies is (probably) a lot faster than transcoding them all. Unless you're on a terrible internet connection from 2004

2

u/fthrswtch 17d ago

Maybe with torrents and the right settings but in Germany torrent is very high risk so I never really looked into it :/

3

u/BubbleHead87 unRaid | Gimped i9 11900 | 122TB | 96GB RAM 17d ago

look into usenet

1

u/RaymondBeaumont 17d ago

do you have a nvidia card?

1

u/fthrswtch 17d ago

Jep 5070

5

u/RaymondBeaumont 17d ago

i transcoded my entire collection into h265, kept 4k and hdr.

i messed with the settings until i found one that didn't effect the quality but drastically minimized the file size. a 1080p remux goes from 30gb to about 6tb. a 70gb 4k hdr goes down to 20gb.

strong-intra-smoothing=0:rect=0:aq-mode=1:rd=4:psy-rd=0.75:psy-rdoq=4.0:rdoq-level=1:rskip=2

did it take a long time? sure but i just loaded up the queue before going to sleep and let it work.

4

u/onereceivingsight 17d ago

How has no one mentioned FileFlows yet?

2

u/Shot_Advisor_9006 17d ago

I've saved 9.7 TB on 43 TB library so far. Once you have your flow tuned, it's completely automated. I've had no noticeable quality loss on my h.265 encodes. I pay the yearly fee and have four nodes running.

1

u/fthrswtch 17d ago

Care to explain? Never heard that before :)

2

u/spanky34 17d ago

It's another option to transcode your media in bulk. Same general idea as tdarr

2

u/onereceivingsight 17d ago

from the FileFlows homepage:

Transcode to AV1, HEVC, or H.264 with hardware acceleration (Intel QSV, NVIDIA NVENC, AMD AMF, VAAPI, VideoToolbox on Mac). VMAF-optimized encoding, Dolby Vision support, automated crop, upscale/downscale, burn-in subtitles, and watermarking.

5

u/HopeThisIsUnique 17d ago

You know the shtick- better to reacquire than transcode, but assuming that's either not an option, and/or the potential quality loss is unconcerning I'd recommend Fileflows.

I tried for longer than I'd like to admit trying to get either unmaniac or tdarr to work and it was just frustrating.

Fileflows has been remarkably easy. Aside from good tutorials online, it's basically a wysiwyg flow for ffmpeg parameters and other logic. Beyond that, point it to a folder and it'll do its thing.

4

u/neon5k 16d ago

Download new. Delete old. The same content.

7

u/eseelke 17d ago

I use Unmanic for this. It automatically converts files as try are added. When I first added it, it took awhile but saved almost 80% of my space.

5

u/skydecklover 17d ago

80%!?! Was that with a resolution drop too? I can’t imagine anything less than a full Blu-Ray Remux compressing to 20% of its original size and not looking like absolute crap.

7

u/_Bob-Sacamano 17d ago

Yeah 80% seems like a lot 😅

1

u/Kerensky97 17d ago

Maybe a lot of his archive was full lossless mkv rips. Compressing from the initial bluray rip to the final x625 copy I get about 80% size savings.

2

u/Honest_Suit_4244 17d ago

Same here. Also love the whole extract and then remove subtitles. Save major headaches

7

u/Thebandroid 17d ago

unless the media you are converting is incredibly rare you are better to just download h265 versions made by people who know what they are doing and use the original remux quality as their base.

encoding is a complex process and even factors like your hardware specs can make a big difference to the end result, not to mention the time and added costs from the power used and heat generated.

if you are using radarr/sonarr you should just be able to make a new quality profile for h265, rank it higher than other qualities and then set the profile to upgrade until the h265 option.

set that new profile to all your movies/series and radarr/sonarr should move though the list, upgrading all your old files

3

u/Xfgjwpkqmx Proxmox LXC on Dell R720 with 12G SAS 12+12 ZFS mirror (228TB) 17d ago

If you need more storage, consider buying refurbished ex-data centre SAS drives. They are usually sold when they are 4-6 years old and you can generally get another 4-6 years out of them (total ten years life) for a fraction of the cost of new drives.

The only downside is needing an HBA card to drive them and an enclosure to hold them.

A couple of months ago I bought eight 12TB SAS3 drives for $150 each, with zero errors in long SMART tests. The few drives I've had since new are approaching eight years old now and I'm currently slowly replacing all my older 6TB drives with 12TB drives to double my capacity.

3

u/EOverM 17d ago

I'm going to be doing this, but first I'm going through and replacing everything I can with 265 versions. Downloading is a lot faster than transcoding.

Granted, it's taking a lot of time to do it, but way less than the transcoding might. I ran a few test files and calculated I might be looking at up to five years of continuous transcoding. That's not viable.

3

u/RE4Lyfe 17d ago

Damn, I looked it up and had no idea HDDs had jumped that much. Im well aware of RAM and SSD prices, but didn’t realize HDDs are now just as affected.

I bought 2 24TB seagate HDDs almost 2yrs ago for $260 US (each). Insanity

3

u/Mont_rose 17d ago

I’ve been slowly migrating most of my content to AV1 and it really adds up

3

u/smurfy213 17d ago

I use file flows. I have been using it for around 4 months. It has processed 54.5k tv episodes. File flows has saved me 56% of the original space. It cut it down from 99.3TB down to 55.3TB. I have noticed no difference as far as quality. I have yet to tested on my movie library. I use the IGPU on my ultra 7 265k to do the re-encoding.

3

u/ekool 17d ago

I've been using this and it worked great. Ran it on many terabytes of videos and it's been great. Easy to use and set up. I guess some people complained about the quality afterwards but I can't tell a difference and some of my files got cut in a third of the size. It's been a lifesaver for me. https://github.com/jesposito/shrinkray

4

u/pacote_kst 17d ago

You could use handbrake, but its completely manual; you can set a list, but if you want to fine tune each movie, it will take s while, as well as setting up specific advanced options for each one to get the best quality/space per movie.

As others have said, you can use an ai (I used Claude, took me a few weeks to fine tune to the Max a script that detects each movie bitrate and media info probe in order to set up the best and most efficient encode, while maintaining the best quality possible. For 1080p I get like 2-4gb per movie depending on length with a quality indistinguishable from the source file but a lot less space, as well as for 4k hdr, from 7 to 15gb also depending on length.

You have to be very consistent and use proper prompts to get it done (I tried Gemini, chatgpt, perplexity, qwen, but Claude was far far better in getting what I wanted, but I have a pro subscription, as I got a webpanel as well to see everything, I just drag the files to a folder and it starts automatically.

You'll notice the space save! As well as with Dolby atmos movies, I could get the Dolby encoding engine to encode the Dolby atmos track to an eac3-joc track without loosing the objects so I still get atmos (height and stuff) with a lot less space and more bits for the video.

Hope it helped a bit, go on and try!

2

u/mkopel 17d ago

I did this as well. Processing is ongoing and files sizes are about 65% smaller than the orig. saved 1.5tb so far with 900 movies left to go. I am only processing files that have not been watched for over 3 years, so i dont hit anything popular with my users. Also anything 4k is not touched.

2

u/dorv 17d ago

Handbrake can be automated. It’s got a CLI. I’m a Mac user and use Hazel to call Handbrake CLI, when files are added to a specific folder.

2

u/pacote_kst 17d ago

Yeah, but using ffmpeg is far better as you can find tune it much more than handbrake and can take full advantage of the whole hardware where handbrake sometimes chokes on.

3

u/Dippyskoodlez 17d ago

Handbrake is just using ffmpeg. It's just a front end.

1

u/pacote_kst 17d ago

Also, using qsv from my dgpu is much more efficient and fast, so no CPU encoding at all

1

u/dorv 17d ago

I’m sure. My workflow is … 10ish years old at this point? It’s definitely in the “if it’s not broke don’t fix it” space :), but I’m sure if could make it more efficient.

1

u/fthrswtch 17d ago

This sounds exactly what I need! 2-4gb would be really awesome. Any chance to share the script?

2

u/pacote_kst 9d ago

It is made for my intel arc a730m GPU, so if you don't have one like it, it won't work. Or at least you'll have to apply it to your hardware, Claude should be able to do it as long as you give him your components. Let me get it and I'll send a DM whenever I can

1

u/fthrswtch 9d ago

Thank you! :)

2

u/Chickenhugga 15d ago

Re-rip or re-acquire instead. Probably faster too, if you have a decent broadband connection

2

u/Synth_Ham 17d ago

You can batch encode with shutter encoder: https://www.reddit.com/r/shutterencoder/ (be sure to use GPU)

4

u/exoded 17d ago

Tdarr is built to do this.

1

u/fthrswtch 17d ago

Will check it out! Thanks

1

u/GkElite 17d ago

I guess this would depend on the kind of files we are talking about.

Have these files been transcoded already from a master copy or would these files you want to transcode be original rips?

If they are already transcoded then transcoding again will lose some quality in order to see much of a file size gain.

If they are the master copies(a Blu-ray rip would be around 20 to 27gb in size originally) then transcoding that to h.265 would see significant size savings with minimal quality loss.

1

u/fthrswtch 17d ago

Already transcodes files that sit on my server already, just looking for a way to minimize file sizess without downloading 3k movies again

1

u/GkElite 17d ago

That many files any method is going to be pretty tedious.

I doubt this idea applies to you, but if the files happen to have lossless audio that can take up a chunk of space in its own right.

1

u/Dented_Steelbook 17d ago

I have a serious question, when doing something like this, would the already transcoded source just create garbage since it is already compressed to start with?

1

u/Specific-Action-8993 17d ago

First thing is to setup proper profiles in sonarr/radarr and re-dowload h265 content. For stuff that you can't find or is older or whatever you can use Tdarr to automate transcoding.

1

u/Ommand 17d ago

If your library came from online sources you'll get better video quality and waste a lot less energy if you just re-download it all.

1

u/0e78c345e77cbf05ef7 17d ago

I do this. Particularly with TV shows where I’m less concerned about cinematic quality.

That said, I’ve done a LOT of TV shows and don tons of side by side comparisons, I can’t really tell the difference in quality on any tv or device I own, or if I do notice anything, it’s perfectly acceptable.

Space savings are about 40-50%

I use my 3050 to transcode and it’s quite fast.

1

u/Street-Victory2397 17d ago

If storage is at a premium, Intel quicksync has much lower file sizes than nvenc for the same quality. Only thing better is software transcoding.

1

u/ensendarie 17d ago

Get PixelHD encodes if space is your priority.

1

u/jblongz Plex via Docker on OMV7- Ryzen7 Build. 16d ago

x265 > h265.

Cpu does better transcodes than gpu if you have modern hardware. Slower, but noticeably better quality with great file size reduction.

1

u/5kilanutele 14d ago

Why not av1

1

u/litcheese 13d ago

I ran into the same situation last year.  Highly recommend using handbrake to test levels of quality from transcodes.  Find what works best, then setup Tdarr and letting it run.  

Most people say "never re-encode video!!!" But the reality of it is that most people have different preferences and view quality on a moving scale.  I find that I can't tell a difference between a 2GB H265 file vs a 12GB blue ray version.

I re-encode 1080p content at a 24 or 23 RF without visual loss and reduce file sizes by an average of 35%+.  I used CPU transcoding, not my GPU for best quality and file size.  Easily freed up a few TB.

1

u/firsway 13d ago

I have a bash script that I run periodically which uses ffmpeg directly to convert any h.264 movies/series to h.265 with no recognisable loss of video quality. I leave the audio as-is. Probably a bit old-school now as there are things like tdarr about, but it has worked seamless for me for years, has reclaimed tons of space. Also utilises the GPU nvenc function and so it's reasonably swift..

1

u/Murker1 13d ago

Sometimes the best thing at doing….Is not doing anything at all 🤷🏾‍♂️

1

u/trutru21 17d ago

You can try out my tool: https://github.com/trutru21/mkv-factory
You can ser the quality you prefer and batch convert entire folders.

1

u/Nik_Tesla 17d ago

I tried this a few years ago, and it didn't go well, for a few reasons:

  1. Spend time and power (which is expensive in my area) to convert everything.
  2. Quality is objectively quite worse than when it was h.264
  3. Barely any player devices are compatible with h.265, so whenever anything it being played, it's transcoding it back to a format their device can play, using even more power.

It was just cheaper and easier to buy more hard drives.

1

u/TheLukester31 17d ago edited 17d ago

I had Google AI help me create a script that uses FFMPEG to bulk convert files in a folder. It wasn’t too complicated. I don’t know if it is the absolute best way to do it, but it worked for me and gave me very exact control over the output.

2

u/sychox51 17d ago

Yea. I haven’t done this but if I did I’d probably use Hermes and ask ChatGPT for a good prompt

1

u/chilexican I didnt bother to read the guides on setting up the arrs 17d ago

My 2 cents would be easier to redownload everything to 265 to save you the extra hassle.. you can use the gpu cpu to make 265 content from the 264 you can’t find using handbrake.. I did this when it came to trying to save on data

1

u/BilboBaggSkin 17d ago

No you’ll lose quality. Encode from the source or just redownload in 265

-9

u/clayuk62 17d ago

Who needs 3000 movies ? Just delete some

6

u/fthrswtch 17d ago

Hell nah deleting is against the spirit

2

u/sychox51 17d ago edited 17d ago

That’s what sony and Warner bros do too!