Jump to content

How to use HW video codec?


ning

Recommended Posts

something found in amlogic maillist:

 

Quote

With maxime's patch, we tested it using ffmpeg master, mpv master with drm-prime rendering. We have a buildroot repo with the changed needed : https://gitlab.com/baylibre/amlogic/atv/buildroot-yukawa

 

URL: http://lists.infradead.org/pipermail/linux-amlogic/2020-February/015510.html

 

mainline HW decoder for Amlogic is almost there.

Link to comment
Share on other sites

@ning

Glad to hear that .  Could you please tell me how to apply the codec to current mainline armbian OS ? I installed the latest armbian ( Armbian_20.02.0  with eoan desktop ) at my s905x tv box  and I would like to try it .  Thankyou !

Link to comment
Share on other sites

Hi, i'm also interested on this topic. I'm recently trying to figure out how to use the meson_vdec module. When enabled, it report new v4l2 device (as it should), but when trying to use mpv with --hwdec=auto (or hwdec=yes) with a hvec video (v4l2-ctl report that the meson_vdec have a hevc (h.265) decoder) i got a lot of "[ffmpeg/video] hevc_v4l2m2m: output  POLLERR" and then a segmentation fault.

To be clear, i'm not expecting that it works out of the box, even when loading the module, a warning appear saying that it is in staging phase and not means for daily use. I have not applied any patch, but i'm using debian sid repository.

If someone make the meson_vdec working (that, if i'm not wrong, it is a v4l2 driver), there is a chance that it is possible to get also a VA API driver using libva-v4l2-request: https://github.com/bootlin/libva-v4l2-request.

From what i have understood correctly, this library provide a VA API interface to a v4l2 driver, making it also compatible with VA API. Probably it will not support all the features, but... it is basically a free driver implementation.

Link to comment
Share on other sites

On 4/28/2020 at 1:16 AM, UniformBuffer said:

Hi, i'm also interested on this topic. I'm recently trying to figure out how to use the meson_vdec module. When enabled, it report new v4l2 device (as it should), but when trying to use mpv with --hwdec=auto (or hwdec=yes) with a hvec video (v4l2-ctl report that the meson_vdec have a hevc (h.265) decoder) i got a lot of "[ffmpeg/video] hevc_v4l2m2m: output  POLLERR" and then a segmentation fault.

To be clear, i'm not expecting that it works out of the box, even when loading the module, a warning appear saying that it is in staging phase and not means for daily use. I have not applied any patch, but i'm using debian sid repository.

If someone make the meson_vdec working (that, if i'm not wrong, it is a v4l2 driver), there is a chance that it is possible to get also a VA API driver using libva-v4l2-request: https://github.com/bootlin/libva-v4l2-request.

From what i have understood correctly, this library provide a VA API interface to a v4l2 driver, making it also compatible with VA API. Probably it will not support all the features, but... it is basically a free driver implementation.

@UniformBuffer

Did you find any solution for this issue?

I installed debian Linux odroidc2 5.4.35-meson64 and like you when I use mpv with --hwdec=auto or yes I'm getting endless [ffmpeg/video] hevc_v4l2m2m: output  POLLERR.

I didn 't patch anything only got the latest mesa so I could use lima for hardware acelleration. 

Now on video hardware decoding with meson vdec no luck

Thanks

Edited by dante6913
Link to comment
Share on other sites

24 minutes ago, dante6913 said:

@UniformBuffer

Did you find any solution for this issue?

I installed debian Linux odroidc2 5.4.35-meson64 and like you when I use mpv with --hwdec=auto or yes I'm getting endless [ffmpeg/video] hevc_v4l2m2m: output  POLLERR.

I didn 't patch anything only got the latest mesa so I could use lima for hardware acelleration. 

Now on video hardware decoding with meson vdec no luck

Thanks

Unfortunatly no, i'm also trying to get this working. I have looked on the internet, but i have found no result about this error. Honestly i don't know what is the cause. Probably there is something wrong on low level code and i'm not enough skilled on this to figure out what's the problem :(. I think we have to wait for some kernel update that generally bring some fixes.

Link to comment
Share on other sites

I have noticed that when i launch mpv with hardware decoding enable, dmesg gives me some errors. Maybe can be useful to figure out what's the problem:

Spoiler

[20730.099205] alloc_contig_range: 208 callbacks suppressed
[20730.099211] alloc_contig_range: [6c200, 6c300) PFNs busy
[20730.099351] alloc_contig_range: [6c300, 6c400) PFNs busy
[20730.100084] alloc_contig_range: [6c200, 6c300) PFNs busy
[20730.100221] alloc_contig_range: [6c300, 6c400) PFNs busy
[20730.100340] alloc_contig_range: [6ce00, 6cf00) PFNs busy
[20730.100467] alloc_contig_range: [6cf00, 6d000) PFNs busy
[20730.101182] alloc_contig_range: [6c200, 6c300) PFNs busy
[20730.101322] alloc_contig_range: [6c300, 6c400) PFNs busy
[20730.101442] alloc_contig_range: [6ce00, 6cf00) PFNs busy
[20730.101571] alloc_contig_range: [6cf00, 6d000) PFNs busy
[20730.222463] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20730.222477] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20730.285090] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20730.285103] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20730.345603] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20730.345615] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20730.406781] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20730.406793] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20730.467000] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20730.467012] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20730.531673] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20730.531683] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20730.593921] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20730.593934] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20730.657279] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20730.657291] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20730.731079] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20730.731090] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20730.793446] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20730.793457] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20730.859802] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20730.859814] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20730.926481] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20730.926493] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20730.988726] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20730.988738] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20731.051357] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20731.051369] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20731.113434] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20731.113446] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20731.177652] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20731.177664] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20731.240139] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20731.240152] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20731.302811] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20731.302823] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20731.365589] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20731.365600] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20731.428686] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20731.428698] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20731.490801] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20731.490813] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20731.552661] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20731.552674] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20731.615878] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20731.615947] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20731.683587] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20731.683601] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20731.748164] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20731.748177] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20731.812225] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20731.812238] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20731.874735] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20731.874747] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20731.936197] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20731.936209] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20731.999597] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20731.999609] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20732.063648] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20732.063660] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20732.126644] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20732.126656] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20732.190485] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20732.190495] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20732.253108] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20732.253120] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20732.321147] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20732.321159] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20732.388342] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20732.388355] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20732.450081] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20732.450092] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20732.512603] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20732.512616] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20732.576076] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20732.576089] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20732.637989] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20732.638001] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20732.701071] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20732.701082] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20732.766996] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20732.767008] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20732.830878] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20732.830889] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20732.892808] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20732.892821] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20732.954311] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20732.954323] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20733.024615] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20733.024627] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20733.122027] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20733.122075] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20733.224441] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20733.224453] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20733.298671] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20733.298682] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20733.363410] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20733.363423] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20733.427008] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20733.427020] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20733.491856] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20733.491869] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20733.559927] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20733.559939] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20733.622487] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20733.622499] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20733.686356] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20733.686367] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20733.754705] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20733.754716] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20733.819642] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20733.819653] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20733.884752] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20733.884764] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20733.947890] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20733.947901] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20734.010200] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20734.010213] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20734.072147] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20734.072159] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20734.135322] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20734.135334] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20734.204160] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20734.204172] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20734.267011] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20734.267023] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20734.337136] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20734.337148] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20734.400006] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20734.400018] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20734.469096] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20734.469108] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20734.532672] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20734.532683] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20734.594799] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20734.594811] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20734.658463] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20734.658475] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20734.724276] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20734.724288] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20734.788562] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20734.788574] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20734.852512] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20734.852525] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20734.916094] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20734.916106] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20734.980747] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20734.980759] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20735.049619] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20735.049631] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20735.102306] alloc_contig_range: 7462 callbacks suppressed
[20735.102312] alloc_contig_range: [73c00, 74c00) PFNs busy
[20735.102854] alloc_contig_range: [73d00, 74d00) PFNs busy
[20735.103391] alloc_contig_range: [73e00, 74e00) PFNs busy
[20735.103984] alloc_contig_range: [73f00, 74f00) PFNs busy
[20735.104540] alloc_contig_range: [74000, 75000) PFNs busy
[20735.105158] alloc_contig_range: [74100, 75100) PFNs busy
[20735.105769] alloc_contig_range: [74200, 75200) PFNs busy
[20735.110662] alloc_contig_range: [74300, 75300) PFNs busy
[20735.116422] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20735.116434] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20735.120026] alloc_contig_range: [6e300, 6f300) PFNs busy
[20735.120834] alloc_contig_range: [6e400, 6f400) PFNs busy
[20735.181022] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20735.181033] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20735.245401] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20735.245411] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20735.307502] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20735.307520] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20735.372087] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20735.372099] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20735.441144] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20735.441156] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20735.504057] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20735.504069] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20735.567664] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20735.567676] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20735.631339] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20735.631351] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20735.693208] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20735.693220] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20735.761147] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20735.761160] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20735.824463] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20735.824475] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20735.888390] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20735.888401] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20735.952735] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20735.952747] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20736.015925] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20736.015937] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20736.078087] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20736.078100] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20736.143191] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20736.143202] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20736.213571] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20736.213584] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20736.276796] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20736.276809] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20736.339004] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20736.339016] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20736.402567] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20736.402578] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20736.465756] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20736.465767] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20736.531150] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20736.531161] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20736.595235] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20736.595248] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20736.658294] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20736.658306] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20736.723338] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20736.723349] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20736.787910] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20736.787922] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20736.858352] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20736.858364] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20736.924339] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20736.924351] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20736.987709] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20736.987721] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20737.051079] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20737.051092] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20737.114260] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20737.114271] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20737.177929] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20737.177942] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20737.240844] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20737.240856] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20737.303774] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20737.303786] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20737.365349] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20737.365361] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20737.427327] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20737.427339] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20737.490727] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20737.490740] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20737.553846] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20737.553858] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20737.615000] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20737.615012] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20737.681313] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20737.681325] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20737.745771] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20737.745783] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20737.808954] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20737.808966] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20737.876137] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20737.876148] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20737.939754] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20737.939765] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20738.002930] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20738.002942] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20738.066087] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20738.066099] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20738.167496] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20738.167507] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20738.267945] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20738.267957] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin
[20738.354070] meson-vdec c8820000.video-codec: Direct firmware load for meson/vdec/gxl_hevc.bin failed with error -2
[20738.354082] meson-vdec c8820000.video-codec: Unable to request firmware meson/vdec/gxl_hevc.bin

Maybe each time the terminal report "POLLERR", the dmesg gives "Unable to request firmware meson/vdec/gxl_hevc.bin"?

 

From what i know the "PFNs busy" errors are related to wrong cma allocations.

Link to comment
Share on other sites

4 hours ago, xwfunny said:

 

Maybe you can download the missing file from here.

https://github.com/LibreELEC/meson-firmware/tree/master/meson

 

No, please just install armbian-firmware package. those firmwares are upstreamed to linux-firmware, which is built into armbian-firemware.

 

On 4/28/2020 at 8:16 AM, UniformBuffer said:

ere is a chance that it is possible to get also a VA API driver using libva-v4l2-request

 

meson-vdev is stateful video decode, no related to libva-v4l2-request.

 

recent mpv requres add opengl-pbo to config file.

Link to comment
Share on other sites

On 5/13/2020 at 8:11 AM, ning said:

meson-vdev is stateful video decode, no related to libva-v4l2-request.

 

recent mpv requres add opengl-pbo to config file.

oh, ok sorry, i'm not expert, i was just thinking about. I would like a lot to get hardware decoding, so i'm trying all possible ways :P

Link to comment
Share on other sites

On 5/13/2020 at 2:11 PM, ning said:

 

No, please just install armbian-firmware package. those firmwares are upstreamed to linux-firmware, which is built into armbian-firemware.

 

 

meson-vdev is stateful video decode, no related to libva-v4l2-request.

 

recent mpv requres add opengl-pbo to config file.

Could you please give us a detailed tutorial on how to use HW decode?

Link to comment
Share on other sites

On 5/13/2020 at 7:11 AM, ning said:

 

No, please just install armbian-firmware package. those firmwares are upstreamed to linux-firmware, which is built into armbian-firemware.

 

 

meson-vdev is stateful video decode, no related to libva-v4l2-request.

 

recent mpv requres add opengl-pbo to config file.

I tried mpv with 

 

vo=gpu

opengl-pbo

hwdec=auto

 

With Armbian_20.05.4_Arm-64_bullseye_current_5.7.0-rc5_desktop_20200514 but didn't have no luck video doesn't play. Can you please tell us, please, how to get hardware decoding?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines