Debian Pine64 h264/5 Video under vlc
#1
Hello comunity,

I have a rock64-4G under Debian stretch that I would like to use it as a normal computer.
The only problem that I find is the slow play of the >=h264 videos (through VLC).

I've seen how other smaller boards like cubbieboard 2 handle these videos from debian without problem, so I guess in rock64 it should work better.

I think the problem ist in the acceleration driver for the mali GPU, which I think the board has.

It seems that the sources are here:

https://github.com/rockchip-linux/libmal...hip/debian
or here
https://github.com/rock64-linux/libmali/...hip/debian

But I have not idea how to procced... how compile/install

Someone so kind to help me?

Thanks in advance. Regards everyone

Thanks in advance.
  Reply
#2
(01-14-2018, 12:11 PM)ozcy Wrote: Hello comunity,

I have a rock64-4G under Debian stretch that I would like to use it as a normal computer.
The only problem that I find is the slow play of the >=h264 videos (through VLC).

I've seen how other smaller boards like cubbieboard 2 handle these videos from debian without problem, so I guess in rock64 it should work better.

I think the problem ist in the acceleration driver for the mali GPU, which I think the board has.

It seems that the sources are here:

https://github.com/rockchip-linux/libmal...hip/debian
or here
https://github.com/rock64-linux/libmali/...hip/debian

But I have not idea how to procced... how compile/install

Someone so kind to help me?

Thanks in advance. Regards everyone

Thanks in advance.

The video playback using VPU for acceleration, not GPU.
  Reply
#3
(01-15-2018, 11:15 PM)tllim Wrote:
(01-14-2018, 12:11 PM)ozcy Wrote: ...

The video playback using VPU for acceleration, not GPU.

Thank you for the hint tllim... so the right question is then, How I do to enable the VPU or VDPAU in VLC or smplayer? The first program show no screen, the second restart the xserver

Thanks in advance.
  Reply
#4
(01-16-2018, 05:01 PM)ozcy Wrote:
(01-15-2018, 11:15 PM)tllim Wrote:
(01-14-2018, 12:11 PM)ozcy Wrote: ...

The video playback using VPU for acceleration, not GPU.

Thank you for the hint tllim... so the right question is then, How I do to enable the VPU or VDPAU in VLC or smplayer? The first program show no screen, the second restart the xserver

Thanks in advance.

Here is the info getting from http://linux-sunxi.org/Cedrus/libvdpau-sunxi:

Playing video
With everything setup properly, it should now be possible to playback hardware accelerated media!
The best test file would be one of the well known sample media's. The big buck bunny is an often used one. http://samplemedia.linaro.org/H264/big_b..._7200K.MP4
Depending if you use mpv or mplayer2, the following options are required. For mplayer2:
mplayer -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau, [filename]
For mpv:
mpv --vo=vdpau --hwdec=vdpau --hwdec-codecs=all [filename]
Note: There have been reports that some mplayer versions in certain repositories are not compiled with vdpau support.
Now you can also try to use other files, but note it has to be mpeg1, mpeg2 or h264 encoded!
  Reply
#5
Hello:
rock 64 4 GB RAM
Debian Stretch Minimal Community Build Image [microSD Boot] by ayufan
XFCE desktop

This does not work for me.
What can I be doing wrong?

$ mpv --vo=vdpau --hwdec=vdpau --hwdec-codecs=all big_buck_bunny_1080p_H264_AAC_25fps_7200K.MP4
Playing: big_buck_bunny_1080p_H264_AAC_25fps_7200K.MP4
(+) Video --vid=1 (*) (h264)
(+) Audio --aid=1 --alang=und (*) (aac)
File tags:
Artist: created with SUPER©.v2011.bld.49
Comment: 09:51:32
Title: big_buck_bunny_1080p_surround.avi_006.AVI.MP4
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[vo/vdpau] Error when calling vdp_device_create_x11: 1
Error opening/initializing the selected video_out (--vo) device.
Video: no video


Exiting... (Errors when loading file)


Thanks for help.
  Reply
#6
Hello:
Rock64 4GB
Debian minimal installed


dani@rock64:~/libvdpau-sunxi$ make
make: pkg-config: Orde non atopada
make: pkg-config: Orde non atopada
cc -MD -MP -MQ device.o -fpic -fvisibility=hidden -Wall -O3  -c device.c -o device.o
In file included from device.c:24:0:
vdpau_private.h:33:20: fatal error: pixman.h: There is no such file or directory
 #include "pixman.h"
                    ^
compilation terminated.
Makefile:47: recipe for target 'device.o' failed
make: *** [device.o] Error 1
dani@rock64:~/libvdpau-sunxi$ ls /usr/local/include/pixman-1/
pixman.h  pixman-version.h


I installed all prerequisites
    git (yum install git | apt-get install git | emerge git)
    gcc (yum group-install "Development Tools" | apt-get install build-essential)
    libvdpau-dev >= 1.1 (yum install libvdpau-dev | apt-get install libvdpau-dev | emerge libvdpau) or build from source
    libcedrus (https://github.com/linux-sunxi/libcedrus)
    pixman (http://www.pixman.org)

Any idea that error not found file:
#include "pixman.h"
?



Thanks.

PD. I thought it would be interesting to put an image (ayufan) of debian with this already installed.
  Reply
#7
(01-15-2018, 11:15 PM)tllim Wrote: The video playback using VPU for acceleration, not GPU.

Rock64 has no any VPU, to my knowledge. It has Mali 450MP2 GPU.

Please consult this document for video playback: https://github.com/ayufan-rock64/linux-b...layback.md
Linux rock64 4.4.190-1233-rockchip-ayufan-gd3f1be0ed310 #1 SMP Wed Aug 28 08:59:34 UTC 2019 aarch64 GNU/Linux
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  lost eth0 on my pine64 psarazin 7 649 03-22-2021, 05:55 PM
Last Post: kuleszdl
  Debian installer on Pine A64+ but no hdmi mrwick 1 1,836 07-28-2020, 01:49 PM
Last Post: kuleszdl
  OMV/debian/systemd: how to start the network kittyland 0 1,001 12-10-2019, 05:29 PM
Last Post: kittyland
  Debian 10 (Buster) in deep freeze - includes support for Pine64+ amp 5 3,756 07-22-2019, 09:29 PM
Last Post: amp
  Pine64 Debian Stretch/mainline [4.14.7] CallMeFoxie 50 52,459 07-22-2019, 09:24 PM
Last Post: amp
  Installing Debian with the Debian Installer (Buster RC1) amp 1 1,859 06-28-2019, 12:35 PM
Last Post: Kaarme42
  Script to build pure Debian images for Pine64+ amp 1 1,370 05-01-2019, 09:09 PM
Last Post: tllim
  Debian (Stretch) for Pine64-LTS wgray 2 2,042 04-04-2019, 09:54 PM
Last Post: wgray
  Is there just one fuctioning Debian Desktop image? KNERD 7 5,365 03-29-2019, 02:00 AM
Last Post: desai_amogh
  Announcement: OMV (OpenMediaVault) for PINE64 DuDu371 11 14,326 12-07-2018, 09:52 PM
Last Post: flinkazoid

Forum Jump:


Users browsing this thread: 1 Guest(s)