this post was submitted on 05 Aug 2025
29 points (96.8% liked)

Selfhosted

60887 readers
632 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:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

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

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

I have an extensive movie/tv show library. Been collecting for years and is a mixed bag of media types. I would like to convert all to h265 or something similar to try and conserve space. Currently my media is sitting at around 30TB's I know from a previous post that is not as significant as some others but converting one by one would be a nightmarish undertaking. I am hoping someone has a cli script to do the conversion.

I am currently using radarr, sonarr, lidarr and readarr for my media I know lidarr and readarr are dead and am looking for an alernative either for those or the full stack. I would also like to perform the conversion of media from the downloaded format to what is suggested to the best format.

you are viewing a single comment's thread
view the rest of the comments
[–] A_norny_mousse@feddit.org 5 points 11 months ago* (last edited 11 months ago) (1 children)

Not exactly what you asked:

Is your plan to also reduce resolution and bitrate? If not:

  • It's going to reduce visual quality anyhow.
  • Are you sure "changing codecs" would save you as much space as you think it would?

It depends where your material comes from. If it's ripped from streaming services it's (generally) already as compressed as it can be regardless of codec. E.g. Amazon mostly provides their streams in h264 (a 20 yo codec) and they're very high quality at very small filesize.

If you still want to do that: I don't believe there is one automated solution that will save quality and space across the board. (If there is, I'd like to hear about it)

A scenario I'd envision for myself:

  1. tinkering with ffmpeg for test results
  2. grouping material according to these results
  3. set up a separate ffmpeg-script for each group
  4. wrap the whole thing into a systemd service and make sure it survives reboots, i.e. picks up where it left.
[–] jhdeval@lemmy.world 1 points 11 months ago (1 children)

I am not looking to adjust quality of the video or audio just change the codec. I am not necessarily converting ONLY from h264 my media consumption goes back many years and as such is a huge mixed bag of codecs. My videos are not coming exclusively from streaming services.

[–] freebee@sh.itjust.works 1 points 11 months ago

Some of it is likely still quite findable and assuming quite a few titles are many seasons of 1 show: use your known channels and redownload in more recent repacks would be the easiest, least hassle least risk of quality loss. Use Sonarr and/or jellyfin exports to identify shows with high GB per minute of runtime...