Accelerated H.264 and HEVC video decoding with Cedrus - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4) +--- Forum: Linux on Pine A64(+) (https://forum.pine64.org/forumdisplay.php?fid=6) +--- Thread: Accelerated H.264 and HEVC video decoding with Cedrus (/showthread.php?tid=424) |
Accelerated H.264 and HEVC video decoding with Cedrus - longsleep - 03-12-2016 Starting with Kernel 3.10.65-2-pine64-longsleep-43 the media modules are included. This means one could use the hardware video engine on the SoC. So i felt why not try it - and surprisingly it worked . Pine64 decodes 1080p H.264 and HEVC just fine and smooth with Cedrus from linux-sunxi community. You can do it yourself following the Cedrus build instructions on http://linux-sunxi.org/Cedrus HEVC bbb-1920x1080-cfg02.mkv Code: MPlayer 1.2.1 (Debian), built with gcc-5.3.1 (C) 2000-2016 MPlayer Team H.264 big_buck_bunny_1080p_H264_AAC_25fps_7200K.MP4 Code: MPlayer 1.2.1 (Debian), built with gcc-5.3.1 (C) 2000-2016 MPlayer Team Pine64 SoC temperature is stable at around 70C while decoding HEVC 1080p (without a heat sink, no enclosure). For easy mplayer launches with the correct parameters feel free to use https://github.com/longsleep/build-pine64-image/blob/master/simpleimage/platform-scripts/mplayer-play.sh I will not support this overly much, but it confirms that the BSP Kernel has everything which is needed to use the media decoder in the Pine64. Cheers Simon RE: Accellerated H.264 and HEVC video decoding with Cedrus - Ghost - 03-12-2016 This is a development that may please a lot of people, thank you for your efforts. RE: Accellerated H.264 and HEVC video decoding with Cedrus - ssvb - 03-12-2016 (03-12-2016, 01:27 PM)longsleep Wrote: Starting with Kernel 3.10.65-2-pine64-longsleep-43 the media modules are included. This means one could use the hardware video engine on the SoC. So i felt why not try it - and surprisingly it worked .Yes, because Jens Kuske (jemk) has done the job, required for supporting Allwinner A64 - https://github.com/linux-sunxi/libvdpau-sunxi/commit/cba127cf8457a7e4a2e02832f0b653e85f2c97c7 And it reused a lot of the earlier Allwinner H3 related code, that's why the Allwinner A64 patch is so small. RE: Accellerated H.264 and HEVC video decoding with Cedrus - Andrew2 - 03-12-2016 (03-12-2016, 01:27 PM)longsleep Wrote: Pine64 SoC temperature is stable at around 70C while decoding HEVC 1080p. You should add that your Pine64+ is not even wearing a heatsink If you would spend the 50 Cent for an el cheapo heatsink then the temperature would be below 60°C already. BTW: Using VDPAU you can then also use VLC (2.2.0 or above, no support for HEVC currently) or mpv to watch video HW accelerated (also in a desktop environment). RE: Accellerated H.264 and HEVC video decoding with Cedrus - longsleep - 03-12-2016 (03-12-2016, 02:00 PM)Andrew2 Wrote: You should add that your Pine64+ is not even wearing a heatsink Done. I also forgot to mention that this temperature was HEVC 1080p@60FPS. Decoding spreed-1080p.mkv which is HEVC 1080p@29.97FPS is 55-60C around 65C (again without heat-sink). (03-12-2016, 02:00 PM)Andrew2 Wrote: BTW: Using VDPAU you can then also use VLC (2.2.0 or above, no support for HEVC currently) or mpv to watch video HW accelerated (also in a desktop environment). I tried VLC (from Ubuntu Xenial repository) and it does freeze with H.264 after a couple of seconds - so for now mplayer it is. RE: Accellerated H.264 and HEVC video decoding with Cedrus - Andrew2 - 03-12-2016 (03-12-2016, 03:33 PM)longsleep Wrote: I tried VLC (from Ubuntu Xenial repository) and it does freeze with H.264 after a couple of seconds - so for now mplayer it is. In Armbian we include an own mpv package since a few days: Code: tk@bananapi:~$ mpv --version I just tried it out with a desktop/GUI build for the old slow dual core A20, connected an USB disk that was lying around, double clicked a huge .mp4 and to my surprise even this 1080p/H.264 file was played absolutely smoothly on this old board. I will try to build a .deb for Pine64 the next days and post a link. RE: Accellerated H.264 and HEVC video decoding with Cedrus - tllim - 03-12-2016 (03-12-2016, 01:58 PM)ssvb Wrote:(03-12-2016, 01:27 PM)longsleep Wrote: Starting with Kernel 3.10.65-2-pine64-longsleep-43 the media modules are included. This means one could use the hardware video engine on the SoC. So i felt why not try it - and surprisingly it worked .Yes, because Jens Kuske (jemk) has done the job, required for supporting Allwinner A64 - https://github.com/linux-sunxi/libvdpau-sunxi/commit/cba127cf8457a7e4a2e02832f0b653e85f2c97c7 Thanks to jemk and longsleep. ... TL Lim RE: Accelerated H.264 and HEVC video decoding with Cedrus - vedranius - 04-11-2016 Hi, I'm really a n00b with this stuff, but I need to run RTMP stream smoothly on Pine64+ 2GB Any suggestions how can I do this? I've tried with mplayer, mpv, cvlc, and all of them are really slow, dropping frames and such. I suppose any of them isn't HW accelerated? Thanks! EDIT: And I've tried to install vdpau, pixman and all dependencies. And every time I get this error when trying to make and make install "libvdpau-sunxi": Code: fatal error:"pixman.h: No such file or directory" Any idea what's wrong? Thanks! RE: Accelerated H.264 and HEVC video decoding with Cedrus - longsleep - 04-11-2016 I am probably stating the obvious but you are missing 'pixman.h' in the include path. RE: Accelerated H.264 and HEVC video decoding with Cedrus - vedranius - 04-11-2016 (04-11-2016, 01:38 PM)longsleep Wrote: I am probably stating the obvious but you are missing 'pixman.h' in the include path. Ye, kinda solved that. But now when I try to play I get that this is missing: libvdpau_nvidia.so |