JPEG XL

Info

rules 57
github 35276
reddit 647

JPEG XL

tools 4225
website 1655
adoption 20712
image-compression-forum 0

General chat

welcome 3810
introduce-yourself 291
color 1414
photography 3435
other-codecs 23765
on-topic 24923
off-topic 22701

Voice Channels

General 2147

Archived

bot-spam 4380

other-codecs

w
2022-11-02 02:06:58
it's talking about jpeg compression not image compression
afed
2022-11-02 02:08:30
Because these are different things, WebP will not be able to encode any already lossy Jpeg in lossless quality into a guaranteed smaller size as other formats from this paper
DZgas Ж
2022-11-02 02:09:24
wait a minute. is someone creating another tools to compress an already compressed jpeg? despite the fact that the only format that will be used is only JPEG XL
w
2022-11-02 02:09:52
are you drunk
DZgas Ж
2022-11-02 02:10:33
does that make sense? without competition, this is just one of the small functions inside jpeg xl
w are you drunk
2022-11-02 02:11:30
maybe now I see some kind of waste of time on scientific research
w
2022-11-02 02:11:51
that's 99% of scientific research
2022-11-02 02:11:53
it wont be used now
2022-11-02 02:11:59
maybe later
DZgas Ж
2022-11-02 02:12:43
maybe already be outdated
w
2022-11-02 02:12:55
yeah...
afed
2022-11-02 02:13:10
Lepton has been used by Dropbox for a very long time https://dropbox.tech/infrastructure/lepton-image-compression-saving-22-losslessly-from-images-at-15mbs
DZgas Ж
2022-11-02 02:13:23
why do people talk about AV2, stop it, it's stupid
afed <:monkaMega:809252622900789269> <https://forum.doom9.org/showthread.php?t=179122&page=6> ```I recently could talk with some profesionnals, notably to know why I have lost contact with AOM for example, and they told me that I don't realize that machine/deep learning image/video codecs are knocking very hard at AOM's door and they are announcing next-generation results, outperforming AV1 and VVC, and even outperforming AV2 and ECM...``` So maybe this is the reason to reject Jpeg XL, because soon there will be a new next-next gen superb AI codec that will outperform all existing and future formats by a huge margin, although it is hard to believe that this is true <:galaxybrain:821831336372338729>
2022-11-02 02:26:22
but of course it's a little sad, big companies need a lot
JendaLinda
2022-11-02 02:36:38
Video formats... I want my videos to be playable on most devices, so AVC is the only wise choice.
DZgas Ж
JendaLinda Video formats... I want my videos to be playable on most devices, so AVC is the only wise choice.
2022-11-02 02:45:23
avc is generally a good choice, and the best if we are talking about video size up to 720p
Fraetor
2022-11-02 06:12:13
Is AV1 acually deployed at scale by anyone yet? I haven't really come across any usage in the wild, despite decode support having been there for a couple years. YouTube doesn't seem to serve it except for a few test videos, and even the certain "media sharing sites" basically have no usage of it.
190n
2022-11-02 06:13:53
i've seen it on a lot of youtube videos, mostly popular ones
diskorduser
2022-11-02 06:16:04
90% of videos I watch on YouTube are in av1.
2022-11-02 06:16:55
Also on sites like 9gag, I see av1 webm.
_wb_
2022-11-02 06:17:29
For video it makes sense if there are enough views
190n
2022-11-02 06:17:41
i wonder what % of youtube's _views_ are: - on videos where they have av1, or - actually served in av1
_wb_
2022-11-02 06:19:02
I think youtube does cheap h264 first, then slower h264, then vp9, then av1, each next step only if the video is sufficiently popular
afed
2022-11-02 06:22:45
some videos are encoded in av1 even with very few views (especially if they are 4k+) https://youtu.be/0UzBMqlZ-_A
fab
2022-11-02 07:06:30
av1 videos: https://www.youtube.com/playlist?list=PL8I8CQ7kay7tCmyR1YUJSPjVSM3GWUnGV&jct=X5zYd95wNogac-Nc3hpSK4T5f6EC9g
2022-11-02 07:06:42
You can add videos
2022-11-02 07:06:53
Is collaborative
2022-11-02 07:12:53
2022-11-02 07:13:00
Got trolled
Traneptora
Jim That's not what the img tag was meant for. It doesn't show video controls or any way to use your own. It will play video, like a gif. But a full video with audio should use a video tag.
2022-11-02 07:24:59
yea, that' the idea
2022-11-02 07:25:10
the idea is that you'd put videos in an <img> tag and they'd be treated like "GIFs"
2022-11-02 07:25:21
with no controls, discarded audio, and loop by default
fab
_wb_ I think youtube does cheap h264 first, then slower h264, then vp9, then av1, each next step only if the video is sufficiently popular
2022-11-02 07:26:17
Because they don't want to reinvest time in a vp9 encode as many videos they are
afed
2022-11-02 07:38:07
didn't see this HN comment until just now, but I meant exactly the same thoughts about the img tag (that we can just specify to the browser that it is an image, without creating a separate format) https://news.ycombinator.com/item?id=33392287
Fraetor
_wb_ I think youtube does cheap h264 first, then slower h264, then vp9, then av1, each next step only if the video is sufficiently popular
2022-11-02 08:01:24
Looking back through my RSS feed I can see a few that are AV1, but most are VP9. I probably don't have H.264 because I'm on Fedora currently, so I guess most of the ones I watch aren't popular enough to have the AV1 conversion. That and I often watch them soon after launch because of the RSS feed, so the conversion may not have been done.
Reddit • YAGPDB
2022-11-02 09:37:23
2022-11-03 03:27:12
DZgas Ж
2022-11-03 12:13:59
85 kb | cjxl -e 9 -E 3 -d 0.95 | avifenc --min 20 --max 20 -s 0 -y 444 -r f -d 10 -c aom 50 kb | cjxl -e 9 -E 3 -d 1.9 | avifenc --min 30 --max 30 -s 0 -y 444 -r f -d 10 -c aom 23 kb | cjxl -e 9 -E 3 -d 4.6 | avifenc --min 40 --max 40 -s 0 -y 444 -r f -d 10 -c aom
_wb_
2022-11-03 12:19:47
That kind of image content is not very typical and I think it works very well for av1's directional prediction modes.
Traneptora
2022-11-03 01:03:08
I think if the libjxl encoder effectively used splines it could be improved quite a lot though
2022-11-03 01:03:11
I figure that's on the todo list
Reddit • YAGPDB
2022-11-03 09:28:57
2022-11-03 09:45:07
2022-11-04 06:24:17
2022-11-04 02:02:38
3DJ
2022-11-05 12:57:25
does anyone know of a CLI tool to normalize audio files in batch? including the ones that are louder than 0db like I wanna normalize several 32-bit audio files based on max peak to something like -6db I tried ffmpeg but volumedetect command returns 0db when the max peak is higher like this
2022-11-05 12:59:15
and SoX just flattens peaks louder than 0db so it causes horrible clipping like that
2022-11-05 01:01:10
so I need a CLI tool that does the same thing as Audacity's Amplify, which by default brings the loudest peak down to 0db without cutting/flattening peaks
Reddit • YAGPDB
2022-11-05 01:40:32
fab
2022-11-05 09:02:41
https://gitlab.com/AOMediaCodec/avm/-/merge_requests/488 GitLab C071 Subblock MV from Local Warp (!488) · Merge requests · Alliance... Initial test merge STATS_CHANGED Immagine Debargha approved it.
2022-11-05 09:03:17
https://en.wikipedia.org/w/index.php?title=AV1&diff=prev&oldid=1120020199
Reddit • YAGPDB
2022-11-05 09:09:02
fab
2022-11-05 09:10:41
https://engineering.fb.com/2022/11/04/video-engineering/instagram-video-processing-encoding-reduction/
Reddit • YAGPDB
2022-11-05 09:45:23
2022-11-05 11:15:07
afed
2022-11-05 11:37:00
https://engineering.fb.com/2022/11/04/video-engineering/instagram-video-processing-encoding-reduction/
2022-11-05 11:37:33
<:FeelsSadMan:808221433243107338> ```In early 2021, we ran projections that showed that within 12 months we would not have enough capacity to provide video uploads for everyone```
Reddit • YAGPDB
2022-11-05 11:52:17
Jim
afed <:FeelsSadMan:808221433243107338> ```In early 2021, we ran projections that showed that within 12 months we would not have enough capacity to provide video uploads for everyone```
2022-11-05 12:19:19
I'm confused by that statement and the article. If they want to reduce capacity, wouldn't they lower the file size to get the same junky quality as H264 with lower bandwidth? They are suggesting the opposite - use the same capacity but increase quality. That appears to contradict. > Traditionally, we have created both ABR and progressive encodings from the original file the client uploaded to our back end. Sounds more like they were just doing more work than they needed to and only now went back to take a look. So it's not about bandwidth, it's about compute capability and they were obviously doing way more than was necessary and nobody noticed until now. 🤦 > This approach frees up compute for advanced encoding production... This is where the contradiction comes in - since AV1 requires much more compute resources than H264. Now the question is - aren't they still in roughly the same capacity boat? They freed up resources... so they could use them on AV1. > This is especially important in providing a great experience to people in countries that have slower internet connections. If they are keeping the same file size and increasing quality, that doesn't help on slower connections. I assume they are also encoding at lower size with the same junky quality they were getting on their previous H264 as well...
afed
2022-11-05 12:32:11
yeah, they did double encode instead of just repackaging and that's why they wasted so many resources they also don't seem to use custom ASIC/FPGAs for encoding as many other companies do who need to encode massive amounts of video content quickly
Traneptora
2022-11-05 01:15:59
well there's really no beating x264 when it comes to quality per bpp
2022-11-05 01:16:26
so using x264 instead of a hardware encoder lets them serve lower bitrate files at the same quality
2022-11-05 01:16:28
so it's a tradeoff
DZgas Ж
2022-11-05 01:58:01
I would like to add AV1 in the telegram as soon as possible so that I would never use AVC again (and of course in Discord)
afed
Traneptora so using x264 instead of a hardware encoder lets them serve lower bitrate files at the same quality
2022-11-05 01:58:25
it used to be, but now almost all large video platforms with a lot of user generated content have moved to hardware encoding, I can't find a paper where it was described that H264 hardware encoding quality was comparable or only slightly worse than x264, but was much faster and energy efficient
2022-11-05 01:58:31
but, for something like Netflix, spending a lot more resources to achieve maximum quality is reasonable
DZgas Ж
2022-11-05 02:00:25
ffmpeg.exe -i VidroIN.mp4 -movflags +faststart -pix_fmt yuv420p -c:a libopus -b:a 87k -application audio -apply_phase_inv 0 -vf "scale=960:540:flags=spline" -c:v libx264 -preset placebo -bf 5 -refs 5 -g 300 -qp 24 -x264-params "keyint_min=30:rc-lookahead=250:me=tesa:scenecut=20:chroma-qp-offset=-4:me_range=16:mvrange=512:psy=0:nr=100:deblock=1,1:subme=9:b_bias=100" -f mp4 VideoOUT.mp4 harder me_range=16 -> me_range=32 -> me_range=64 simpler me=tesa -> me=esa verysimpler -> me=umh LOW RAM lookahead=250 -> lookahead=60
2022-11-05 02:00:47
this is my personal function for compressing streamers' streams in telegram
2022-11-05 02:01:48
after tests, I found out that with respect to quality/time it is better than using HEVC
2022-11-05 02:03:16
Improved quality qp=24 -> qp=20
2022-11-05 02:10:19
only ffmpeg 5.1+
Traneptora
2022-11-05 02:11:14
> crhoma-qp-offset=-4
2022-11-05 02:11:28
is this unnecessary? or does it offset the 4:2:0 mostly
afed
2022-11-05 02:12:22
Discord can embed AV1 with some hacks https://stolen.shoes/embedVideo?video=https://valve-software.com/videos/Chainsaw_Man_OP_AV1_8MB.webm&image=https://i.dailymail.co.uk/i/pix/2014/06/14/article-2657825-1EC067C600000578-213_634x423.jpg
DZgas Ж
Traneptora > crhoma-qp-offset=-4
2022-11-05 02:13:39
this is extremely important.
2022-11-05 02:13:55
for anime, I use -6 or -8
Traneptora
2022-11-05 02:13:59
personally I'd just rather encode in 4:4:4
DZgas Ж
Traneptora personally I'd just rather encode in 4:4:4
2022-11-05 02:14:11
2 x time slower
2022-11-05 02:14:25
and decode
Traneptora
2022-11-05 02:14:28
you're using me=tesa
2022-11-05 02:14:32
you don't care about encode time
2022-11-05 02:15:04
I mean when I'm encoding anime I generally expect it to be played back on a desktop, not on a phone
2022-11-05 02:15:06
so 4:4:4 works fine
DZgas Ж
Traneptora you're using me=tesa
2022-11-05 02:15:14
this does not mean that I am wasteful, but still mostly I use ESA
Traneptora
2022-11-05 02:15:16
if your users can't play back 4:4:4 then i see
2022-11-05 02:15:36
but if they can it's better to just use 4:4:4
2022-11-05 02:15:48
esa is also pretty wasteful
2022-11-05 02:15:57
what I typically use is something like
DZgas Ж
2022-11-05 02:16:03
I just noticed that UMH is just shit, it's just forbidden to use it for anything with a resolution lower than 1080p
Traneptora
2022-11-05 02:16:08
UMH is not shit
2022-11-05 02:17:42
I typically use `preset=veryslow bf=16 aq-mode=3 aq-strength=0.8 qcomp=0.7 chroma-qp-offset=-2` as my base settings
2022-11-05 02:17:47
but I also encode in 4:4:4
2022-11-05 02:18:14
also depdending on content I often use `deblock=-1:-1 psy-rd=0.8:0.0`
DZgas Ж
2022-11-05 02:18:44
ok. and i Only use qp (aka cqp aka cq)
Traneptora
2022-11-05 02:18:45
but I also typically target crf=16
2022-11-05 02:19:11
since I don't see the point of forcing qcomp=1
DZgas Ж
DZgas Ж ok. and i Only use qp (aka cqp aka cq)
2022-11-05 02:19:55
aq-mode aq-strength qcomp also shit
Traneptora
2022-11-05 02:20:07
?????
2022-11-05 02:20:15
do you even know what those settings do
2022-11-05 02:20:57
those are tunable parameters
2022-11-05 02:21:13
you can't say "qcomp is shit" that's like saying "me_mode is shit"
DZgas Ж
2022-11-05 02:21:28
I absolutely don't like how these outdated motion compression algorithms work. disgusting
Traneptora
2022-11-05 02:21:45
??????
2022-11-05 02:21:52
you're not making any sense
2022-11-05 02:22:02
none of those have anything to do with motion compensation
DZgas Ж
2022-11-05 02:22:28
Maybe we won't get along
Traneptora
2022-11-05 02:22:46
??????
2022-11-05 02:23:07
I'm not saying you're *wrong* I'm saying you're *not making sense*
2022-11-05 02:23:15
qcomp is a tunable parameter, it's the name of a setting
2022-11-05 02:23:22
you can't say "qcomp is shit"
DZgas Ж
2022-11-05 02:23:29
<@853026420792360980> how does QP differ from CRF?
Traneptora
2022-11-05 02:23:29
that doesnt' make any sense
2022-11-05 02:23:47
CQP always picks the same quantization parameter regardless of whether those bits are actually needed
2022-11-05 02:24:16
it stands for "constant quantization parameter"
DZgas Ж
2022-11-05 02:24:30
and CQP not use all this algorithms aq-mode aq-strength qcomp
Traneptora
2022-11-05 02:24:31
on the other hand, CBR always discards the extra bits, regardless of whether those bits are actually needed
2022-11-05 02:25:00
CRF or "cosntant rate factor" uses a psychovisual model to determine whether those bits are needed or not
DZgas Ж
2022-11-05 02:25:12
CBR is full bullshit
Traneptora
2022-11-05 02:25:25
it's for streaming and nothing else
2022-11-05 02:25:55
`qcomp=0` ends up working exactly like `CBR`, i.e. the extra bits are considered never necessary `qcomp=1` ends up working exactly like `CQP`, i.e. the extra bits are considered always necessary
2022-11-05 02:26:11
CRF controls that decision according to the qcomp curve
DZgas Ж
Traneptora it's for streaming and nothing else
2022-11-05 02:26:12
I streamed on twitch via FFMPEG CQP with bitrate from 100 to 10000 kbps
Traneptora
2022-11-05 02:26:19
k
2022-11-05 02:26:28
bad idea
DZgas Ж
2022-11-05 02:27:02
WHY do I need to have a 6000 bitrate on a static monitor frame
Traneptora
2022-11-05 02:27:12
networking reasons mostly
2022-11-05 02:27:33
if the bitrate drops it causes latency when it rises again
DZgas Ж
Traneptora networking reasons mostly
2022-11-05 02:27:38
This is complete bullshit, your life is a lie
Traneptora
2022-11-05 02:28:23
that's pretty rude considering twitch has a whole article explaining the concept
2022-11-05 02:28:34
https://help.twitch.tv/s/article/broadcast-guidelines
DZgas Ж
Traneptora https://help.twitch.tv/s/article/broadcast-guidelines
2022-11-05 02:29:14
"A higher bitrate takes up more of your available internet bandwidth"
Traneptora
2022-11-05 02:29:30
read the section on CBR vs VBR
2022-11-05 02:29:44
the one right below that
2022-11-05 02:30:07
it's not for video quality reasons but rather for the reality of streaming video over a network
DZgas Ж
Traneptora https://help.twitch.tv/s/article/broadcast-guidelines
2022-11-05 02:30:23
wait, but there's just a lie written there
2022-11-05 02:30:42
lowering the bitrate has absolutely no effect on anything or where
Traneptora
2022-11-05 02:30:49
k
2022-11-05 02:31:35
I'm sure twitch publishes articles recommending people increase their momentary bitrate which causes them to have higher overhead intentionally just to screw with people and themselves
2022-11-05 02:31:44
<:thonk:853085643092918283>
DZgas Ж
Traneptora I'm sure twitch publishes articles recommending people increase their momentary bitrate which causes them to have higher overhead intentionally just to screw with people and themselves
2022-11-05 02:32:51
this is called capitalism
Traneptora
2022-11-05 02:33:19
yea and companies always increase their own overhead for capitalism reasons <:holyfuck:941472932654362676>
DZgas Ж
Traneptora yea and companies always increase their own overhead for capitalism reasons <:holyfuck:941472932654362676>
2022-11-05 02:34:45
youtube takes your stream and compresses it into a variable bitrate regardless of whether you want it or not
Traneptora
2022-11-05 02:35:08
because youtube does not stream live
DZgas Ж
2022-11-05 02:35:27
what
Traneptora
2022-11-05 02:35:46
twitch doesn't re-encode your stream
2022-11-05 02:35:56
youtube does
2022-11-05 02:36:32
your argument that twitch recommends suboptimal settings for "capitalism" reasons just doesn't make sense
2022-11-05 02:37:25
this conversation is pointless it's like I'm talking to a wall I explain, cite sources, and you just tell me I'm lying
DZgas Ж
Traneptora your argument that twitch recommends suboptimal settings for "capitalism" reasons just doesn't make sense
2022-11-05 02:37:47
well they raise costs from scratch
Traneptora this conversation is pointless it's like I'm talking to a wall I explain, cite sources, and you just tell me I'm lying
2022-11-05 02:38:52
well, of course, because you have never stream CQP variable bitrate on twitch
2022-11-05 02:40:15
take FFMPEG and do it, because after that I absolutely do not understand why someone on the Internet is still using CBR. We're not on TV
afed
2022-11-05 02:46:50
CBR is more predictable and stable for the network, also if there are any lags, the buffering or frame drops will be more consistent VBR for streaming is useful maybe to save some traffic or VODs size, but since most platforms have upper bitrate cap, it makes little sense to save it on static scenes, besides CBR is usually not pure CBR, the bitrate also changes, just these changes are smaller
DZgas Ж
afed CBR is more predictable and stable for the network, also if there are any lags, the buffering or frame drops will be more consistent VBR for streaming is useful maybe to save some traffic or VODs size, but since most platforms have upper bitrate cap, it makes little sense to save it on static scenes, besides CBR is usually not pure CBR, the bitrate also changes, just these changes are smaller
2022-11-05 02:48:54
I don't understand at all what "stable for the network" means
2022-11-05 02:50:19
I'm not suggesting VBR, I'm suggesting CQP, which means that in active scenes and games there will be a bitrate like CBR, but in all other frames the bitrate will be much lower
afed
2022-11-05 02:58:38
by the way, even youtube sometimes has very large bitrate peaks (given that it is already transcoded video), which cause lags for many users, e.g. ```Woooow, 6:25 at 4k even now caused my ~250 Mbps connection to buffer... interesting! 🤔``` https://youtu.be/Zc-rZkrSD5E?t=385
DZgas Ж
2022-11-05 03:31:57
4k in youtube is 8 mbps
afed by the way, even youtube sometimes has very large bitrate peaks (given that it is already transcoded video), which cause lags for many users, e.g. ```Woooow, 6:25 at 4k even now caused my ~250 Mbps connection to buffer... interesting! 🤔``` https://youtu.be/Zc-rZkrSD5E?t=385
2022-11-05 03:43:32
and yes, the noise. and why? no codec can cope with this, AV1 smooths everything into flat and draws artificial noise if desired
2022-11-05 03:44:10
I didn't really understand what the point of the test was, just to increase random entropy
afed by the way, even youtube sometimes has very large bitrate peaks (given that it is already transcoded video), which cause lags for many users, e.g. ```Woooow, 6:25 at 4k even now caused my ~250 Mbps connection to buffer... interesting! 🤔``` https://youtu.be/Zc-rZkrSD5E?t=385
2022-11-05 03:48:31
I didn't have any problems downloading on my 20 mbit internet, but my processor just doesn't pull more than 1080p vp9 so I can't say anything. Of course, I can only say that this test is meaningless, and whatever such stupidest tests are done, AV1 Will smooth out all the noise into a flat.
2022-11-05 05:49:06
to compress 500.000 images generated by a neural network, I used this function: ```avifenc --min 30 --max 32 -s 1 -y 420 -r f -d 10 -c aom 1.png 1.avif```
JendaLinda
2022-11-05 07:35:42
Most video codecs don't seem to support grayscale mode (4:0:0). Why is that? Grayscale is done just by omitting Cb and Cr channels, there's nothing special about it. AVC and AV1 do support grayscale mode. There are use cases that could take advantage of grayscale encoding, like recordings from security cameras or transfers of black and white movies.
_wb_
2022-11-05 07:38:41
Or using it to encode extra channels like alpha
JendaLinda
2022-11-05 07:46:44
I guess that is the case in AVIF.
_wb_
2022-11-05 07:47:36
And HEIC
JendaLinda
2022-11-05 07:51:20
HEVC seems to support grayscale too, so there are total 3 video codecs supporting 4:0:0
_wb_
2022-11-05 07:55:09
Still not necessarily all implementations support it, e.g. I think svt-av1 is still limited to 4:2:0, so can't use it to make images with alpha (or 4:4:4 for that matter).
JendaLinda
2022-11-05 07:56:19
That's kinda lame, 4:2:0 decoder should be able to decode 4:0:0 as well.
DZgas Ж
2022-11-05 07:57:02
how strong is the difference between 4:0:0 and 4:2:0 for a black and white image?
JendaLinda
2022-11-05 07:57:30
Empty Cr and Cb won't reduce to nothing, there's always some overhead.
DZgas Ж
2022-11-05 07:57:46
considering that there will be one zero values on the C band Cr channels, blocks of 0-2 bytes of information
JendaLinda
2022-11-05 08:00:08
Decoding should be faster too, the decoder could skip the color transformation.
BlueSwordM
JendaLinda Most video codecs don't seem to support grayscale mode (4:0:0). Why is that? Grayscale is done just by omitting Cb and Cr channels, there's nothing special about it. AVC and AV1 do support grayscale mode. There are use cases that could take advantage of grayscale encoding, like recordings from security cameras or transfers of black and white movies.
2022-11-05 09:19:55
They do however.
JendaLinda
2022-11-05 09:55:48
I've tested several codecs available in ffmpeg: MPEG1, MPEG2, XviD, h263, VP8, VP9, WMV1, WMV2, those all converted grayscale to 4:2:0. Only AVC, AV1 and HEVC preserved grayscale.
Traneptora
JendaLinda HEVC seems to support grayscale too, so there are total 3 video codecs supporting 4:0:0
2022-11-05 09:58:31
depends on what you're counting and what you aren't counting
2022-11-05 09:59:47
almost all lossless codecs, such as ffv1, support it
JendaLinda
2022-11-05 10:02:50
Haven't looked into lossless yet, actually. I'd suppose lossless should be bit exact, so no conversion should take place there.
2022-11-05 10:35:51
Alright, ffv1 is indeed bit exact as expected. So it of course preserves the grayscale pixel format. One more thing I've observed, the file encoded in ffv1 is quite a bit smaller than my optimized PNG.
Traneptora
2022-11-05 10:51:19
that's because ffv1 is pretty good
DZgas Ж
JendaLinda I've tested several codecs available in ffmpeg: MPEG1, MPEG2, XviD, h263, VP8, VP9, WMV1, WMV2, those all converted grayscale to 4:2:0. Only AVC, AV1 and HEVC preserved grayscale.
2022-11-06 06:10:25
avc fasted of all this
2022-11-06 06:11:15
Old codecs ≠ fast
2022-11-06 06:12:23
vp9 is completely ineffective And vp8 is shit
JendaLinda
Traneptora that's because ffv1 is pretty good
2022-11-06 08:28:30
ffv1 beat lossless webp as well, in both speed and file size.
Reddit • YAGPDB
2022-11-06 09:12:22
_wb_
2022-11-06 11:44:20
> Sisvel, a Luxembourg-based company, has formed a patent pool, and are selling a patent license for AV1. The pool was announced in early 2019,[210] but a list of claimed patents was first published on 10 March 2020.[211] This list contains over 1050 patents.[211] The substance of the patent claims remains to be challenged.[212] Sisvel has stated that they won't seek content royalties, but their license makes no exemption for software.[211][212] > > As of March 2020, the Alliance for Open Media has not responded to the list of patent claims. Their statement after Sisvel's initial announcement reiterated the commitment to their royalty-free patent license and made mention of the "AOMedia patent defense program to help protect AV1 ecosystem participants in the event of patent claims", but did not mention the Sisvel claim by name.[213] (https://en.wikipedia.org/wiki/AV1#Patent_claims)
2022-11-06 11:46:35
> According to The WebM Project, Google does not plan to alter their current or upcoming usage plans of AV1 even though they are aware of the patent pool, and third parties cannot be stopped from demanding licensing fees from any technology that is open-source, royalty-free, and/or free-of-charge.[214] > On July 7, 2022, it was revealed that the European Union's antitrust regulators had opened an investigation into AOM and its licensing policy. It said this action may be restricting the innovators' ability to compete with the AV1 technical specification, and also eliminate incentives for them to innovate.[215] > "The Commission has information that AOM and its members may be imposing licensing terms (mandatory royalty-free cross licensing) on innovators that were not a part of AOM at the time of the creation of the AV1 technical, but whose patents are deemed essential to (its) technical specifications"
2022-11-06 11:49:43
I hope the EU is not going to mess with AOM's licensing terms, because that's one of the things they do get right: not allowing patent-encumbered contributions and defensive patents to deter patent trolls.
Traneptora
2022-11-06 11:54:15
although *if* patented technologies are critical to AV1's technical specification and those patented technologies were invented by people who were not members of AOM at the time, that's a big screwup on the AOM's part
_wb_
2022-11-07 05:34:14
That is also true - at least if it's not a bogus patent we're talking about here
Reddit • YAGPDB
2022-11-07 08:25:52
Jim
2022-11-07 11:26:44
It's also antitrust, which has nothing to do with patents. Doesn't even the suggestion of monopoly go against the ideals of AOM?
improver
2022-11-07 01:40:56
monopolistic abuse of the weak and just patent-moneys collecting entities by releasing widely-used and nice open-source code with the license which auto-terminates upon patent threats?
2022-11-07 01:41:49
for these people patent extortion probably feels like a natural right
Reddit • YAGPDB
2022-11-08 11:28:31
2022-11-08 12:49:02
2022-11-08 08:05:22
2022-11-08 10:00:07
2022-11-09 08:14:27
2022-11-09 10:05:32
2022-11-09 06:56:26
2022-11-10 12:31:17
2022-11-10 01:26:37
2022-11-10 06:50:07
2022-11-10 08:31:51
DZgas Ж
2022-11-10 11:16:16
https://discord.com/channels/794206087879852103/840831132009365514/1040212331323478066 I conducted tests and found out that JPEG XL in q90 quality at e3 speed is very much ahead of Jpeg XR
2022-11-10 11:31:51
on q80 at e3, it produces very qualities indistinguishable from the original <:Thonk:805904896879493180>
2022-11-10 11:39:12
Butteraugli is good work
Reddit • YAGPDB
2022-11-10 03:18:02
2022-11-11 01:13:17
2022-11-11 02:34:47
2022-11-11 06:05:18
2022-11-11 08:39:06
2022-11-11 11:25:07
2022-11-11 02:32:22
2022-11-12 09:08:36
2022-11-12 02:07:36
2022-11-12 03:32:31
2022-11-12 06:34:23
2022-11-13 12:13:02
2022-11-14 05:18:57
2022-11-14 08:26:56
2022-11-14 11:42:07
2022-11-15 01:01:26
2022-11-15 10:59:32
2022-11-16 04:02:27
2022-11-16 10:13:21
2022-11-16 11:30:31
2022-11-17 02:27:51
2022-11-17 09:45:41
2022-11-18 08:59:36
2022-11-18 09:37:41
2022-11-18 10:21:16
_wb_
2022-11-18 03:07:32
sigh, we are getting reports that Safari fails to decode some images when encoded in WebP or JPEG 2000 (while most webp and j2k images decode just fine)
2022-11-18 03:08:02
and AVIF hasn't landed yet in most Safari users (requires the most recent OS version)
2022-11-18 03:08:49
so Safari is basically back to JPEG only, if we cannot figure out how to predict whether a given webp/j2k image will decode or not
Traneptora
2022-11-18 03:39:24
we as in cloudinary?
_wb_
2022-11-18 03:40:05
yeah, but I guess the same applies for anyone
2022-11-18 03:41:11
bugs like this are very annoying because safari does signal that it supports webp and j2k, and 99.9% of the time it does, but then there are 0.1% of images where all you get is a broken image icon
Demiurge
_wb_ bugs like this are very annoying because safari does signal that it supports webp and j2k, and 99.9% of the time it does, but then there are 0.1% of images where all you get is a broken image icon
2022-11-18 11:11:49
And it's not smart enough to fall back when you use the <picture> tag?
_wb_
2022-11-19 06:14:28
Haven't tried, but we use content negotiation, since we don't control the html
Reddit • YAGPDB
2022-11-19 01:23:26
2022-11-20 12:07:11
2022-11-20 09:49:56
afed
2022-11-21 01:31:17
<@794205442175402004> about hw avif encoders, maybe ask Cloudinary to get an Intel Arc A310/A380 for comparisons, this is the cheapest option, but all models have the same encoder (and most likely server versions) and it seems that at the moment this is the best quality hw encoder Intel is very popular in cloud solutions and most likely a similar encoder will be widely used, so this will be the rough hw avif quality (or single-frame av1, at least)
_wb_
2022-11-21 01:36:45
Cloudinary does nearly all processing on AWS, we don't have any on premise infrastructure
2022-11-21 01:37:20
let me check if AWS has instances like that
2022-11-21 01:46:08
https://aws.amazon.com/ec2/instance-types/#Accelerated_Computing
2022-11-21 01:47:34
looks like their GPU instances are mostly NVIDIA and mostly aimed at deep learning stuff
afed
2022-11-21 02:21:40
nvidia hw av1 has slightly worse quality at the moment (amd encoders most likely too, they have not been released yet), av1 is still very new and hw encoders are only available in the latest gen or will only be available in the next, for example for intel CPUs with apu they are mostly used for video transcoding (also hybrid methods with apu), for images I think with older formats no such need yet, but for avif theoretically it will be possible intel arc is the cheapest av1 encoder available (~100 usd) with the highest quality, i mean it could be used as an example of hw avif encoders for comparison (because others would be about the same or slightly worse)
Reddit • YAGPDB
2022-11-22 09:05:26
Fedora
2022-11-22 09:41:57
why are so many image codecs based on video codecs?
_wb_
2022-11-22 09:43:52
Because a lot of research is happening in video codecs and there's always this temptation to say "oh, an image is just a single-frame video so let's get two for one and define an image format based on this video codec"
Fedora
2022-11-22 09:45:40
sounds like a terrible idea, but thanks for answering my question <:PepeOK:805388754545934396>
paperboyo
2022-11-22 10:09:59
Maybe MIDI should be a really short WAV? 🤔
_wb_
2022-11-22 10:28:13
It's a bit like designing a race car and then trying to use it as a tractor. Superficially it makes sense since both are vehicles with four wheels and a combustion engine, but in practice, it doesn't work very well. And then when you come with an actual tractor and demonstrate how its big wheels and torque can prevent it from getting stuck in the mud and allows it to work on difficult terrain, they will insist on putting it on a race track to see how fast it can go.
JendaLinda
2022-11-22 10:55:10
FFV1 has much better compression than PNG, it can do all kinds of pixel formats and it's fast. I had a fun idea that FFIF could be a thing.
_wb_
2022-11-22 10:56:37
FLIF -n (non-interlaced) is basically that
JendaLinda
2022-11-22 10:59:13
Ah I see.
_wb_
2022-11-22 11:01:56
and modular jxl is basically a superset of a tiled version of FLIF -n with the CABAC replaced by rANS (so faster to decode)
JendaLinda
2022-11-22 11:04:13
Alright, so my imagination was actually real.
2022-11-22 11:05:37
Thanks for explanation.
Reddit • YAGPDB
2022-11-22 08:31:36
2022-11-23 06:14:12
2022-11-23 04:08:06
2022-11-24 05:46:56
2022-11-24 09:32:06
DZgas Ж
2022-11-24 10:48:33
<:garfieldsurprised:823250154319773727>
Reddit • YAGPDB
2022-11-25 07:32:01
DZgas Ж
2022-11-26 07:53:48
Is it true that jpeg2000 is still used for storing sources in film production?
_wb_
2022-11-26 07:57:13
It's used for digital cinema packages, basically a movie you see in a movie theatre is a hard drive with intra-only j2k.
2022-11-26 07:58:24
Video codecs are not used for digital cinema afaik. Nobody wants inter artifacts on the big screen...
diskorduser
2022-11-26 07:58:36
Does it support HDR? Jpeg2000 edit: yes
DZgas Ж
_wb_ It's used for digital cinema packages, basically a movie you see in a movie theatre is a hard drive with intra-only j2k.
2022-11-26 07:59:03
Yes, but I mean archival storage of sources
_wb_
2022-11-26 07:59:53
J2K even goes up to 38-bit, which is kind of a crazy inconvenient number
DZgas Ж Yes, but I mean archival storage of sources
2022-11-26 08:00:52
No idea but I would assume so.
DZgas Ж
_wb_ Video codecs are not used for digital cinema afaik. Nobody wants inter artifacts on the big screen...
2022-11-26 08:01:26
I was also able to watch this file firsthand in the cinema, it size be 200 gigabytes
2022-11-26 08:01:52
Obviously more than bd
2022-11-26 08:04:22
It's interesting, if use av1 for movies, then it's quite possible to go back to dvd<:KekDog:805390049033191445>
diskorduser
2022-11-26 09:20:35
Will jxl replace jpeg2000 for cinema? 🤔
_wb_
2022-11-26 09:49:57
I kind of doubt it. Why update all their existing systems just to get better compression? It's one hard drive per movie now, it will be one hard drive per movie with jxl too. Why bother?
diskorduser
2022-11-26 10:08:08
What if I future 8k comes to theatres and need new systems for 8k playback? Won't they need higher compression?
w
2022-11-26 10:28:42
they'll just get bigger drives
2022-11-26 10:28:44
which already exist
_wb_
2022-11-26 10:35:50
I think j2k filled that niche because jpeg couldn't do the bit depth they need there. Same for medical.
2022-11-26 10:37:30
Better compression is nice in both cases but probably not a game changer and probably not really something you'd want to break interoperability with existing systems for...
Reddit • YAGPDB
2022-11-26 10:40:21
afed
2022-11-26 10:50:41
perhaps wavelet compression is also less affected by unexpected visible artifacts for high fidelity
2022-11-26 11:12:38
<:monkaMega:809252622900789269> https://www.qualcomm.com/content/dam/qcomm-martech/dm-assets/documents/AOM-Statement.pdf ```“Qualcomm is a leader in foundational video compression technology. For over 20 years, we have invented technology widely used in video codecs implemented and used by devices and content services. Our patent portfolio is used in multiple codecs and includes standard essential patents to H.265/HEVC, H.266/VVC, and MPEG-5/EVC video coding standards, as well as the proprietary VP9 and AV1 video codecs. Regarding the Alliance for Open Media (AOM) Patent License 1.0, Qualcomm has not accepted the unilateral terms asserted by AOM with respect to Qualcomm’s intellectual property and has notified AOM of this position. Qualcomm reserves all its intellectual property rights, including with respect to the use of any of Qualcomm’s patented technology to implement any AOM specification.”```
_wb_
2022-11-26 11:25:03
Oh boy
2022-11-26 11:25:26
Why are video codecs such a patent minefield
yurume
2022-11-26 11:27:15
that's a really good question. why are video codecs so riddled with patents, but not less so for images or audios?
improver
2022-11-26 11:27:31
because that's qualcomm's business model
yurume
2022-11-26 11:27:54
(there *are* of course patented image formats or audio formats, but eventually they somehow died off)
_wb_
2022-11-26 11:31:08
One thing is that there are 'good enough' royalty-free image formats available
afed
2022-11-26 11:42:12
complexity probably, also most research is sponsored for video codecs since improving their efficiency has the biggest impact on reducing overall traffic consumption
_wb_
2022-11-26 11:44:38
Video compression has big impact for a relatively small number of big players (youtube, netflix, broadcast companies etc). Image compression has smaller impact for a relatively large number of players.
2022-11-26 11:44:59
The median web page has 1 mb worth of images and zero videos.
2022-11-26 11:45:29
But overall bandwidth for video is probably larger than for images (no idea though, tbh)
2022-11-26 11:51:59
Anyway there's more "concentration" (of companies making profits off of the technology) in videoland than in imageland, and concentration in capitalism generally leads to more ethically questionable behavior like patent trolling.
2022-11-26 11:54:59
At least that's my take on it
lonjil
2022-11-26 11:56:58
Isn't Qualcomm releasing a SoC with AV1 decode like, really soon?
2022-11-26 11:57:41
If they're openly admitting to not agreeing to AOM's license, aren't they straight up saying "yeah we're violating the patents for AV1 held by every AOM member"
afed
2022-11-26 12:03:10
yeah, that's the statement after they announce av1 hw decoder about traffic ```Cisco recently declared that by 2022, online videos will make up more than 82 per cent of all consumer internet traffic — 15 times higher than it was in 2017``` but there are also tv, satellite and other where bandwidth and storage has a cost
veluca
2022-11-26 12:03:42
ohhh boy that's going to be fun
_wb_
2022-11-26 12:09:07
https://tenor.com/view/movie-night-movie-time-pop-corn-eat-intense-gif-17272497
2022-11-26 12:10:58
I wonder how this is even possible. Did they not agree to the terms even before AV1 was created?
2022-11-26 12:12:17
Oh. Qualcomm is not an AOM member...
2022-11-26 12:16:05
Is there anything in AV1 that Qualcomm actually holds patents on? I would expect AOM to have avoided anything patent-encumbered unless the patents are held by AOM members...
afed
2022-11-26 12:19:43
https://www.reddit.com/r/AV1/comments/yxrpes/qualcomm_announces_av1_chipset_while_at_the_same/iwqak6z/
_wb_
2022-11-26 12:24:44
So as long as Qualcomm doesn't start litigating, they still get to use AOM's defensive patents
2022-11-26 12:26:02
The problem is that they might not even need to litigate to get smaller players to not "risk it", or to extort them into paying them royalties...
Jim
2022-11-26 12:51:27
I doubt they have any patents on any software. It's likely they took out a patent on their hardware encoding so that they can resell it to other vendors. I doubt it's a big issue.
veluca
2022-11-26 03:06:28
I suspect it's not particularly hard to accidentally use something that is patented (but I don't really know that, of course)
_wb_
2022-11-26 03:21:00
it takes lawyers and judges to determine if doing something constitutes infringement on a patent, and even if you don't infringe or if the patent was bogus to begin with, it can be quite costly to defend — this is why patent trolls can actually get paid even when their victims know for sure that they're not infringing on any valid patents, it's cheaper/easier to pay a troll a few thousand $ than it is to pay tens or hundreds of thousands of $ in lawyers and legal fees and maybe get the patent invalidated (or maybe not, depending on the judge)...
BlueSwordM
DZgas Ж Is it true that jpeg2000 is still used for storing sources in film production?
2022-11-26 03:26:31
Yes, but it decodes quite slowly without any HW decoding.
afed
2022-11-26 03:28:21
i think video formats have a lot of similarities, but not to be an exact copy for something patented they try to change in some way and the differences may not be enough i remember when after google bought on2 the first revisions of the vp* source code had a lot of copied code directly from x264, there were also golden frames because b-frames had patents or something like that
Reddit • YAGPDB
2022-11-27 04:47:26
Kagamiin~ Saphri
afed <:monkaMega:809252622900789269> https://www.qualcomm.com/content/dam/qcomm-martech/dm-assets/documents/AOM-Statement.pdf ```“Qualcomm is a leader in foundational video compression technology. For over 20 years, we have invented technology widely used in video codecs implemented and used by devices and content services. Our patent portfolio is used in multiple codecs and includes standard essential patents to H.265/HEVC, H.266/VVC, and MPEG-5/EVC video coding standards, as well as the proprietary VP9 and AV1 video codecs. Regarding the Alliance for Open Media (AOM) Patent License 1.0, Qualcomm has not accepted the unilateral terms asserted by AOM with respect to Qualcomm’s intellectual property and has notified AOM of this position. Qualcomm reserves all its intellectual property rights, including with respect to the use of any of Qualcomm’s patented technology to implement any AOM specification.”```
2022-11-27 04:17:18
this sort of bullshit brings forth my hate for capitalism at full force... fucking patents on mathematical algorithms... charging people to use algorithms they somehow "own"... oh well sorry for the mini vent
Reddit • YAGPDB
2022-11-28 11:13:42
2022-11-29 07:48:27
2022-11-29 07:19:33
2022-11-30 05:02:37
2022-11-30 08:49:57
2022-11-30 10:54:07
2022-11-30 10:57:12
2022-11-30 01:33:37
2022-11-30 09:24:52
DZgas Ж
2022-11-30 11:06:52
<:PepeGlasses:878298516965982308> ALIFE
2022-11-30 11:09:12
heh
uis
DZgas Ж heh
2022-11-30 11:12:48
Crafty font
Reddit • YAGPDB
2022-12-01 05:35:42
DZgas Ж
uis Crafty font
2022-12-01 07:47:47
<:PeepoDiamondSword:805394101340078092>
Reddit • YAGPDB
2022-12-01 10:34:42
2022-12-01 06:27:12
GlassGhost
2022-12-01 08:00:38
<@823713976780193863> I'm not really on a side on this issue, I feel like their are shades of grey like on 1 side you have things that have been around forever and trying to patent them is absurd, however on the other side you have things like the Unreal Engine. I feel the the line the separates the 2 that you have to cross would be if the articulate the exact nuance or discovery for that piece of the engine that makes it run faster for instance take a look at: FISR(Fast inverse square root) used in Quake 3 engine; The algorithm was often misattributed to John Carmack, but in fact the code is based on an unpublished paper by William Kahan and K.C. Ng circulated in May 1986. The original constant was produced from a collaboration between Cleve Moler and Gregory Walsh, while they worked for Ardent Computing in the late 1980s. but if FISR actually was patented actual engineers or companies who paid them to design a piece of software would fall into the category of patentable. but only on that specific piece of their software. but yes on the other side of the spectrum you have idiots trying to patent the generic idea of websites that look like ebay. Maybe I need to find a better example of a piece of software that does deserve patent protection, sorry this is the only instance I can recall off the top of my head. and no one that wrote it was even payed for it.
Reddit • YAGPDB
2022-12-01 09:06:22
2022-12-01 09:42:47
2022-12-02 10:42:37
fab
2022-12-02 05:24:22
https://css-ig.net/wavif
Traneptora
2022-12-02 05:26:11
looks like it's by the pingo guy
2022-12-02 05:26:17
but it's windows only and not open-source
fab
2022-12-02 05:32:24
Ah Windows only
2022-12-02 05:32:42
On en wikipedia i wrote the name of the author
2022-12-02 05:33:28
But poor grammar and not specified the operative operating system
Traneptora
2022-12-02 05:34:09
I mean there's no source available and only a binary for windows
2022-12-02 05:34:14
but you could run it through wine probably
2022-12-02 05:34:20
but it's still windows only
2022-12-02 05:34:32
es wikipedia?
2022-12-02 05:34:38
isn't `es` spanish?
2022-12-02 05:35:01
eg. `es_MX`
yurume
2022-12-02 05:35:13
who's behind pingo? is (presumably) he active in other venues?
Traneptora
2022-12-02 05:35:29
I don't know, I just know that this is that person's website
fab
Traneptora isn't `es` spanish?
2022-12-02 05:59:35
En Wikipedia
2022-12-02 06:01:46
Grammar is not there. Plus I didn't describe OS
2022-12-02 06:01:47
PNG in phone sometimes weight much. This on
2022-12-02 06:01:47
I'm sending is 2.8MB
BlueSwordM
Traneptora but it's windows only and not open-source
2022-12-02 06:09:21
It also likely just uses an existing encoder. Considering they are, they are currently breaking license terms.
Traneptora
2022-12-02 07:01:29
nm time
BlueSwordM It also likely just uses an existing encoder. Considering they are, they are currently breaking license terms.
2022-12-02 10:52:11
according to `strings` it statically links libaom
2022-12-02 10:53:36
and the author didn't provide the disclaimer required by the license
2022-12-02 10:57:08
it also statically links in LodePNG without attribution but that's permitted by the license
2022-12-02 10:57:24
LodePNG allows you to link it without attribution, but not with misattribution
yurume
2022-12-02 11:14:38
to be fair it's an extremely common kind of (unintentional) license violation
Reddit • YAGPDB
2022-12-02 11:17:42
2022-12-03 04:24:02
2022-12-03 08:08:02
2022-12-04 11:51:37
2022-12-05 12:07:37
2022-12-05 05:14:27
Traneptora
2022-12-05 11:36:02
use compare -verbose
2022-12-05 11:36:23
is there alpha?
2022-12-05 11:36:47
one of the channels could be modified if the alpha channel is zero at that point
2022-12-05 11:36:54
since it's transparent anyway
2022-12-05 11:40:40
well if alpha is 100% everywhere it shouldn't affect compare
2022-12-05 11:40:50
just if it's 0% somewhere
_wb_
2022-12-05 11:47:50
is the original 16-bit, maybe?
2022-12-05 11:48:00
cwebp will just encode that as 8-bit then
2022-12-05 11:48:33
while cjxl will encode it as 16-bit
2022-12-05 11:49:38
that would also explain the size difference. Those 8 least significant bits are hardest to compress since they're more noisy than the 8 most significant bits.
diskorduser
2022-12-05 12:02:53
Is there an option in cjxl to encode files in 8bit? It would be useful for some cases
Traneptora
diskorduser Is there an option in cjxl to encode files in 8bit? It would be useful for some cases
2022-12-05 12:04:27
`--bits_per_sample=8`
2022-12-05 12:05:10
actually wait
2022-12-05 12:05:12
that's a djxl option
2022-12-05 12:08:34
for `cjxl` I don't believe you can change the tagged bit depth on encoding
2022-12-05 12:18:34
mpv outputs 16-bit jxls always because the buffer is 16-bit
2022-12-05 12:19:21
the bit depth for jxl is just a tag though, you can decode to any depth you want
2022-12-05 12:19:24
nothing internally changes
_wb_
2022-12-05 12:49:20
in cjxl it is `--override_bitdepth`
Traneptora nothing internally changes
2022-12-05 12:49:45
for xyb/lossy that is true. For lossless this is not true though 🙂
Reddit • YAGPDB
2022-12-05 02:48:07
Traneptora
_wb_ for xyb/lossy that is true. For lossless this is not true though 🙂
2022-12-05 04:09:41
right, probably should include the tag in the mpv wrapper in case distance=0
Reddit • YAGPDB
2022-12-05 05:49:37
2022-12-06 07:17:27
2022-12-07 02:30:37
2022-12-08 09:52:39
Demiurge
2022-12-09 06:23:23
Is there a reason why lossless webp beats lossless avif?
_wb_
2022-12-09 07:19:44
Lossless webp is a special-designed codec, since vp8 cannot do lossless.
2022-12-09 07:20:45
Lossless avif is just av1, which can do lossless but is not particularly designed to be good at it, especially for still images.
Demiurge
2022-12-09 07:39:15
Where can I find more info on lossless webp? Can ffvp8 decode it?
2022-12-09 07:41:23
Hmm, I found some info
DZgas Ж
Demiurge Is there a reason why lossless webp beats lossless avif?
2022-12-09 08:56:10
Lossless avif same lossless jpeg
2022-12-09 08:57:29
An image is drawn from the coefficients, then it tries to compress without rounding
Demiurge Where can I find more info on lossless webp? Can ffvp8 decode it?
2022-12-09 09:00:44
name is VP8L, technically it's not vp8
2022-12-09 09:03:25
The same separate algorithm as modular in jpeg xl
Demiurge
2022-12-09 09:40:09
the SAME algorithm?
JendaLinda
2022-12-09 09:46:13
Lossless AVIF works in similar way like JPEG at quality 100% , so it's pretty inefficient. VP8L is its own thing. VP8L is also used for alpha channel in lossy WebP.
Traneptora
Demiurge Where can I find more info on lossless webp? Can ffvp8 decode it?
2022-12-09 09:52:10
it's not VP8, so no. but FFmpeg has an internal webp decoder which can
Demiurge the SAME algorithm?
2022-12-09 09:53:02
it's not the same thing as modular in JXL, since modular in JXL comes from FUIF, not from PIC
2022-12-09 09:53:20
however you could probably get more info from Jyrki as he was on the team that invented lossless webp
_wb_
2022-12-09 10:22:23
modular jxl is a combination of elements from fuif, pik, lossless webp, and some new stuff
2022-12-09 10:23:57
in webp, lossy mode and lossless mode are completely separate things, they are unrelated except that they both use the same container and name
2022-12-09 10:26:00
in jxl, modular can be used on its own (which is how we do lossless), but it's also a component that is used in the vardct mode: only the high frequency coefficients are encoded in a special way, all the other image data is encoded using modular sub-bitstreams.
2022-12-09 10:28:39
This includes the LF image (the "DC coefficients", except it's also some of the AC when using bigger blocks), the block selection and adaptive quantization parameters, raw quantization tables, the chroma from luma multipliers, the EPF filter strengths, and any extra channels like alpha.
DZgas Ж
Demiurge the SAME algorithm?
2022-12-09 10:57:26
same in the sense that separate inside one format...
2022-12-09 11:00:33
WEBP JPEG XL OPUS they all have 2 completely different compression methods for large task coverage
Demez
2022-12-09 11:07:49
opus music overall sounds better than opus voice from my tests lol, even at high opus voice quality
2022-12-09 11:08:32
though I only did my tests in teamspeak 3
DZgas Ж
Demez opus music overall sounds better than opus voice from my tests lol, even at high opus voice quality
2022-12-09 11:09:04
the voice codec is not used after the 64 kbit bitrate
Demez
2022-12-09 11:09:24
interesting
DZgas Ж
2022-12-09 11:10:07
to get the maximum, according to my tests, this bitrate is exactly 43
Demez
2022-12-09 11:10:28
wonder what teamspeak is doing then, where I can switch between voice and music, and lower the quality of either one down quite a lot
DZgas Ж
DZgas Ж to get the maximum, according to my tests, this bitrate is exactly 43
2022-12-09 11:10:51
for both music and sound, the only problem is that it is only for full good compression, with a delay of 1 second and at maximum settings
Demez
2022-12-09 11:10:55
and both sound different at all levels
DZgas Ж
2022-12-09 11:12:19
for voice programs, you need to make spec settings, and it is desirable that it would be possible to select Only the voice codec there. I note that music codec at bitrates below 50 is extremely bad for the voice
2022-12-09 11:13:25
in any case, it will be better than anyone another codec can offer
Demiurge
2022-12-09 01:11:33
What I dislike about CELT is, it was designed for low-delay at the expense of quality. Even in situations where the low-delay aspect is not required or useful, like storing a music collection.
2022-12-09 01:12:01
The quality suffers particularly with harpsichord music, my favorite instrument
2022-12-09 01:12:53
And the patch that was supposed to improve this, did not entirely fix the problem. It's still noticeably bad at achieving transparency with harpsichord
2022-12-09 01:13:17
At least to my ears. And yes I have ABX tested this with the latest version of libopus
2022-12-09 01:14:08
Harpsichord recordings sound unnaturally scratchy.
2022-12-09 01:14:42
And this is due to the low-delay nature of the codec
2022-12-09 01:15:37
If you're using opusenc to encode a file for storage and playback, the low delay design is completely useless and counterproductive
diskorduser
Demiurge If you're using opusenc to encode a file for storage and playback, the low delay design is completely useless and counterproductive
2022-12-09 02:21:28
Is it possible to disable celt when encoding?
BlueSwordM
JendaLinda Lossless AVIF works in similar way like JPEG at quality 100% , so it's pretty inefficient. VP8L is its own thing. VP8L is also used for alpha channel in lossy WebP.
2022-12-09 04:00:25
No. Lossless AV1 is its own thing, and uses a special transform.
Demiurge What I dislike about CELT is, it was designed for low-delay at the expense of quality. Even in situations where the low-delay aspect is not required or useful, like storing a music collection.
2022-12-09 04:02:27
No, it was designed to be able to be low delay and high quality at the same time. You can make CELT combine frames together and try to do better prediction with higher delay, but it won't help. What is missing here are better tonal optimizations.
2022-12-09 05:15:45
<@794205442175402004> The AVIF folks are getting desperate <:KekDog:805390049033191445> `[WG-Storage-and-Transport] [avif] Slides for alternative bit depth extension approach` Imagine something like Dolby Vision Enhancement Layers, but for AVIF. Might as well use an image format that doesn't need it if you have to do sketchy stuff like this 🙂
_wb_
BlueSwordM <@794205442175402004> The AVIF folks are getting desperate <:KekDog:805390049033191445> `[WG-Storage-and-Transport] [avif] Slides for alternative bit depth extension approach` Imagine something like Dolby Vision Enhancement Layers, but for AVIF. Might as well use an image format that doesn't need it if you have to do sketchy stuff like this 🙂
2022-12-09 05:25:12
What is this? 16-bit avif?
BlueSwordM
_wb_ What is this? 16-bit avif?
2022-12-09 05:39:57
Essentially yes.
_wb_
2022-12-09 05:41:28
If they're going to do it by doing, say, two 8-bit av1 streams, one for the high bits and one for the low, compression will likely be horrible
2022-12-09 05:43:27
This seems to be something they're just doing to be able to claim feature parity, not because it would be useful in any way
Sauerstoffdioxid
_wb_ If they're going to do it by doing, say, two 8-bit av1 streams, one for the high bits and one for the low, compression will likely be horrible
2022-12-09 05:43:56
I think that's how they want to do it, yes. https://github.com/AOMediaCodec/libavif/pull/1215
afed
2022-12-09 05:44:43
yeah, there are also many experimental extensions for the current standard/encoder https://github.com/AOMediaCodec/libavif/pull/1222
2022-12-09 05:44:51
https://github.com/AOMediaCodec/libavif/pull/999
_wb_
2022-12-09 05:47:19
I don't really believe in extensions
Jim
2022-12-09 06:08:12
Why not add that into AVIF2? Why keep adding experimental junk into AVIF? There is plenty they could add into or fix now that could make current AVIF more useble for the wider web, yet they are focusing on extra stuff that's not supported by the spec?
daniilmaks
2022-12-09 08:03:28
because if avif2 is released anywhere within 10 years it's gonna be as DOA as webp2
2022-12-09 08:04:09
too many formats
2022-12-09 08:04:29
we still need to phase out bmp and webp
Demez
2022-12-10 02:24:25
what we really need to phase out is gif lol
2022-12-10 02:25:28
idk about webp tbh, i do like using it for lossless compression only and so it can embed in discord
Reddit • YAGPDB
2022-12-10 05:52:49
2022-12-10 06:00:24
DZgas Ж
Demiurge What I dislike about CELT is, it was designed for low-delay at the expense of quality. Even in situations where the low-delay aspect is not required or useful, like storing a music collection.
2022-12-10 07:39:53
No, no, this is not a task, but an opportunity. Celp is the best codec for compressing music, it just can't be used below the bitrate of 64. And the recommendations are written from 96 to 128.
Demiurge If you're using opusenc to encode a file for storage and playback, the low delay design is completely useless and counterproductive
2022-12-10 07:42:42
Actually, I don't understand why you decided this, but when encoding for storage, the delay is the maximum possible, it's 1 second. Sound predictions for 50 packets ahead
diskorduser Is it possible to disable celt when encoding?
2022-12-10 07:43:32
It doesn't make sense
diskorduser
2022-12-10 07:43:48
Oh
DZgas Ж
Jim Why not add that into AVIF2? Why keep adding experimental junk into AVIF? There is plenty they could add into or fix now that could make current AVIF more useble for the wider web, yet they are focusing on extra stuff that's not supported by the spec?
2022-12-10 07:45:32
Ahahaha We don't even use av1 everywhere to say av2
diskorduser
DZgas Ж It doesn't make sense
2022-12-10 07:45:57
WHY?
DZgas Ж
diskorduser WHY?
2022-12-10 07:47:05
99% of the sound you hear anywhere in opus format is celp
diskorduser
2022-12-10 07:48:28
🤔
DZgas Ж
2022-12-10 07:48:41
Another SILK Very specific for - for voice at low bitrates
2022-12-10 07:49:40
But it is much more important that slik is 3-5 times slower than celp. Therefore, if it can not be used. It is not used. For example YouTube.
2022-12-10 07:51:30
For more than 5 years, all videos on YouTube are opus celp 128kbps
daniilmaks
Demez what we really need to phase out is gif lol
2022-12-10 01:48:31
that's for sure, but the web still hasn't agreed on a standard to replace it. so it will "have" to stick around until then.
2022-12-10 01:49:04
apng is, for practical web purposes, dead
Reddit • YAGPDB
2022-12-10 02:22:34
daniilmaks
Demez idk about webp tbh, i do like using it for lossless compression only and so it can embed in discord
2022-12-10 02:28:21
if only it didn't also have a lossy mode that doesn't suck
2022-12-10 02:28:56
or to just be a lossless only format
Reddit • YAGPDB
2022-12-10 07:17:09
Demiurge
DZgas Ж Actually, I don't understand why you decided this, but when encoding for storage, the delay is the maximum possible, it's 1 second. Sound predictions for 50 packets ahead
2022-12-11 04:51:08
All I know is that at default settings and at 128kbps, harpsichord is not transparent with latest opusenc
2022-12-11 04:55:26
https://people.xiph.org/~xiphmont/demo/opus/demo3.shtml
2022-12-11 04:57:05
> Opus is a low-delay codec, and uses a shorter MDCT window than non-realtime audio codecs such as Vorbis or AAC. A short MDCT window has higher spectral energy leakage between bins, and this leakage decreases coding efficiency for strong tones. Samples that contain strong tones with a large number of harmonics that stand well above the noise floor are thus especially difficult. > > In addition, typical bit allocation schemes (such as used by Opus) reduce the precision of high-frequency bands, a strategy appropriate for the vast majority of audio. If the precision drops too low however, strong harmonics in the upper frequency bands wash out into an indistinct, fuzzy hiss.
2022-12-11 04:57:20
That's their explanation for why.
2022-12-11 04:57:50
The 1.1 update and subsequent updates did not fix the problem.
DZgas Ж
Demiurge All I know is that at default settings and at 128kbps, harpsichord is not transparent with latest opusenc
2022-12-11 09:08:47
Hah, no, it's quite transparent. But according to my tests. For maximum audiophiles. I recommend exactly 141
Demiurge > Opus is a low-delay codec, and uses a shorter MDCT window than non-realtime audio codecs such as Vorbis or AAC. A short MDCT window has higher spectral energy leakage between bins, and this leakage decreases coding efficiency for strong tones. Samples that contain strong tones with a large number of harmonics that stand well above the noise floor are thus especially difficult. > > In addition, typical bit allocation schemes (such as used by Opus) reduce the precision of high-frequency bands, a strategy appropriate for the vast majority of audio. If the precision drops too low however, strong harmonics in the upper frequency bands wash out into an indistinct, fuzzy hiss.
2022-12-11 09:11:44
I have no idea what is meant here. Opus uses a packet size of 20 ms. As well as mp3, and aac, and vorbis.
2022-12-11 09:13:05
The only thing I discovered is that at a bitrate of 8 kbps, at a frequency of 4000 hz, vorbis is better than opus/aac/mp4
2022-12-11 09:14:09
https://cdn.discordapp.com/attachments/308921309893623820/1003957967349096578/DZgas_music_tracklist.webm
2022-12-11 09:17:42
vorbis on these parameters is ahead of all codecs in general that I could reach, it sounds very good compared to opus on the same bitrate. And yet I'm not an audiophile. Therefore, I have been using opus 128-141 for my entire collection for 5 years without exception
Demiurge https://people.xiph.org/~xiphmont/demo/opus/demo3.shtml
2022-12-11 09:20:49
https://wiki.xiph.org/Opus_Recommended_Settings
2022-12-11 09:24:19
The only thing I can say is that I noticed that opus has less accuracy in the lower frequency range, although other formats on the contrary give them so many bits
2022-12-11 09:27:13
improver
2022-12-11 10:10:42
lower freqs are carrying less information
2022-12-11 10:11:50
at least that's the idea
VEG
2022-12-11 01:22:53
According to latest activity in the Opus codec repository (https://gitlab.xiph.org/xiph/opus/-/commits/exp_neural_fec3/), some significant improvements for low bitrates based on the https://arxiv.org/abs/1905.04628 are in development.
afed
2022-12-11 01:46:44
https://arxiv.org/abs/2212.04453
2022-12-11 02:14:10
It is more likely to be a nn for packet loss correction `In this work, we propose a deep redundancy (DRED) mechanism based on speech coding techniques specifically optimized for coding redundant audio information`
Demiurge
DZgas Ж Hah, no, it's quite transparent. But according to my tests. For maximum audiophiles. I recommend exactly 141
2022-12-11 04:54:37
I tried ABXing the harpsichord sample they had on the opus 1.1 demo page
2022-12-11 04:55:36
Maybe it's transparent for everything else but not harpsichord
Reddit • YAGPDB
2022-12-12 06:48:24
2022-12-12 09:13:49
2022-12-12 01:00:34
daniilmaks
DZgas Ж
2022-12-12 02:28:52
it's a lot harder to produce *hearable* artifacts in the bass range which is why it's prunned harder.
Reddit • YAGPDB
2022-12-12 02:47:34
DZgas Ж
it's a lot harder to produce *hearable* artifacts in the bass range which is why it's prunned harder.
2022-12-12 03:05:25
I don't agree, old codecs like MP3 put a lot more information into low frequencies than was necessary
2022-12-12 03:06:12
https://audiocoding.ru/articles/2019-06-24-best-lossy-codecs-june-2019/diff.svg
2022-12-12 03:06:52
2022-12-12 03:08:33
I'm not sure that this is important, but it's just the fact that OPUS use the least quality into low frequencies compared to others, and this is directly related to the works of the codec itself
DZgas Ж
2022-12-12 03:12:46
this is a test on bitrate 200, and it also shows that all codecs on this bitrate give almost identical quality, "within the margin of error", (also look attention to the fact that the graph is logorithmic)
daniilmaks
DZgas Ж
2022-12-12 04:19:13
I have no clue what both axis say.
DZgas Ж I don't agree, old codecs like MP3 put a lot more information into low frequencies than was necessary
2022-12-12 04:22:35
I also have no clue how it follows that mp3 wasting bits in the bass means I am somehow incorrect.