|
Ffmpeg from Rockchip
Posted at 6/20/2016 20:46:11
View:7448
|
Replies:2
Print
Only Author
[Copy Link]
1#
Hi all !
I don't know if this has ever been tested here :
https://github.com/rockchip-linux/ffmpeg
This is a version of Ffmpeg from Jung Zhao and Yakir Yang that seems to achieve hardware decoding on our favourite RK3288. I tried to test it on the new Lubuntu image from isle http://bbs.t-firefly.com/forum.php?mod=viewthread&tid=1405&extra=page%3D1
But I had no luck in making it work. The problem is that I don't know on which kernel it is supposed to run , and with what kernel drivers (vpu, gpu) it is supposed to work with.
If you want to give it a look, here is what I've tried to do :
- Follow the Readme from the git deposit to build ffmpeg and copy the libraries in libvpu/ folder to /usr/lib
- Install ffmpeg libraries generated in the "out" folder in /usr/local/lib and /usr/lib (by copying everything located in the "out" folder to these paths) - I don't know whether the libraries need to be in /usr/local/lib or /usr/lib, though only one is needed
- Run the Makefile in rk_ffmpeg_2.6.2/ffmpeg-decode-example/. Thad didn't work for me : the compilator complains about some member of a struct that does not exist. I had to checkout an older version of ffmpegexample.c, the version just before the RGA support addition commit :
- git checkout 262c19e36c27910cd55efbd81937c3e393cfed06 rk_ffmpeg_2.6.2/ffmpeg-decode-example/ffmpegexample.c
Copy the code
The run the Makefile with "make" command
- Stop ligthdm and try to launch a video with the newly generated executable :
- /home/ubuntu/ffmpeg/rk_ffmpeg_2.6.2/ffmpeg-decode-example/ffmpegexample -i <video-file> -d 1
Copy the code As stated in the Readme of ffmpegexample :
- -t: 0 single thread; 1 enable multithread
- -d: 0 no display; 1 display
- -c: 0 forever running; n cycle n times
Copy the code The error I get is :
- Input #-1, mov,mp4,m4a,3gp,3g2,mj2, from '/home/ubuntu/Videos/Tractor_500kbps_x265.mp4':
- Metadata:
- major_brand : iso4
- minor_version : 1
- compatible_brands: iso4hvc1
- creation_time : 2014-08-25 20:31:31
- Duration: 00:00:10.00, start: 0.080000, bitrate: 488 kb/s
- Stream #-1:0(und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], 485 kb/s, 25 fps, 25 tbr, 25k tbn, 25 tbc (default)
- Metadata:
- creation_time : 2014-08-25 20:31:31
- handler_name : hevc:fps=25@GPAC0.5.1-DEV-rev4807
- demo parameters setting:
- input filename: /home/ubuntu/Videos/Tractor_500kbps_x265.mp4
- single thread: 1
- max list num: 1
- cycle num: 1
- display: 1
- save output frame: 0
- failed to set crtc mode ret=-13
- dma_node.dma_fd 0
- failed to create fb ret=-22
Copy the code
|
|