• WolfLink@sh.itjust.works
    link
    fedilink
    arrow-up
    11
    ·
    2 days ago

    Compress video to a broadly compatible format:

    ffmpeg -i input -c:v libx264 -pix_fmt yuv420p -crf 25 -preset slow -c:a libfdk_aac -b:a 128k output.mp4
    

    This incantation is what I end up needing 99% of the time I do something with ffmpeg.

      • WolfLink@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        1 day ago

        I ran a comparison between libsvtav1 and h264 and h265 and found that libsvtav kinda sucks.

        It does produce smaller file sizes at h265, but it tends to add a visible blur.

        • Billegh@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          13 hours ago

          Might be what you’re encoding. So far pretty much everything I’ve done has been visually indistinguishable (to me and my wife). Most of the content I’ve been encoding is anime, however.