asticode / go-astiav

Golang ffmpeg and libav C bindings
MIT License
393 stars 45 forks source link

[example request] hardware accelerated en/decoding and tee example #18

Closed c1ngular closed 5 months ago

c1ngular commented 1 year ago

Tee example exhibits the powerfulness of ffmpeg(probably go way of doing this ?) , hardware acceleration is very common nowadays , could you add those examples ?

Thanks

asticode commented 1 year ago

Could you link to those C examples if they already exist?

Hardware acceleration would indeed be a nice addition 👍

c1ngular commented 1 year ago

@asticode i could not find a C example of Tee other than this one : https://ffmpeg.org/doxygen/2.8/tee_8c_source.html , seems outdated though.

caseybarker commented 1 year ago

Here's the hardware decoder example: https://github.com/FFmpeg/FFmpeg/blob/master/doc/examples/hw_decode.c

Looks like we'd need support some of the stuff in libavutil/hwcontext.h and also AVCodecHWConfig.

asticode commented 9 months ago

FYI an hardware decoding example is now available here 👍