summaryrefslogtreecommitdiff
path: root/localvideodump
diff options
context:
space:
mode:
Diffstat (limited to 'localvideodump')
-rwxr-xr-xlocalvideodump8
1 files changed, 5 insertions, 3 deletions
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 <http://www.gnu.org/licenses/>.
#
-# 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"