Skip to content

examples of how to use machybris in your code - for sharing and study purposes; these include demo's for androids EGL/GLES and rockchips VPU support in linux

Notifications You must be signed in to change notification settings

coskifu/machybris_examples

 
 

Repository files navigation

machybris_examples - (C) by mac-l1

examples of how to use machybris in your code - for sharing and study purposes; these include demo's for androids EGL/GLES and rockchips VPU support in linux

if you like this, please donate

install

sudo apt-get install curl
curl -O http://mac-l1.com/install_machybris.sh; bash install_machybris.sh
git clone https://github.com/mac-l1/machybris_examples.git
cd machybris_examples
./make_all.sh

examples

  • test_vpu:
    simple encoder / decoder example for raw video bitstreams (eg h264, ...) to/from vpu frames (nv21) using vpu; with decode every x-th nv21 frame is converted to tga image file that you can display with eog; use gstreamer, ffmpeg or avconv to decode/ encode raw streams (eg .mov or h264 movie file to h264 video bit stream)

  • test_hwcomposer:
    original test_hwcomposer of libhybris that shows 'the swirl'; use "cd test_hwcomposer; ./test_hwc" to run

  • arm-examples: rotozoom and framebufferobject
    ported RotoZoom and FrameBufferObject EGL/GLES examples from ARM that shows a rotating image (use "cd arm-examples; ./roto.sh" to run) and a rotating cube (use "cd arm-examples; ./fbo.sh" to run) to demo some GLES magic

  • recorder: h264recorder
    my h264recorder that captures the 1920x1020 framebuffer/screen into a raw h264 bytestream movie using rockchips vpu and rkon2 libs; use "cd recorder; ./screenrecord_h264.sh mymovie.mp4" to run; i used this to record my youtube demo

  • player: h264player and h265player
    my h264player that plays h264 movies (only 1920x1080 format is hard-coded!) to either simple framebuffer/screen or using EGL/GLES for some rotating magic with the movie frames; it uses rockchips vpu and rkon2 libs and androids EGL/GLES lib; use "cd player; ./play_h264.sh [fd|roto|fbo] sintel_trailer-1080p.mp4" to play; i used this in my youtube demos. also added a h265player that plays hevc/h265 movies (only 1920x1080 is supported!); use "cd player; ./play_h265.sh [fd|roto|fbo] bbb_1080p_c.ts" to play

cheers! -- mac-l1

and again, if you like this, please donate

About

examples of how to use machybris in your code - for sharing and study purposes; these include demo's for androids EGL/GLES and rockchips VPU support in linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 75.4%
  • C 16.1%
  • Makefile 4.5%
  • Shell 2.2%
  • GLSL 1.8%