mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
14 lines
289 B
Bash
Executable File
14 lines
289 B
Bash
Executable File
#!/bin/bash
|
|
|
|
sex=$(ffprobe -i $1 -show_entries format=duration -v quiet -of csv="p=0")
|
|
rate=$(qalc -t 1000000000 / $sex)
|
|
#rate=$(( 1000000000 / $sex ))
|
|
|
|
base=$(basename $1)
|
|
ext="${base##*.}"
|
|
base="${base%.*}"
|
|
|
|
ffmpeg -i $1 -b $rate $base'_min.'$ext
|
|
echo "sex is $sex"
|
|
echo "rate is $rate"
|