pion / mediadevices

Go implementation of the MediaDevices API.
https://pion.ly/
MIT License
521 stars 120 forks source link

Vaapi not working with webrtc #438

Open EmrysMyrddin opened 1 year ago

EmrysMyrddin commented 1 year ago

Your environment.

What did you do?

Tried to use the VAAPI binding. Seems like broken, but i don't have any clue on how to fix it.

Here are the logs when trying to publish the track with webrtc (using VP8, but it's not working either with VP9) : 2022/08/16 14:03:12 "msg"="could not set remote description" "error"="video/VP8: video/VP8: libva entrypoint not found\n\nvideo/H264: video/VP8: %!s(<nil>)\n\nvideo/H264: video/VP8: %!s(<nil>)\n\nvideo/H264: video/VP8: %!s(<nil>)"

ZeoWorks commented 1 year ago

VAAPI not working for me either

at-wat commented 1 year ago

libva entrypoint not found usually means the video card doesn't support specified profile. You can list supported profiles by vainfo command and VAEntrypointEncSlice for desired codec is needed.

ZeoWorks commented 1 year ago

libva entrypoint not found usually means the video card doesn't support specified profile. You can list supported profiles by vainfo command and VAEntrypointEncSlice for desired codec is needed.

Hi, VP9 is supported on my machine. However VAAPI is simply not working on webrtc, could this be due to it saying 'VAEntrypointVLD'? Screenshot from 2022-10-13 23-01-04

at-wat commented 1 year ago

VAEntrypointVLD is for decoding. VAEntrypointEncSlice is required for encoding.

ZeoWorks commented 1 year ago

VAEntrypointVLD is for decoding. VAEntrypointEncSlice is required for encoding.

That's what I thought also. I'm really surprised the RX 6700 XT does NOT support VPX hardware encoding. It's a fairly new & expensive card.

Will H264/265 encoding be supported in the future with VAAPI?

at-wat commented 1 year ago

Will H264/265 encoding be supported in the future with VAAPI?

VAAPI library supports H264/265 and your hardware supports both. (EncSlice for H264 and HEVC) Need to add wrappers to this package.

ZeoWorks commented 1 year ago

Will H264/265 encoding be supported in the future with VAAPI?

VAAPI library supports H264/265 and your hardware supports both. (EncSlice for H264 and HEVC) Need to add wrappers to this package.

Any eta when H264/265 vaapi support?

at-wat commented 1 year ago

Any eta when H264/265 vaapi support?

No, as this is an open source project, contributions are always welcomed.