Hello,
when I call
avidemux --audio-stereo2mono
in a Linux terminal, i get the error :
Unknown command :--audio-stereo2mono
this command is listet here:
http://www.avidemux.org/admWiki/doku.php?id=using:command_line_usage (http://www.avidemux.org/admWiki/doku.php?id=using:command_line_usage)
how can I get this working?
Regards
EDIT:
OK- got something useful after a while:
avidemux2_cli --load input.AVI --audio-resample 22050 --audio-stereo2mono --audio-codec MP3 --video-codec x264 --save output.mp4 --quit
in a script:
#!/bin/bash
VAR="files.txt"
ls *.AVI | 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%.AVI} # Remove shortest match of characters between the .AVI at end of string
OUTPUT+=".mp4" # Append new extension
# some stuff
# avidemux2 --force-alt-h264 --load "$INPUT" --save "$OUTPUT" --output-format AVI --quit
#
avidemux2_cli --load "$INPUT" --audio-resample 22050 --audio-stereo2mono --audio-codec MP3 --video-codec x264 --save "$OUTPUT" --quit
done
rm $VAR # Remove the text file with the file names