this post was submitted on 03 Oct 2023
212 points (95.7% liked)

Linux

48713 readers
1355 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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
you are viewing a single comment's thread
view the rest of the comments
[–] neo@lemmy.comfysnug.space 21 points 1 year ago (4 children)

.opus for lossy music, .flac for lossless music, .png for image files, .mkv for video

[–] BehindTheBarrier@programming.dev 15 points 1 year ago (2 children)

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 2 points 1 year ago (1 children)

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?

[–] BehindTheBarrier@programming.dev 2 points 1 year ago* (last edited 1 year ago) (1 children)

Here's a little article which highlights jxl well. https://chipsandcheese.com/2021/02/28/modern-data-compression-in-2021-part-2-the-battle-to-dethrone-jpeg-with-jpeg-xl-avif-and-webp/

I do not think it's mentioned there, but I think webp and also it's indirect successor avif afaik, both lack progressive loading which is not optimal for website loading. It's has incremental loading which I think is akin the the old dial up time of loading top to bottom row for row. They proclaim progressive decoding is costly on memory and cpu, but progressive gives the best user experience imo.

Lastly a fringe issue, re-encooding multiple times. The good old reason why jpgs turn into trash over time because people encode instead of save images. Or because sites re-encode when uploading. Jxl wins here. It also is very easy to see why jpg turns into what it does rather quickly.

https://www.reddit.com/r/AV1/comments/ju18pz/generation_loss_comparing_jpeg_webp_jxl_and_avif/

[–] SnipingNinja@slrpnk.net 1 points 1 year ago

I also like the idea of incremental loading, even if it's not that relevant anymore. Also, I don't think your example of generation loss is enough as it's just one image, I would like to see multiple randomly picked images passed through the same process but if the results are the same as here or barely anymore loss than the best option for any given image I do think that's a good result to aim for.

[–] SnowdenHeroOfOurTime@unilem.org 2 points 1 year ago (1 children)

Png is not always lossless. It also supports compression. But your point stands, it's not the best compression

[–] xcjs@programming.dev 3 points 1 year ago (1 children)

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.

That's interesting. Learn something new every day. Thanks

[–] Venomnik0@lemm.ee 4 points 1 year ago (2 children)

whats the difference between opus and 320 mp3?

[–] Spore@lemmy.ml 9 points 1 year ago* (last edited 1 year ago) (1 children)

The point is 140kbps opus is almost identical to 320kbps mp3 for human so it saves over 50% size for the same quality. Also it's a royalty free format.

[–] Venomnik0@lemm.ee 1 points 1 year ago

neat. Though now i wish my ipod supported opus (besides rockbox) but thats much nicer to know!

[–] neo@lemmy.comfysnug.space 2 points 1 year ago (2 children)

opus is higher quality at a much lower bitrate, meaning you can definitely store more songs in the opus format than in 320 mp3. opus can be constant bit rate or variable bit rate, whichever you prefer at encode time

[–] kait@calckey.world 1 points 1 year ago

@neo@lemmy.comfysnug.space I thought opus was voice optimized?

[–] qirenni@mastodon.social 1 points 1 year ago (1 children)

@neo I thought opus was voice optimized?

[–] neo@lemmy.comfysnug.space 1 points 1 year ago

It is, but it's not the only thing opus is optimized for

jxl for images, vp9 for video, ogg vorbis for lossy audio and flac for loseless

[–] danilolc -3 points 1 year ago (1 children)