I'm new to linux. I need some help. I want to compress all files present in a directory with same extension. The output should be with same name and extension. I want to run a shell loop to do this. Here is the command to compress one file.
ffmpeg -i inputfilename.mp4 outputfilename.mp4
I am stuck here. How can I run a loop that to take files from one directory to compress and place in other directory?