diff options
author | ubuntuperonista <30541016+ubuntuperonista@users.noreply.github.com> | 2023-03-05 16:01:12 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-05 16:01:12 -0300 |
commit | b5fbb75df875226142844ce43b4ddcadf2a958b4 (patch) | |
tree | bcaef792f604eb6ea226b7c79bbda371983413ea | |
parent | 0a6828bf2e36939d6d498c9900a85f5fce1c33d7 (diff) | |
download | acel_vid-main.tar.gz |
-rw-r--r-- | acel_vid.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/acel_vid.sh b/acel_vid.sh new file mode 100644 index 0000000..e78602f --- /dev/null +++ b/acel_vid.sh @@ -0,0 +1,12 @@ +#!/bin/bash +## el setpts es 1/ el factor de velocidad. +## el atempo es el factor de velocidad (para que el video coincida con el audio). +speed=1.13 +mkdir $speed +for i in *.mp4; +do +##para acelerar un achivo de video llamado vid.mp4 usar esta línea: + ffmpeg -i vid.mp4 -filter_complex "[0:v]setpts=0.884955752*PTS[v];[0:a]atempo=1.13[a]" -map "[v]" -map "[a]" fast_vid.mp4 +## para acelerar mp4 de audio usar esta línea: +# ffmpeg -i "$i" -filter:a atempo=$speed -vn -y $speed/"$i" +done |