m1k1o / go-transcode

On-demand transcoding origin server for live inputs and static files in Go using ffmpeg. Also with NVIDIA GPU hardware acceleration.
Apache License 2.0
208 stars 38 forks source link

Add hardware acceleration support for static files #40

Open strig opened 1 year ago

strig commented 1 year ago

I'm using --device=/dev/dri:/dev/dri in my compose file but it doesn't seem to make any difference in CPU usage vs leaving it out. Am I missing some other config? Thanks

m1k1o commented 1 year ago

No, currently not implemented. Only for live transcoding. But should not be a big change to add it there.

strig commented 1 year ago

Gotcha, thanks. Might take a crack at it myself but don't know much about go or ffmpeg

metal450 commented 2 months ago

Would also love to see this, for hardware transcoding of a static library hosted on Synology (https://timothybasanov.com/2018/12/08/hardware-accelerated-h264-encoding-synology-nas.html)