Magnets Posted November 21, 2017 Posted November 21, 2017 How do I get a desktop running on this (legacy)? It only outputs a shell on the video out Additionally, is the hw video decoder enabled? Armbian_5.30_Orangepizero_Ubuntu_xenial_default_3.4.113
Moklev Posted November 21, 2017 Posted November 21, 2017 Build a new (full) image with desktop enabled: https://github.com/armbian/build/blob/master/config/boards/orangepizero.conf BUILD_DESKTOP="yes" DESKTOP_TARGET="xenial:default,next"
Magnets Posted November 22, 2017 Author Posted November 22, 2017 Thanks. Desktop works but HW video decoding doesn't, I just get a black window - the same video works on my OpiPC. Does VDPAU support TV out/CVBS? Using: Armbian_5.35_Orangepizero_Debian_jessie_default_3.4.113_desktop
Moklev Posted November 23, 2017 Posted November 23, 2017 Cedrus hw enc/dec do not work for me (OPiZero). It would be useful in a new armbian release: i.e. hw mjpeg/h264 acceleration in ffmpeg.
Moklev Posted November 23, 2017 Posted November 23, 2017 1 hour ago, Igor said: https://github.com/armbian/build/issues/744 Thank you! I'll try with "extraargs=cma=96M".
Magnets Posted November 23, 2017 Author Posted November 23, 2017 I updated to head and recompiled and still have a black screen. Do I need to edit the kernel config? CONFIG_CMA_SIZE_MBYTES is set to 16 edit: appears not, this is from dmesg cma: CMA: reserved 128 MiB at 58000000 Kernal Command Line: ... cma=96M
Igor Posted November 23, 2017 Posted November 23, 2017 I tested on A20 and I only need to add extraargs=cma=96M to /boot/armbianEnv.txt and the video playing was back.
Magnets Posted November 25, 2017 Author Posted November 25, 2017 On 11/23/2017 at 10:36 AM, Moklev said: Thank you! I'll try with "extraargs=cma=96M". Did you have any success?
Moklev Posted November 27, 2017 Posted November 27, 2017 On 25/11/2017 at 7:31 PM, Magnets said: Did you have any success? No, I don't. I've upgrade my pi zero to Armbian 5.35 (Jessie, default kernel, vdpau installed) but ffmpeg still not accelerated. libcedrus1:armhf 1.0.1~armbian5.35+1 armhf Low-level acces to video enginge ofr Allwinner sunxi SoCs libvdpau-sunxi1:armhf 0.5.1~armbian5.35+1 armhf VDPAU implementation for sunxi SoCs libvdpau1:armhf 1.1.1-10~armbian5.35+1 armhf Video Decode and Presentation API for Unix (libraries) I'll try next month with a fresh Strech install... I need an updated version of ffmpeg and motion (damn transcode!).
Moklev Posted November 28, 2017 Posted November 28, 2017 ffmpeg "-hwaccels" output: Spoiler francesco@orangepizero:~$ ffmpeg -hwaccels ffmpeg version 2.8.13 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 4.9.2 (Debian 4.9.2-10) configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/arm-linux-gnueabihf --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libpulse --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --enable-libvidstab --enable-libzvbi --enable-avresample --disable-htmlpages --disable-podpages --enable-libutvideo --enable-libfdk-aac --enable-libx265 --enable-libbs2b --enable-libilbc --enable-libkvazaar --enable-libopenh264 --enable-libiec61883 --enable-libdc1394 --disable-altivec --shlibdir=/usr/lib/arm-linux-gnueabihf libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 Hardware acceleration methods: vdpau
zador.blood.stained Posted November 28, 2017 Posted November 28, 2017 Stock FFmpeg is not supposed to be accelerated. There are 3rd party FFmpeg sources that have limited Cedrus acceleration support, but we don't build and package them.
Moklev Posted November 28, 2017 Posted November 28, 2017 1 hour ago, zador.blood.stained said: Stock FFmpeg is not supposed to be accelerated. There are 3rd party FFmpeg sources that have limited Cedrus acceleration support, but we don't build and package them. Isn't cedrus acceleration (vdpau) mainlined in ffmpeg? Only in 2.8.x or also in 3.x? Standard ffmpeg gained vdpau acceleration in 2009...
zador.blood.stained Posted November 28, 2017 Posted November 28, 2017 8 minutes ago, Moklev said: Isn't cedrus acceleration (vdpau) mainlined in ffmpeg? vdpau - possibly, don't know exactly (I mean it was added a long time ago, no idea in which version exactly). Cedrus - no. libvdpau-sunxi implements only small and limited subset of VDPAU features, so it works with mplayer/mpv for video decoding but I don't remember if anybody made it work with FFmpeg (except for patched FFmpeg sources that bypass VDPAU and use /dev/cedar_dev directly)
Magnets Posted January 8, 2018 Author Posted January 8, 2018 I have VDPAU working on TVout on the opi zero. VDPAU only works on screen0. opizero is set to use screen1 by default, but both are configured to PAL/TVOUT. setting VDPAU_SCREEN=1 had no effect so I just changed the fex to: disp_mode=0 https://github.com/linux-sunxi/libvdpau-sunxi/issues/32
Recommended Posts