|  | 
Hardware decoder on linux for firefly-rk3288(source opened)
    
    Posted at  12/30/2015 10:37:25
            
         View:63207
     |
     Replies:39
     
  
     
 
   	
    
  Print   
        
  
   
  Only Author 
    [Copy Link]
	
    
 
  	             
1# 
 
| Last edited by isle In 12/30/2015 10:40 Editor 
 This is how to add hardware decoder to ffmpeg on linux for firefly-rk3288.
 
 First, choose the vpu driver librarys.
 We use the hybris library made by mac_l1,also you can choose rockchip's vpu driver library ,which they has put it on a websites.
 For convenience ,I put a mac_l1's hybris lib's copy to "baidu pan". here is the link:
 http://pan.baidu.com/s/1pKdqUQR
 
 
 Install the driver library:
 if you get a mistake. please run this:Copy the codesudo dpkg  -i machybris-0.1.0_armhf.deb
 and try again.
 
 After install done ,reboot your board .
 
 Install dependencies library :
 Copy the codesudo apt-get install libsdl-dev
this source code need compiled on the development board. if you want to compiled on PC ,you need modify the source code.
 
 Install compile environment:
 
 Get the source code:Copy the codesudo apt-get install build-essential
 Compile and Install:Copy the codegit clone https://github.com/isle0118/firefly-vpu-linux.git
Copy the code./configure  --enable-shared --prefix=/usr --disable-ffmpeg --disable-ffprobe --disable-ffserver  --disable-static
Copy the codemake && sudo make install
Now, you can test the hardware decoder with ffplay .
 
 the source file is here :
 
 Copy the codelibavcodec/rkdec_decoder.c
if you want use other driver library or compiled on PC ,just need to modify this file.
 
 
 Have fun !
 
 
 
 
 | 
 |