#
✕ nick:rcombs
#asahi-dev · 2022-10-01 01:17
rcombsbut ffmpeg _doesn't_ yet support using dmabuf fds with v4l2, so if you go that route I'll need to add that :)
#asahi-dev · 2022-10-01 01:16
rcombsffmpeg/mpv/etc already support doing that with drmprime buffers or VAAPI frames (which are internally drmprime dmabuf fds)
#asahi-dev · 2022-10-01 01:09
rcombswhatever you do for decode, you'll want to make sure you're capable of spitting out buffers that are in a format (or can easily be mapped by userspace code into a format) that the GL driver can import
#asahi-dev · 2022-10-01 01:07
rcombsVAAPI has the advantage of not sucking (and being widely-deployed in desktop usage), but the disadvantage of being potentially more complex to integrate with codecs that it doesn't already support, along with being designed to integrate at a somewhat lower level than "pass in opaque bag of bytes, get out pile of pixels"
#asahi-dev · 2022-10-01 01:04
rcombsthe other major options are VAAPI and OMX; OMX has the advantage of being very open and extensible, but has the downside of being absolute hot trash at every level
#asahi-dev · 2022-10-01 00:45
rcombsbut if it's really just "feed raw input data and high-level settings, get finalized output", then the whole thing can probably live in the kernel just fine via v4l2
#asahi-dev · 2022-10-01 00:44
rcombsa lot of those more complex pieces might be better-off in a userspace driver
#asahi-dev · 2022-10-01 00:43
rcombscan you tell the encoder unit "target this bitrate for the stream" and just roll with that, or do you have to tell it e.g. what quantization settings to use for each macroblock?
#asahi-dev · 2022-10-01 00:42
rcombsalso on encode, how much rate control feedback needs to be done in software?
#asahi-dev · 2022-10-01 00:41
rcombsor on the encode side, does the hardware generate an intermediate format that requires substantial further processing (gluing pieces together, adding headers, etc) to produce a valid coded packet?
#asahi-dev · 2022-10-01 00:40
rcombslike, does something have to parse packets and break them down into several smaller buffers before feeding them to the hardware?
#asahi-dev · 2022-10-01 00:40
rcombswell, the biggest question is "how much work is there that could/should reasonably be offloaded to a userspace driver"
#asahi-dev · 2022-10-01 00:38
rcombsif not, there are a bunch of other potential options to consider
#asahi-dev · 2022-10-01 00:38
rcombsbasically, if you'd have an easy time taking a coded packet as a single buffer and throwing it at the hardware entirely within the kernel, your best bet is probably v4l2 m2m
#asahi-dev · 2022-10-01 00:36
rcombsrqou_: for prores, I think your best bet is probably gonna be to expose an V4L2_PIX_FMT_PRORES, along with various V4L2_CID_[*] controls for tuning options and such
#asahi-dev · 2022-10-01 00:34
rcombsrqou_: is AVD/AVE similarly simple?
#asahi-dev · 2022-10-01 00:32
rcombslemme see here
#asahi-dev · 2022-10-01 00:31
rcombswell that's nice and simple
#asahi-dev · 2022-10-01 00:03
rcombsrqou_: hey! yeah prores will be interesting since there's not really any standard API bits for it outside of macOS… how complex is the userspace driver going to need to be?
#asahi-dev · 2022-09-29 04:30
rcombshappy to help build out ffmpeg bits if things end up using interfaces that aren't fully supported there yet
#asahi-dev · 2022-09-29 04:27
rcombssame with AVE, APR, etc
#asahi-dev · 2022-09-29 04:27
rcombsso, now that GPU stuff is coming online… if anybody wants to work on AVD (video decode acceleration), feel free to poke me to chat about the various codec API options, ffmpeg-and-co integration, what apps expect out of a userspace driver, etc
#asahi-dev · 2021-05-15 06:16
rcombsiiiiiiiinteresting
#asahi-dev · 2021-05-14 18:52
rcombsit's not clear if the new owners have a plan to, like. get staff
#asahi-dev · 2021-05-14 18:30
rcombslooks like they're putting together https://libera.chat as a replacement? but it's not up and running yet
#asahi-dev · 2021-05-14 18:29
rcombsalso https://p.haavard.me/407
#asahi-dev · 2021-05-14 18:29
rcombspossibly???? see here https://fuchsnet.ch/privat/fn-resign-letter.txt
#asahi-dev · 2021-05-14 18:27
rcombsso it looks like it might be a good idea to make contingency plans to move the asahi channels to a different network if freenode collapses