summaryrefslogtreecommitdiffstats
path: root/tools/audio_format
diff options
context:
space:
mode:
authorOle Kristian Lien <ole.k.lien@gmail.com>2009-11-30 07:48:55 +0000
committerOle Kristian Lien <ole.k.lien@gmail.com>2009-11-30 07:48:55 +0000
commit60111523edcd9b4e4c93ee9bcda221afa6845154 (patch)
tree0b40b0371723f1342619ac3a0457a5e2774edd5e /tools/audio_format
parent245f2fe809388a1eb8ff0065cf53713d08a7fca5 (diff)
Noen scripts til å redigere video og lyd
Diffstat (limited to 'tools/audio_format')
-rw-r--r--tools/audio_format14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/audio_format b/tools/audio_format
new file mode 100644
index 0000000..a96348c
--- /dev/null
+++ b/tools/audio_format
@@ -0,0 +1,14 @@
+#!/bin/bash
+#
+# Date: 2009-11-30
+# Author: Ole Kristian Lien
+# License: GNU General Public License
+#
+# Grabs audio format from audio/video-file
+
+if [ -z "$1" ]; then
+ echo "Usage: $0 <audio/video-file>"
+ exit 1
+fi
+
+ffmpeg -i $1 2>&1 | grep Audio | cut -d " " -f 8 | sed 's/,//g'