if you could pick a standard format for a purpose what would it be and why?

e.g. flac for lossless audio because…

(yes you can add new categories)

summary:

  1. photos .jxl
  2. open domain image data .exr
  3. videos .av1
  4. lossless audio .flac
  5. lossy audio .opus
  6. subtitles srt/ass
  7. fonts .otf
  8. container mkv (doesnt contain .jxl)
  9. plain text utf-8 (many also say markup but disagree on the implementation)
  10. documents .odt
  11. archive files (this one is causing a bloodbath so i picked randomly) .tar.zst
  12. configuration files toml
  13. typesetting typst
  14. interchange format .ora
  15. models .gltf / .glb
  16. daw session files .dawproject
  17. otdr measurement results .xml
  • BehindTheBarrier@programming.dev
    link
    fedilink
    arrow-up
    16
    ·
    1 year ago

    All of them are OK, except mkv is less a file type and more a container. What should be specified is the code for video, which for most things I'd say AV1, but high res movies might not be the most suitable. Throw in opus for the audio track, and you can use mkv, but might as well use webm anyways since it's more clear what's behind it. (though can still be other things)

    I'd also add that jxl should be the standard for lossy images. Better than jpg. And you want something other than png for massive images because that quickly gets costly in terms of size due to png being lossless.

    • SnipingNinja@slrpnk.net
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Unpopular opinion but webp isn't bad it just needs wider support, but maybe I'm unaware of its actual shortcomings in which case please educate.

      Also I wonder if it's possible to have a single image format for all those uses but also RAW?

      • xcjs@programming.dev
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        PNG support lossless compression through deflation, but there are encoders that can apply a lossy filter to the image to make the compression more effective.

        PNG doesn't support lossy compression natively, to be clear.