Create a bash script that does the following: - recursively find all video files (e.g.…
- User
Create a bash script that does the following:
- recursively find all video files (e.g. .avi, .mov, .mp4, .m4v + others video file formats)
- go through the list of all found video files in alphabetical order and do the following with each file:
- print the current file including the path
- convert them with ffmpeg to av1 with crf 25 and opus codec with stereo 96kbps. All metadata should be taken over to the new file. Also the file system timestamps of the original file should be applied to the new converted file.
- once converted, add the original filename including path to the file "/rpool/ds1/photo/converted.txt". Also move the original file to "/rpool/ds1/photo/converted/ + path of original file + original filename
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.