login|Register
Forum > Device drivers(GPU&VPU)
Post|
看77552|回71|Favorite
Rangarid 看全部
2015-11-17 20:10:07
Edited by magicse at 2015-11-26 15:21

As there already is a thread about the GPU which successfully managed to get GPU drivers to work with the Allwinner H3 boards i now need help in getting video acceleration to work. There are no official drivers for linux, that work with the H3, but there seems to be an Android driver, that works. Here i read, that it is possible to use the Android drivers on Linux with libhybris:
http://linux-sunxi.org/CedarX/libve

Did anyone of you try it yet? Or are there other ways to get video acceleration to work? H264 in the beginning would be sufficiant already, although i want to have h265 support later as well...

fritz 看全部
2015-12-8 02:27:04
Edited by fritz at 2015-12-7 19:37

@jacer
Please don't use words like:will upload soon, it will be released in three weeks, you need to wait, we are debugging mali driver........,
This words are reserved and can only be used by @steven and some others mod's here!

When you want share something, ulpload it and that's it. Don't make "big" announcements!
My shared google-drive folder with compiled mpv  debian-package:
My shared H3 folder

install it with:

code:

  1. sudo dpkg -i mpv_0.13.0_armhf.deb

PS: if you can try first to build it yourself at least you learn something!

fritz 看全部
2015-12-6 06:01:04

h3-dev is now merged in master + add mpv

Edited by fritz at 2015-12-6 15:52

OK, here is the corrected How-To on a Lubuntu 14.04 (I don't have other debian based images and I don't want download others):
First you don't need mali for this!!!

install some packages:

code:

  1. sudo apt-get install build-essential pkg-config git libx11-dev

Then libvdpau (0.7.1)is to old on 14.04, you need newer. the simplest is to install it from packages:

code:

  1. wget http://ftp.de.debian.org/debian/pool/main/libv/libvdpau/libvdpau1_1.1.1-3_armhf.deb
  2. wget http://ftp.de.debian.org/debian/pool/main/libv/libvdpau/libvdpau-dev_1.1.1-3_armhf.deb
  3. wget http://ftp.de.debian.org/debian/pool/main/v/vdpauinfo/vdpauinfo_1.0-1+b1_armhf.deb

install packages with:

code:

  1. sudo dpkg -i libvdpau1_1.1.1-3_armhf.deb
  2. sudo dpkg -i libvdpau-dev_1.1.1-3_armhf.deb
  3. sudo dpkg -i vdpauinfo_1.0-1+b1_armhf.deb

Now compile and install libvdpau-sunxi:

code:

  1. git clone https://github.com/linux-sunxi/libvdpau-sunxi.git
  2. cd libvdpau-sunxi
  3. make
  4. make install

Set permissions for disp/ion/cedar devices:

sudo vi /etc/udev/rules.d/50-disp.rules

code:

  1. KERNEL=="disp", MODE="0660", GROUP="video"

sudo vi /etc/udev/rules.d/50-ion.rules

code:

  1. KERNEL=="ion", MODE="0660", GROUP="video"

sudo vi /etc/udev/rules.d/50-cedar.rules

code:

  1. KERNEL=="cedar_dev", MODE="0660", GROUP="video"

Then check if orangepi user is in the group "video"
if not add it. (on lubuntu it was not)

code:

  1. sudo usermod -a -G video orangepi

REBOOT

open a terminal and type:
vdpauinfo

It should display something like this:

code:

  1. orangepi@orangepi:~$ vdpauinfo
  2. display: localhost:10.0   screen: 0
  3. Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
  4. Error creating VDPAU device: 1

Then export libvdpau-sunxi as VDPAU_DRIVER:

code:

  1. orangepi@orangepi:~$ export VDPAU_DRIVER=sunxi

Retype vdpauinfo and now if all is correct you should see something like this:
http://pastebin.com/4zBxArGF

Now you are ready to play some videos with mplayer or mpv:

code:

  1. mplayer -fs -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau, test.mkv
  2. mpv --vo=vdpau --hwdec=vdpau --hwdec-codecs=all test.mkv

Wit the "stock" mplayer you can use this HW-accelerated codecs:

code:

  1. ffmpeg12vdpau ffmpeg    working   FFmpeg MPEG-1/2 (VDPAU)  [mpegvideo_vdpau]
  2. ffwmv3vdpau ffmpeg    problems  FFmpeg WMV3/WMV9 (VDPAU)  [wmv3_vdpau]
  3. ffvc1vdpau  ffmpeg    problems  FFmpeg WVC1 (VDPAU)  [vc1_vdpau]
  4. ffh264vdpau ffmpeg    working   FFmpeg H.264 (VDPAU)  [h264_vdpau]
  5. ffodivxvdpau ffmpeg    working   FFmpeg MPEG-4,DIVX-4/5 (VDPAU)  [mpeg4_vdpau]

If you want to play HEVC/H.265 files you need to compile mplayer or mpv from source.
With a compiled mplayer 1.2 from source you can use this HW-accelerated codecs:

code:

  1. ffmpeg12vdpau ffmpeg    working   FFmpeg MPEG-1/2 (VDPAU)  [mpegvideo]
  2. ffmpeg12vdpauold ffmpeg    working   FFmpeg MPEG-1/2 (VDPAU)  [mpegvideo_vdpau]
  3. ffwmv3vdpau ffmpeg    problems  FFmpeg WMV3/WMV9 (VDPAU)  [wmv3]
  4. ffwmv3vdpauold ffmpeg    problems  FFmpeg WMV3/WMV9 (VDPAU)  [wmv3_vdpau]
  5. ffvc1vdpau  ffmpeg    problems  FFmpeg WVC1 (VDPAU)  [vc1]
  6. ffvc1vdpauold ffmpeg    problems  FFmpeg WVC1 (VDPAU)  [vc1_vdpau]
  7. ffhevcvdpau ffmpeg    working   FFmpeg HEVC / H.265 (VDPAU)  [hevc]
  8. ffh264vdpau ffmpeg    working   FFmpeg H.264 (VDPAU)  [h264]
  9. ffh264vdpauold ffmpeg    working   FFmpeg H.264 (VDPAU)  [h264_vdpau]
  10. ffodivxvdpau ffmpeg    working   FFmpeg MPEG-4,DIVX-4/5 (VDPAU)  [mpeg4]
  11. ffodivxvdpauold ffmpeg    working   FFmpeg MPEG-4,DIVX-4/5 (VDPAU)  [mpeg4_vdpau]

"New" commandline with new mplayer:

code:

  1. mplayer -fs -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau,ffhevcvdpau, test.mkv
If you need to compile mplayer or mpv chose mpv it works better!
https://github.com/mpv-player/mpv-build#instructions-for-debian-and-ubuntu
This will build a debian-package mpv_0.13.0_armhf.deb  

That's it
jsa 看全部
2016-9-21 21:18:30

quote:

@lex replied at 2016-1-15 07:33
@Tokka,
I tried your conf without success, no hdmi sound output.
Since this has nothing to do with ...

Probably too late for you, but I had the same problem with no sound on HDMI, and solved it by adding

code:

  1. ao=alsa:device=[hw:1,0]
to ~/.config/mpv/mpv.conf
melanrz 看全部
2015-11-18 02:41:16
Outdated driver,we debugging new dev libs from allwinner,post results soon.
fritz 看全部
2015-11-18 03:25:19
Where are this new dev libs???????
melanrz 看全部
2015-11-18 03:55:27

quote:

fritz replied at 2015-11-18 03:25
Where are this new dev libs???????

on my system,im developing kind of player to play videos,coming soon
fritz 看全部
2015-11-18 04:01:49
can you not share this libs?
are this libs from steven?
1234.. 15NextPage

OrangePi En

Powered by Discuz! X3.4

homepage|Simple edition|Touch edition|PC