|
Posted at 1/6/2016 23:24:28
3#
Attached zip file with two files in it (one binary, one shell script).
Use the script to capture the screen, the recording is stopped by pressing a key:
- ./screenrecord_h264.sh test.mp4
Copy the code You should have installed machybris before, and also avconv (sudo apt-get install libav-tools).
Every frame is captured from framebuffer device /dev/fb0. Using shared memory this RGB frame is converted to YUV420SP / NV21 format using the RGA hardware module. This YUV frame is then given to the encoder using the raw vpu api that generates an h264 bitstream. After key-press this h264 bitstream file is then encapsulated into a movie-container (mp4 in this case) by avconv utility.
You can see some android logging by:You can see some kernel logging by:
- sudo tail -f /var/log/syslog
Copy the code Hope this helps.
Cheers -- mac_l1
|
|