is a handy tool to batch compress medias, specifically videos and images to be used in Paid Posts. With a shell script we can automate their compression.
How to
With ffmpeg installed on your system, follow and personalize these steps.
1) Save the assets
Add all original assets to a folder.
2) Add a shell script
In the same folder, add one of those script, saving them as shell script, for example “yourscript.sh”.
You can modify the parameters to adjust the workflow, specifically FFMPEG_PARAMS, to modify the compression parameters and OUTPUT_DIR, to change the name of the output folder.
echo-e"${GREEN}Conversion completed. Files saved in ${OUTPUT_DIR}${NC}"
3) Run the script
Open your folder in a Terminal (you can drag the folder on the Terminal app icon, or use the integrated terminal in VS Code) and run the following command:
bash yourscript.sh
4) Check the output
Check the messaging in your terminal and the output folder to check the result.