PINE64
H264 hardware encoder not work - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85)
+--- Forum: Linux on Rock64 (https://forum.pine64.org/forumdisplay.php?fid=88)
+--- Thread: H264 hardware encoder not work (/showthread.php?tid=5000)



H264 hardware encoder not work - sueshieh - 08-23-2017

We plan to use the Rock64 to create a video conference device on linux, so we need to enable RK3328 h264 encode/decode hardware acceleration. 

I have tested the h264 decoding, it is ok. But for h264 encoding, it is not work. The output h264 data of mpp / mpi_enc_test program are all zero.

Has anybody tried the h264 encoding in Rock64?

Thanks


RE: H264 hardware encoder not work - Schmick - 08-24-2017

(08-23-2017, 10:31 PM)sueshieh Wrote: We plan to use the Rock64 to create a video conference device on linux, so we need to enable RK3328 h264 encode/decode hardware acceleration. 

I have tested the h264 decoding, it is ok. But for h264 encoding, it is not work. The output h264 data of mpp / mpi_enc_test program are all zero.

Has anybody tried the h264 encoding in Rock64?

Thanks

https://forum.pine64.org/showthread.php?tid=4951 which in turn links to http://opensource.rock-chips.com/wiki_Status_Matrix#Linux.C2.A0Funciton_Status_Matrix indicates that encoding is incomplete/WIP.


RE: H264 hardware encoder not work - sueshieh - 08-26-2017

OH!
Thanks a lot!


RE: H264 hardware encoder not work - dalmate - 11-02-2017

Until now, the hardware encode still has not worked.
I think it has some bug with kernel.
In kernel code, they use u32 variables to call ioctl command, that variables have 32 bit size but mpp use unsigned long variables (which are 64 bit size) to call ioctl, in the fact that we must use unsigned int (which have 32 bit).
But when I change these variables in mpp, kernel has recognized command but it has started hang.
Maybe we need to wait until they fix this thing.