scripts/batchconvertmp4.sh

11 lines
251 B
Bash
Executable File

#!/bin/bash
directory=$( pwd )
for file in *; do
echo "test"
name=`echo "$file" | cut -d'.' -f 1`
echo "${directory}/${name}.mp4 ${file}"
ffmpeg -i ${file} -c:v libx264 -b:v 964k "${directory}/${name}.mp4" &
$wait #!
echo "tast"
done<$directory