Hello,
i have some vids (mp4) which should only change the Resolution to 640x480. Its all together so much that i use avidemux_jobs. But i take a look in the wiki and see a scripting action is availible for avidemux.
Can me someone help with a script that i can run. The videos should have same name, only in a other Directory.
So in Art what i found in wiki:
#!/bin/bash
VAR="files.txt"
ls *.mp4 | sort > $VAR # Collect the files in the current directory
cat $VAR | while read line; do # Loop read the filenames from the file
INPUT=$(echo ${line}) # Grab the nxt new filename
OUTPUT=${INPUT%.*4} # Remove shortest match of characters between the '. ' and the '4' at end of string
OUTPUT+=".mp4" # Append new extension
avidemux2 --force-alt-h264 --load "$INPUT" --save "$OUTPUT" --dvd-res --output-format MP4 --quit
done
rm $VAR # Remove the text file with the file names
But in Command Line i found nothing about resolution. Can someone help?
Thx and Regards
Silvio
In avidemux GUI load video. Set required settings to achieve required output. Save project file, remove references to loaded video and markers and call saved project from command line with --run saved_project
.
avidemux2 --force-alt-h264 --load "$INPUT" --dvd-res --output-format MP4 --run saved_project --save "$OUTPUT" --quit
Hello,
thank you script is running.
Regards
Silvio