Jump to content

Recommended Posts

Posted

Hello,

 

I just intalled the new Armbian 5.10 on my orange pi mini. I tried to play a video, but after i start it there was only black screen and audio. If i changed the vo to X11 it's worked but with vdpau it's not. Can someone help me how to make it work?

 

Thanks,

Sp0T

Posted (edited)

For some reason im not allowed to attach it so ill do it in the old way sry

 

  Reveal hidden contents

 

Regards,

Sp0T

Edited by zador.blood.stained
Added spoiler tags
Posted

Hello,

apparently you are logged in as root. you must create a Standard user.
You can try to connect via ssh: ssh root@ip. password: 1234
normally it should launch an account creation process.

You must replace ip by ip of our machine or by name.

 

On allwinner CPU only vdpau output is able to play video.

 

Your user must be in video group.

Posted

Hello,

 

I created an orangepi user. I also checked all files which need to play video and i have all in the video group.

 

But i still get black screen only

orangepi@orange:~$ id orangepi
uid=1000(orangepi) gid=1000(orangepi) groups=1000(orangepi),20(dialout),27(sudo),29(audio),44(video),46(plugdev),108(netdev)
orangepi@orange:~$ mpv --vo=vdpau --hwdec=vdpau --hwdec-codecs=all --loop=yes /media/orangepi/Mediadisk/movie/sample/sample.mkv
Playing: /media/orangepi/Mediadisk/movie/sample/sample.mkv
 (+) Video --vid=1 (*) (h264)
 (+) Audio --aid=1 --alang=hun (*) (ac3)
 (+) Subs  --sid=1 --slang=hun (*) (f) (subrip)
     Subs  --sid=2 --slang=hun (subrip)
[VDPAU SUNXI] VE version 0x1623 opened
[VDPAU SUNXI] OSD disabled!
AO: [alsa] 48000Hz stereo 2ch s32
Using hardware decoding (vdpau).
VO: [vdpau] 720x302 vdpau
[VDPAU SUNXI] Presentation time not supported
AV: 00:01:04 / 00:01:04 (99%) A-V:  0.000 Cache:  0s+0KB

Regards,

Sp0T

Posted

Your user must be part of the group video normally is the case but it's worth checking.

This command will list the groups to which the user belongs :

groups orangepi

you can post your kernel command line with:

cat /proc/cmdline
Posted

Hello,

 

orangepi is part of the video groups. The kernel commands is below.

orangepi@orange:~$ groups orangepi
orangepi : orangepi dialout sudo audio video plugdev netdev

orangepi@orange:~$ cat /proc/cmdline
console=tty1 root=/dev/mmcblk0p1 rootwait rootfstype=ext4 cgroup_enable=memory swapaccount=1 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 enforcing=0 loglevel=1

Regards,

Sp0T

Posted

Hi,

 

The results seem good. But you can test with 1920x1080p24 because video is rarely in 60 fps and blueray are in 24 or 25 fps.

 

You can test with mplayer which also support vdpau.

Posted

I found a wierd error after i try to change resulution. Both root and orangepi user give this error.

root@orange:/home/orangepi# a10disp changehdmimodeforce 8
sunxi disp kernel module version is 1.0
Cannot change HDMI mode because HDMI is not enabled.

Regards,

Sp0T

Posted

Hi,

 

You can change your screen resolution by the kernel command line.but it surprised me that the problem comes from this.

 

have you tested another video player?

Posted

Hello,

 

I just tested with mplayer2 and i think the problem is the codec, which cannot be loaded.

Playing /media/orangepi/Mediadisk/movie/sample/sample.mkv.
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: audio (A_AC3), -aid 0, -alang hun
[mkv] Track ID 3: subtitles (S_TEXT/UTF8), -sid 0, -slang hun
[mkv] Track ID 4: subtitles (S_TEXT/UTF8), -sid 1, -slang hun
[mkv] Will play video track 1.
Detected file format: Matroska
Load subtitles in /media/orangepi/Mediadisk/movie/sample/
[VDPAU SUNXI] VE version 0x1623 opened
[VDPAU SUNXI] OSD disabled!
Forced video codec: ffmpeg12vdpau
Forced video codec: ffh264vdpau
Cannot find codec 'h264_vdpau' in libavcodec...
Video decoder init failed for codecs.conf entry "ffh264vdpau".
Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [libavcodec]
Selected audio codec: ATSC A/52A (AC-3) [libavcodec]
AUDIO: 48000 Hz, 2 ch, floatle, 448.0 kbit/14.58% (ratio: 56000->384000)
AO: [pulse] Init failed: Connection refused
[AO_ALSA] Format floatle is not supported by hardware, trying default.
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
[AO_ALSA] Unable to find simple control 'Master',0.
Starting playback...
VIDEO:  720x302  23.976 fps    0.0 kbps ( 0.0 kB/s)
VO: [vdpau] 720x302 => 720x302 Planar YV12 
[vdpau] Assuming user-specified display refresh rate of 24.000 Hz.
[VDPAU SUNXI] Presentation time not supported
A:  10.1 V:  10.1 A-V:  0.000 ct: -0.000   0/  0  9% 28%  4.4% 13 0 

Regards,

Sp0T

Posted

Do you have a ffmpeg version with vdpau support compiled in? And stay with mpv, mplayer2 is deprecated iirc.

Regards

rellla

Posted

I think yes

ffmpeg library versions:
   libavutil       55.17.103
   libavcodec      57.24.102
   libavformat     57.25.100
   libswscale      4.0.100
   libavfilter     6.31.100
   libswresample   2.0.101
ffmpeg version: n3.0

Regards,

Sp0T

Posted
  On 6/10/2016 at 4:35 PM, Sp0T said:

Hello,

 

I just tested with mplayer2 and i think the problem is the codec, which cannot be loaded.

Cannot find codec 'h264_vdpau' in libavcodec... 

No, this is not the case. mplayer2 always show this h264 error. If you want it to work correctly, build mplayer from source. And i suggest you to to the same with mpv, ffmpeg and maybe libvdpau-sunxi. I can show you how i do it, even if it's a little noob way, but it works for me. But of course @rellla could be of more help here.

Posted

Hello,

 

@rellla:

I installed ffmpeg codecs and the result is the same,

 

@RagnerBG:

I think i'll install my whole system from the begining and use the non desktop version, so I'll know what's are installed and what's not.

 

If i stuck somewhere I'll ask help :).

 

Regards,

Sp0T

Posted

What does ffmpeg -codecs and ffmpeg -decoders say? You have to compile it yourself, because ready built arm ffmpeg packages normally don't have vdpau support because of arm.

Posted

 

  Reveal hidden contents

 

Posted

Hello,

 

I have some time so i installed a clean image with MATE desktop. What is the correct order for HW acc. video?

1, libvpau --> ffmpeg --> mpv

2, libvpau --> mpv --> ffmpeg

3, other

 

Thanks,

Sp0T

Posted
  On 6/21/2016 at 9:07 PM, Sp0T said:

1, libvpau --> ffmpeg --> mpv

I am using this order, actually - libvpau --> some codecs --> ffmpeg --> mpv. But bear in mind that mpv have it's own build in ffmpeg, if you build it from source and i am not sure it using external ffmpeg at all. You can pass build options for it in ffmpeg_options file, in mpv-build directory. For example:

echo --enable-vdpau >> ffmpeg_options
Posted

Could you give me a correct way or link how to install libvpau propelry?

 

Thanks,

Sp0T

Posted

Hi Sp0T,

check this out: http://linux-sunxi.org/User:Rellla/Armbian

 

It's necessary, that you don't install ffmpeg, libvdpau or mpv from the repositories (even not deb-multimedia.org) because the arm packages do not have vdpau support compiled in. You have to build them yourself. All packages should find the available dependencies themselves. But you can check config.log after you did ./configure what flags (espec. vdpau) are enabled.

 

Regards

rellla

Posted

Thanks rellla.

Just one more question. At this part:

  • "configure kernel with CMA enabled and sized to 192"

 

Do you must have to hardcode CMA into kernel or does "sunxi_ve_mem_reserve=192" is enough in the boot.src

 

Thanks,

Sp0T

Posted

If CONFIG_CMA is not set, you have to set sunxi_ve_mem_reserve. 150+ would be a good value. In Armbian default it is not set.

If CONFIG_CMA is set, sunxi_ve_mem_reserve= is ignored. By default, the CMA memory is hardcoded to 80MB.

 

So, if no patch activates CMA, you don't have to care about that, but just set sunxi_ve_mem_reserve. In this case, you also don't need libump and must not compile libcedrus with USE_UMP=1.

To let Mali and the VE use the same memory area for zerocopy features in the future (for the upcoming vdpau_gles_interop feature e.g.) you need to use UMP with CMA memory as backend. And then you have to increase the hardcoded 80MB depending on how much surfaces etc. your app uses.

 

I hope, this was kind of understandable ;)

 

Regards

rellla

Posted

I tried to get "https://github.com/rellla/lib/tree/ump " which not exist so i git cloned the "for_upstream brach from your github. Than i try to build a kernel for my Orange PI Mini A20 and the following error popped up:

[error] ERROR in function source [main.sh:113]
[error] Board configuration does not define valid kernel config

With orange pi A20 it's working.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines