diff options
author | Jonas Smedegaard <dr@jones.dk> | 2016-12-01 19:27:29 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2016-12-01 19:27:29 +0100 |
commit | 1c7eafd12d06b5a3aafe838d47790889405c6b5d (patch) | |
tree | 2e795f6bd41519b3ba00faea4b052ae00c57688a /localvideodump | |
parent | 6aa2a9af5e24ddfed681fd7f1d68013abb6c471f (diff) |
Use ffmpeg (and only fallback on avconv.
Diffstat (limited to 'localvideodump')
-rwxr-xr-x | localvideodump | 8 |
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" |