$ git clone https://github.com/gozfree/gear-lib.git
$ cd gear-lib
$ ./build.sh
$ sudo ./build.sh install
ffmpeg/alsa/x264/sdl
$ sudo apt-get install libavformat-dev libavutil-dev libavcodec-dev libswscale-dev libasound-dev libx264-dev libsdl-dev libjpeg-dev libfdk-aac-dev
$ make
1.error while loading shared libraries: libdebug.so: cannot open shared object file: No such file or directory
make sure install gear-lib into /usr/local/lib/ then
$ sudo vi /etc/ld.so.conf.d/gear-lib.conf
input "/usr/local/lib/gear-lib" save and exit
$ sudo ldconfig
ffplay -f rawvideo -pixel_format yuv422p -video_size 320x240 sample/sample_yuv422p.yuv
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libasan.so.4