Jump to content

whoman

Members
  • Posts

    25
  • Joined

  • Last visited

Reputation Activity

  1. Like
    whoman got a reaction from gounthar in RK3328 Buster Legacy - VPU module issues   
    Hello Everyone!
    I cannot get Gstreamer to use video acceleration on my ROC-RK3328-CC (Libre Renegade)
    rockchip-gstreamer from Rockchip's github page just wont let me compile the vpudec plugin
    I have tried both stretch and buster with 4.4 legacy kernel (currently on buster), but I seem to be missing one peice.
     
    Here's what I do:
    -Install a current Armbian Renegade Legacy image, and install all the tools necessary to compile everything.
    -Git Clone and compile: Gstreamer, plugins-base, plugins-good, plugins-bad, plugins-ugly, plugins-libav
    -Git Clone and compile: libmali, mpp, rockchip-gstreamer, rockchip-gstreamer-extra
    during mpp compilation, I get the following warning:
     
    [ 71%] Building CXX object mpp/legacy/CMakeFiles/rockchip_vpu_static.dir/vpu_api_legacy.cpp.o /home/onev/video/mpp/mpp/legacy/vpu.c: In function ‘VPUClientInit’: /home/onev/video/mpp/mpp/legacy/vpu.c:104:14: warning: this statement may fall through [-Wimplicit-fallthrough=] type = VPU_DEC; ~~~~~^~~~~~~~~ /home/onev/video/mpp/mpp/legacy/vpu.c:105:5: note: here case VPU_DEC: ^~~~ [ 71%] Building C object mpp/legacy/CMakeFiles/rockchip_vpu_static.dir/vpu_mem_legacy.c.o When I run './autogen.sh' for rockchip-gstreamer it says that vpudec will not be compiled due to unmet dependencies.
    configure: *** Plug-ins with dependencies that will be built: rockchipmpp configure: *** Plug-ins with dependencies that will NOT be built: rkximage vpudec So I look at the configure.ac file, and I see it only has one dependency, and that is rockchip_vpu version 0.3.0 - [rockchip_vpu < 0.3.0]
    So I check my /dev folder and both vpu_service and rkvdec devices are present.
    lsmod shows neither modules are loaded, so I first do rkvdec:
    sudo modprobe rkvdec
    and that works, as lsmod now shows the rk_vcodec module is loaded.
    next I do the vpu_service module:
    sudo modprobe rockchip_vpu
    and that returns to prompt with no error message, but the module is still not listed by lsmod (nothing for vpu)
    So just for the heck of it, I edit the configure.ac to allow vpudec to compile without checking the dependency, and of coarse there's a bunch of errors.
    This suggests that I'm missing something, possibly a library I'm overlooking?
    Or perhaps its that the Rockchip Ayufun branch (which is the branch armbian installs) of the official rockchip branch of the kernel, doesn't have the latest updates from the rockchip branch?
     
    Does anyone have any ideas about what I'm missing here?
     
    Any hints would be sincerely appreciated
  2. Like
    whoman got a reaction from gounthar in VPU driver for RK3328?   
    It turns out that it's been renamed to 'hantro-vpu' starting with 5.3. 
    I got the kernel module compiled but now I realize there's a bunch of patches that update everything for this name changed that were not applied while using the armbian build tool.  I'll open up a new thread regarding that since it's a different issue.
     
  3. Like
    whoman got a reaction from gounthar in VPU driver for RK3328?   
    So after looking through the device tree, I see that it's called 'video-codec'
    however modprobe cant find the module...
    I only see it in these locations:
     
    /sys/devices/platform/ff350000.video-codec
    /sys/bus/platform/devices/ff350000.video-codec
    /sys/firmware/devicetree/base/video-codec@ff350000
     
    it doesn't appear that I have the kernel module.
    Any ideas where I can find the source code for the 'video-codec' kernel module?
     
     
     
  4. Like
    whoman got a reaction from gounthar in VPU driver for RK3328?   
    Hello Everyone!
    What is the kernel config option that I need to set to enable the VPU driver?
    Background:
    I'm using the most current RK3328 RENEGADE armbian image (debian non-desktop) on my ROC-RK3328-CC (Libre Renegade).
    I've compiled a brand new kernel with the armbian build tool.
    first, I cloned and compiled gstreamer and it's plugins from Github.
    Everything works fine but no video acceleration...
    So then I clone, compile, and install libmali, mpp, gstreamer-rockchip and gstreamer-rockchip-extra, and although the new pluggins are now available to gstreamer (specifically mppvideodec), whenever I try to use mppvideodec, I recieve the following error:
    mpi: mpp version: 14cae9c4 author: Johnson Ding [mpp_platform]: fix wrong device getting problem mpp_rt: NOT found ion allocator mpp_rt: found drm allocator hal_h264d_api: Assertion vcodec_type & ((1 << VPU_CLIENT_RKVDEC) | (1 << VPU_CLIENT_VDPU1) | (1 << VPU_CLIENT_VDPU2)) failed at hal_h264d_init:104 hal_h264d_api: hal_h264d_init hard mode error, value=0 hal_h264d_api: Assertion 0 failed at hal_h264d_init:154 mpp_device: mpp_device_init failed to find device for coding 7 type 0 Caught SIGSEGV After searching for a while, I came across this bug report in Chinese which suggests that I don't have the RK3328 VPU driver installed:
    https://translate.googleusercontent.com/translate_c?depth=1&hl=en&pto=nl&rurl=translate.google.com&sl=zh-CN&sp=nmt4&tl=en&u=https://github.com/rockchip-linux/mpp/issues/52&usg=ALkJrhiZFAGMkTKx7lz28OCXBQAmjeA8mw
    I checked the kernel config (I'm using the armbian build tool to compile the newest kernel), and I do see "V4L platform devices" however this doesn't seem to be anything rockchip specific.
    Since the default Armbian desktop versions seem to have video accel already enabled, I am hoping someone might be able to give me a hint as to what process I should follow in order to properly build the correct vpu-codec kernel driver for the RK3328
    I see that in the RK3328 Media Script (Rock64, Renegade) post by JMMC, he has a precompiled DEB package for librockchip-vpu0...  Is this what I'm missing here?  If so, can anyone point me to the source so I could build my own?
    So 2 questions:  
    1.  Is there a kenrel option I should be setting in order to compile the VPU driver?  
    1.  if not, which VPU driver code should I be compiling for mpp to work?
    Thanks so much for your time in reading this.
  5. Like
    whoman got a reaction from saundraua3 in S905x H/W Video Accel for Gstreamer?   
    Hello All,
     
    how can I get hardware video acceleration for S905x on Debian/Armbian using Gstreamer?
     
    I installed gstreamer, and using 'decodebin' and 'fbdevsink' gives terrible performance (software decoding).
     
    I did some searching and found that amlogic has two GST plugins for hardware accelerated video decoding: "amlvdec" and "amlvsink"
     
    I was able to locate the source code here:
    http://openlinux.amlogic.com:8000/download/ARM/filesystem/
     
    I downloaded the newest archive "arm-buildroot-2016-08-18-5aaca1b35f.tar.gz"
     
    Would this work with debian/Armbian?
     
    When I try to compile the plugin, I get the message:
     
     
    so I searched online, and found:
    https://github.com/mdrjr/c1_aml_libs
     
    I tried to compile this however I got the error:
     
     
     
    Does anyone know how I can get Gstreamer to play videos with hardware acceleration?
     
    Thanks so much!
     
  6. Like
    whoman got a reaction from Jens Bauer in Trying to recompile the Kernel for MINI M8S...   
    Hi dxs1,
    Unfortunately my kernel will do nothing different for audio output.
     
    the modules I have compiled are only for "midi sequencer" communication.  They have nothing to do with audio output.
     
    Also, I could be mistaken but I'm pretty sure the amlogic drivers for sound output are already in the original kernel configuration, so that is likely not the cause of your issue.
     
    I'm personally using this strictly for video/image output, so I have no experience with audio output on the S905X.
     
    I would suggest creating a new thread, so that more people will see your thread title and can help with your problem.
  7. Like
    whoman got a reaction from balbes150 in S905x H/W Video Accel for Gstreamer?   
    So I manually copied the three *.so files to /usr/lib and then ran "ldconfig", and everything finished compiling.  I will report back once I have tried installing/testing the plugins
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines