dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit cec6bc559959dee980554d606538b8819a141e60
parent b9bd6efb3ec17e1d1360a131029392f93c2d59fd
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Wed, 14 Mar 2018 15:33:36 -0400

Overwrite ffmpeg output files without asking

Diffstat:
Mlinks/bin/ffmpeg-to-mp4.sh | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/links/bin/ffmpeg-to-mp4.sh b/links/bin/ffmpeg-to-mp4.sh @@ -12,7 +12,7 @@ output="${1%.*}.mp4" ffmpeg -i "$1" \ -vf scale="trunc(iw/2)*2:trunc(ih/2)*2" \ -c:v libx264 -profile:v high -pix_fmt yuv420p \ - -g 30 -r 30 \ + -g 30 -r 30 -y \ "$output" #ffmpeg -i movie.avi -sameq -vcodec libx264 -x264opts keyint=25 \ @@ -22,7 +22,7 @@ ffmpeg -i "$1" \ #ffmpeg -i $1 -vcodec libx264 -crf 20 $output # Output first frame as an image -ffmpeg -i "$1" -vframes 1 -f image2 "${output%.*}.png" +ffmpeg -i "$1" -y -vframes 1 -f image2 "${output%.*}.png" # Output last frame as an image #lastframe_index=$(ffprobe -show_streams "$1" 2> /dev/null | \