I have a task to:
- Watch a folder for video files (mp4,mov,mkv etc.)
- Transform the video files to HLS (480p, 720p, 1080p) using ffmpeg
- Move these files to a different folder
- Delete the original files from the watch folder
- Send an email stating that the following video file was transcoded
I want to deal with every .mp4 .mov and .mkv as a variable in bash so that I can perform the above-mentioned tasks. The folder containing these files are in
/mnt/volume1/videos
directory architecture
/mnt/volum1/videos/sample.mp4
/mnt/volum1/videos/sample.mov
/mnt/volum1/videos/sample.mkv