EDIT: Thank you so much everyone! There’s so much help for me here, and I’ll recommend anyone with similar question as me to read the comments

Basically title.

I have the DVDs and I have the hardware to burn them to my PC.

But the file size is too much. What software would be ideal to get the best quality with the lowest file size?

I’m going for file sizes per movie at around 2-3gb max.

  • guitars are real@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    46
    ·
    edit-2
    1 year ago

    Since CRF settings aren’t that useful for hitting a specified filesize, you can use the following equation to calculate the bitrate needed to encode a video of a given runtime at a given file size

    • s = length of video file in seconds
    • t = target size in gigabytes
    • b = target bitrate in kilobit/s
    b = (t*8*10^6)/s
    

    ie, my copy of Serenity is 01:58:55 long, which is 7135 seconds (see https://www.calculateme.com/time/hours-minutes-seconds/to-seconds), I want it to be 2.5gb, my equation is

    b = (2.5*8*10^6)/7135 = 2803 kbit/s
    

    You can use any tool, handbrake, ffmpeg, whatever, any codec, and this equation will tell you the average bitrate needed to hit that file size. You would use “vbr” encoding mode instead of crf. I’d recommend enabling 2-pass for x264, not sure if this would be needed/is available for x265 as I’m a bit of a stick in the mud re: video codecs.

    Couple notes, I’m using SI units (powers of 10 instead of powers of 2) for the conversion, and am converting from bytes to bits as this is a more common unit to represent bitrates. If your software uses different units for the bitrate for some reason, or you prefer representing file sizes using gibibytes/etc then you’ll need to rewrite the equation accordingly

      • Blue_Morpho@lemmy.world
        link
        fedilink
        English
        arrow-up
        12
        ·
        1 year ago

        Except don’t do that. Hitting an exact target filesize will unnecessarily compromise the quality. You want constant quality or some high motion scenes or high detail scenes (rain or large crowds) will look really bad because the encoder is throwing out quality to hit an exact file size target.

        Do a constant quality encode at say Q19. If the file is too big for you, up that to 22 and try again. When you find a q factor that’s close to the file size you want, use it for everything.