aarch64-laptops / build

Build an Linux OS based image
237 stars 55 forks source link

VENUS decoders working! #49

Open bm16ton opened 4 years ago

bm16ton commented 4 years ago

Stanimir Varbanov sent me sum patches that get venus working for the sdm850. It requires the firmware from windows partition to be split and installed. directions and working kernel; https://github.com/bm16ton/yoga-c630-linux-kernel

RussianNeuroMancer commented 4 years ago

Did you tested it with libva-v4l2-request and Firefox VA-API support?

bm16ton commented 4 years ago

Actually I did compile libva_v42_request after finding it in a google search for sum easier way to play files..unfortunately it didn't work and it would show names for hardware I dont have making me think it's more hardware specific then it should be. Also found a pdf by the devs and they make it obvious it ain't great on anything but older (like h2) hardware..I did edit the pi-play and put it in my c630 folder..works ok but far from a decent solution. On other arm dev boards ie odroid xu4 etc they have forks of kodiak with hardware decode. I looked for a couple min but couldn't find any v4l2 m2m forks of kodi. I've seen patches etc for chromium-browser and m2m but they where for older builds...and I hate chromium ;) super glad u emailed, your the first non kernel dev (whome I've been harassing) to contact me. I've seen your username around, and it's always involved with some capable stuff.

On Mon, Jul 6, 2020, 6:00 AM RussianNeuroMancer notifications@github.com wrote:

Did you tested it with libva-v4l2-request https://github.com/bootlin/libva-v4l2-request and Firefox VA-API support https://mastransky.wordpress.com/2020/06/03/firefox-on-fedora-finally-gets-va-api-on-wayland/ ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aarch64-laptops/build/issues/49#issuecomment-654137952, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADAWMP22ZMNYAXUT3TXCJC3R2GOCXANCNFSM4OQEGDMQ .

bm16ton commented 4 years ago

So stanimir varbanov just emailed me with another patch to the venus dec/enc and he says he gonna send me sum sorta simple/ruff draft of hrm I think he said gstreamer plugin. I'll obviously post the patches in my kernel but I'll also post whatever he sends for gstreamer..if u would like I can send u an email when I get it.

On Mon, Jul 6, 2020, 8:16 AM benjamin maddocks bm16ton@gmail.com wrote:

Actually I did compile libva_v42_request after finding it in a google search for sum easier way to play files..unfortunately it didn't work and it would show names for hardware I dont have making me think it's more hardware specific then it should be. Also found a pdf by the devs and they make it obvious it ain't great on anything but older (like h2) hardware..I did edit the pi-play and put it in my c630 folder..works ok but far from a decent solution. On other arm dev boards ie odroid xu4 etc they have forks of kodiak with hardware decode. I looked for a couple min but couldn't find any v4l2 m2m forks of kodi. I've seen patches etc for chromium-browser and m2m but they where for older builds...and I hate chromium ;) super glad u emailed, your the first non kernel dev (whome I've been harassing) to contact me. I've seen your username around, and it's always involved with some capable stuff.

On Mon, Jul 6, 2020, 6:00 AM RussianNeuroMancer notifications@github.com wrote:

Did you tested it with libva-v4l2-request https://github.com/bootlin/libva-v4l2-request and Firefox VA-API support https://mastransky.wordpress.com/2020/06/03/firefox-on-fedora-finally-gets-va-api-on-wayland/ ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aarch64-laptops/build/issues/49#issuecomment-654137952, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADAWMP22ZMNYAXUT3TXCJC3R2GOCXANCNFSM4OQEGDMQ .

RussianNeuroMancer commented 4 years ago

if u would like I can send u an email when I get it.

Just comment this report, maybe someone else would like to try it :)

bm16ton commented 4 years ago

Actually the patch was to disable dmabuf but it wasnt needed just dont use GST_GL_PLATFORM=egl, when using gstreamer

On Mon, Jul 6, 2020, 10:10 AM RussianNeuroMancer notifications@github.com wrote:

if u would like I can send u an email when I get it.

Just comment this report, maybe someone else would like to try it :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aarch64-laptops/build/issues/49#issuecomment-654263162, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADAWMPYSUQAFBZPNKCP5OJLR2HLOHANCNFSM4OQEGDMQ .

RussianNeuroMancer commented 4 years ago

I can confirm that video decoding on Venus works with these two patches in mpv with -hwdec=v4l2m2m-copy option or mpv.conf with following content: hwdec=v4l2m2m-copy

Celluloid was able to use hardware decoder too, when it configured to use mpv.conf with hwdec=v4l2m2m-copy.

bm16ton commented 4 years ago

I just sent up the patch (so tiny but my heads crashing so it took me forever to figure out) to use normal sensor apps on c630 and a simple script so u know what devices everything is

On Tue, Jul 7, 2020, 3:21 AM RussianNeuroMancer notifications@github.com wrote:

I can confirm that video decoding on Venus works with these https://github.com/bm16ton/yoga-c630-linux-kernel/blob/master/C630/0001-firmware-qcom_scm-Add-memory-protect-virtual-address.patch two https://github.com/bm16ton/yoga-c630-linux-kernel/blob/master/C630/0002-venus-firmware-Set-virtual-address-ranges.patch patches in mpv with -hwdec=v4l2m2m-copy option or mpv.conf with following content: hwdec=v4l2m2m-copy

Celluloid was able to use hardware decoder too, when it configured to use mpv.conf with hwdec=v4l2m2m-copy.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aarch64-laptops/build/issues/49#issuecomment-654651575, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADAWMPYH7472DWNWRITNNYDR2LEHNANCNFSM4OQEGDMQ .