fixing renderText script

This commit is contained in:
2026-06-11 15:14:00 +02:00
parent 3e922883f7
commit 9ad6b15130
302 changed files with 120914 additions and 20 deletions
Executable
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
BPM=`mediainfo "$1" | grep BPM | head -n1 | awk '{print $3}'`
TARGET="$2"
SPEED=`echo $TARGET/$BPM | bc -l`
PITCH=`echo $BPM/$TARGET | bc -l`
echo altering tempo of track from $BPM to $TARGET that is $SPEED of original tempo
mpv --no-audio-display --af=rubberband --speed=$SPEED "$1"
#mpv --af=scaletempo=scale=$SPEED:overlap=0.5 "$1"