#/bin/bash videoPATH="" # If no path, it's using current. ext_in=".flv" # Extensions to recongnize use "*" to accept all types. ext_out=".mpeg" # Output file. video_name="" # The name of the output file. video_out="video_name$ext_out" # The name of the output file with the out extension. klips="" # Array in a string with all the files in the selected dir for klip in "$videoPATH/*$ext_in"; do klips="-i $klip $klips"; done ffmpeg $klips "$video_out" || echo "Видеото $video_out е напраено."; # executing FFMPEG.