#!/bin/sh
chmod +x ./tools/x86/ffmpeg-linux32
chmod +x ./tools/x86/ffprobe-linux32
chmod +x ./tools/x64/ffmpeg-linux64
chmod +x ./tools/x64/ffprobe-linux64

#[A]
#You can change java runtime path according to your system settings
#你可以根据自己系统情况修改java运行目录
JRE_PATH="/usr/lib/jvm/java-8-openjdk-amd64/jre"

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${JRE_PATH}/lib/amd64:${JRE_PATH}/lib/i386

${JRE_PATH}/bin/java -Xms128m -Xmx2400m -XX:+UseAdaptiveSizePolicy -XX:GCTimeRatio=19 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -jar bin.jar