tar zxvf $build_dir/${ffmpeg_version}.tar.gz -C $build_dir }
function ffmpeg_build() { local root_pwd=$PWD cd ./${build_dir}/FFmpeg-${ffmpeg_version} echo "Currect dir $PWD"
if [ -d ${root_pwd}/${build_dir}/${build_out} ]; then return 4 fi
./configure --enable-shared --prefix=${root_pwd}/${build_dir}/${build_out} echo "./configure --enable-shared --prefix=${root_pwd}/${build_dir}/${build_out}" make make install
cd - } # main #local_env_prepare
ffmpeg_prepare if [ $? == 3 ]; then echo "FFmpeg Installation package [${ffmpeg_version}.tar.gz] already exists" exit 1 fi
ffmpeg_build if [ $? == 4 ]; then echo "Already built exit !!!" exit 1 fi