summaryrefslogtreecommitdiff
path: root/localvideodump
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-06-23 17:59:26 +0200
committerJonas Smedegaard <dr@jones.dk>2014-06-23 17:59:26 +0200
commit8be3138bda4a3c0e37ad71dd95698dbae00f8868 (patch)
treee54196ed061b9491a0aba7542151bae24a0c7927 /localvideodump
parent510109168cd94b6d73f0486e0904268ef9c667e2 (diff)
Suspend PulseAudio if installed.
Diffstat (limited to 'localvideodump')
-rwxr-xr-xlocalvideodump7
1 files changed, 5 insertions, 2 deletions
diff --git a/localvideodump b/localvideodump
index 6a2e33c..59dfeed 100755
--- a/localvideodump
+++ b/localvideodump
@@ -109,5 +109,8 @@ done
voutargs=${vinputs:+-c:v $vcodec ${outrate:+-r $outrate}}
aoutargs=${ainputs:+-c:a $acodec}
-echo avconv $ainargs $vinargs $vmaps $amaps $voutargs $aoutargs -y "$output"
-exec avconv $ainargs $vinargs $vmaps $amaps $voutargs $aoutargs -y "$output"
+pasuspender=
+test ! -x /usr/bin/pasuspender | pasuspender=pasuspender
+
+echo $pasuspender avconv $ainargs $vinargs $vmaps $amaps $voutargs $aoutargs -y "$output"
+exec $pasuspender avconv $ainargs $vinargs $vmaps $amaps $voutargs $aoutargs -y "$output"