#!/bin/sh
chmod +x ./tools/x64/ffmpeg
chmod +x ./tools/x64/ffprobe

#[A]
#You can change java runtime path according to your system settings
#你可以根据自己系统情况修改java运行目录
JRE_PATH="./tools/JRE"

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

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