summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorubuntuperonista <30541016+ubuntuperonista@users.noreply.github.com>2023-03-05 16:01:12 -0300
committerGitHub <noreply@github.com>2023-03-05 16:01:12 -0300
commitb5fbb75df875226142844ce43b4ddcadf2a958b4 (patch)
treebcaef792f604eb6ea226b7c79bbda371983413ea
parent0a6828bf2e36939d6d498c9900a85f5fce1c33d7 (diff)
downloadacel_vid-main.tar.gz
Create acel_vid.shHEADmain
-rw-r--r--acel_vid.sh12
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
Un proyecto texto-plano.xyz