for f in /volume4/SERVER_E/_TEMP_PLAY_E/MKV/*.mkv; do [[ -f "${f%.mkv}_MKV2600.mp4" ]] && { echo "skipping "$f" - "${f%.mkv}_MKV2600.mp4" exists" ; continue; }; /var/packages/VideoStation/target/bin/ffmpeg -i "$f" -threads 1 -vcodec libx264 -vsync 2 -preset superfast -vprofile main -level 40 -pix_fmt yuv420p -b:v 2600k -acodec aac -ab 320k -ac 2 -ar 48000 -progress - -f mp4 -map 0:0 -map 0:1 -y "${f%.mkv}_MKV2600.mp4"; done
for f in /volume4/SERVER_E/_TEMP_PLAY_E/MKV/*.mkv; do [[ -f "${f%.mkv}_MKV2000.mp4" ]] && { echo "skipping "$f" - "${f%.mkv}_MKV2000.mp4" exists" ; continue; }; /var/packages/VideoStation/target/bin/ffmpeg -i "$f" -threads 1 -vcodec libx264 -vsync 2 -preset superfast -vprofile main -level 40 -pix_fmt yuv420p -b:v 2000k -acodec aac -ab 320k -ac 2 -ar 48000 -progress - -f mp4 -map 0:0 -map 0:1 -y "${f%.mkv}_MKV2000.mp4"; done
for f in /volume4/SERVER_E/_TEMP_PLAY_E/MKV/*.avi; do [[ -f "${f%.avi}_AVI2200.mp4" ]] && { echo "skipping "$f" - "${f%.avi}_AVI2200.mp4" exists" ; continue; }; /var/packages/VideoStation/target/bin/ffmpeg -i "$f" -threads 1 -vcodec libx264 -vsync 2 -preset superfast -vprofile main -level 40 -pix_fmt yuv420p -b:v 2200k -acodec aac -ab 320k -ac 2 -ar 48000 -progress - -f mp4 -map 0:0 -map 0:1 -y "${f%.avi}_AVI2200.mp4"; done
for f in /volume4/SERVER_E/_TEMP_PLAY_E/*.mp4; do [[ -f "${f%.mp4}_converted.mp4" ]] && { echo "skipping "$f" - "${f%.mp4}_converted.mp4" exists" ; continue; }; /var/packages/VideoStation/target/bin/ffmpeg -i "$f" -threads 1 -vcodec libx264 -vsync 2 -preset superfast -vprofile main -level 40 -pix_fmt yuv420p -b:v 2400k -acodec aac -ab 320k -ac 2 -ar 48000 -progress - -f mp4 -map 0:0 -map 0:1 -y "${f%.mp4}_converted.mp4"; done