how to pass dir to ffmpeg and convert every video in folder windows java cmd command code example
Example: linux convert files in folder
for i in *.avi; do ffmpeg -i "$i" "${i%.*}.mp4"; done
for i in *.avi; do ffmpeg -i "$i" "${i%.*}.mp4"; done