Add ffmpeg related scripts

This commit is contained in:
Matheus Albino
2024-08-22 17:48:41 -03:00
parent ad4b05f2a8
commit 7e011db3c9
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
#!/bin/bash
ffmpeg -i $1 -an -vframes 1 -f null - -v 48 2>&1 | grep -oE "crf=[0-9\.]+"

View File

@@ -0,0 +1,3 @@
#!/bin/bash
ffmpeg -i $1 2>&1 | grep "Duration" | awk -F, '{print $1}' | xargs