whitequark changed the topic of #glasgow to: glasgow debug tool · code https://github.com/GlasgowEmbedded/Glasgow · logs https://freenode.irclog.whitequark.org/glasgow
wmarone has joined #glasgow
_whitelogger_ has joined #glasgow
apo has quit [*.net *.split]
tnt has quit [*.net *.split]
nrossi has quit [*.net *.split]
futarisIRCcloud has quit [*.net *.split]
apo has joined #glasgow
tnt has joined #glasgow
nrossi has joined #glasgow
futarisIRCcloud has joined #glasgow
<esden> For those curious, there is some more progress on the Glasgow assembly front :D https://chaos.social/@esden/102267109659152689
_whitelogger has joined #glasgow
<TD-Linux> whitequark, juuuust barely. vimeo started using it today
<whitequark> TD-Linux: yeah that's why i'm asking
<whitequark> uh, i think i already went over this
<whitequark> but if i want to encode straight rgb at highest possible quality with it
<whitequark> i have to upsample, right
<TD-Linux> do you want lossless, or just high quality lossy
<whitequark> ideally lossless
<TD-Linux> we don't implement lossless, but we do implement 4:4:4 rgb which wasn't true last time you asked
<whitequark> 4:4:4 rgb might be good enough
<whitequark> i'd have to, well, look at it
<whitequark> the other option is to encode into a gif
<whitequark> and you can probably imagine what a 4-hour gif looks like
<TD-Linux> oh lol yeah this is going to be 10000000x better
<whitequark> possibly the second most hostile video format to use for anything
<TD-Linux> try it and let me know how it goes
<whitequark> is there anything I should tweak
<whitequark> the frames are tiny
<TD-Linux> --quantizer. lower is better quality
<whitequark> uh hang on, looking at examples/
<whitequark> a bit lost in the src/bin
<whitequark> are there uhm. docs
<whitequark> TD-Linux: is that just SpeedSettings::from_preset?
<sorear> multipart/x-mixed-replace
<TD-Linux> whitequark, whoops sorry was afk
<TD-Linux> examples/ is more like how to use the api
<TD-Linux> the bin just has --help basically
<TD-Linux> the README has some basic usage examples
<TD-Linux> actually for your use case 4:4:4 YUV should be fine, possibly better than RGB
<TD-Linux> what format is your video starting in?
<TD-Linux> I think the C api documentation is actually better than the rust atm... https://github.com/lu-zero/crav1e/blob/master/src/lib.rs
* TD-Linux makes an issue to copy that back over
<TD-Linux> also I *just* landed a patch that improves cargo doc a lot
<whitequark> TD-Linux: RGB 565
<TD-Linux> yeah just use plan ol' YUV 4:4:4
<whitequark> because browsers like yuv more?
<TD-Linux> yes, but also because it compresses better (YUV decorrelates)
<TD-Linux> only reason to use RGB is to reduce quantization error during the conversion. but that error is much smaller than RGB565 quantization steps
<whitequark> ahh
<whitequark> thank
<sorear> in what ways is 4:4:4 rgb not lossless?
<TD-Linux> rav1e doesn't implement av1's lossless mode. it's like opus vs flac
<whitequark> is that planned?
<TD-Linux> yes, though it's very high priority right nw
<whitequark> not very high?
<TD-Linux> *not very high yes
<TD-Linux> patches welcome but I don't know of anyone currently writing a patch for it
m4ssi has joined #glasgow
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
Jasjar has quit [Ping timeout: 272 seconds]
Jasjar has joined #glasgow
massi_ has joined #glasgow
massi_ has quit [Remote host closed the connection]
<marcan> <@whitequark> possibly the second most hostile video format to use for anything <- did I ever show you bomb.gif?
<marcan> 3MB gif, works fine in a browser, but if you try to run it through ImageMagick or the like, it'll slowly OOM your machine
<marcan> I used it to DoS a particularly idiotic service we were forced to use at a particular old job I had, until they gave up and disabled gif support (I guess fixing it was too hard?)
<marcan> best part was how they ran the production instance and their public website all on the same machine/instance, so DoSing it took down the whole thing. quality engineering.
* tnt saves that file for later ...
<marcan> I just ran it through convert and it's 3 minutes in and 10% RAM used (which is 3GB)
<karlyeurl> That a… bunch of frames.
<karlyeurl> (*That's)
<karlyeurl> It took 2h30 for gimp to open the 100001 frames, then the RAM use spiked up to 70% (of 8GB), then it segfaulted. That was a fun Friday afternoon distraction.
m4ssi has quit [Remote host closed the connection]
futarisIRCcloud has joined #glasgow
ZirconiumX has quit [Quit: Love you all~]
ZirconiumX has joined #glasgow
<TD-Linux> technically bomb.gif is possible with any other video format. it's just that normal video players know that they can't load all frames into memory, generally.
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
futarisIRCcloud has joined #glasgow