From 1c7eafd12d06b5a3aafe838d47790889405c6b5d Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 1 Dec 2016 19:27:29 +0100 Subject: Use ffmpeg (and only fallback on avconv. --- localvideodump | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'localvideodump') diff --git a/localvideodump b/localvideodump index 59dfeed..1edfd9e 100755 --- a/localvideodump +++ b/localvideodump @@ -15,7 +15,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . # -# Depends: libav-tools, alsa-utils, v4l-utils +# Depends: ffmpeg, alsa-utils, v4l-utils # # TODO: add --help option # TODO: make inputs overrideable @@ -112,5 +112,7 @@ aoutargs=${ainputs:+-c:a $acodec} 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" +which ffmpeg > /dev/null && ffmpeg=ffmpeg || ffmpeg=avconv + +echo $pasuspender $ffmpeg $ainargs $vinargs $vmaps $amaps $voutargs $aoutargs -y "$output" +exec $pasuspender $ffmpeg $ainargs $vinargs $vmaps $amaps $voutargs $aoutargs -y "$output" -- cgit v1.2.3