commit ba352c5712769467707cc2fdef1b366d34ba252f parent 875adbe27fef9d64d140b117f05655f0e389ad95 Author: Anders Damsgaard <andersd@riseup.net> Date: Wed, 6 Dec 2017 15:27:02 -0500 Improve file renaming Diffstat:
M | links/bin/ffmpeg-to-mp4.sh | | | 9 | ++++++++- |
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/links/bin/ffmpeg-to-mp4.sh b/links/bin/ffmpeg-to-mp4.sh @@ -1,6 +1,13 @@ #!/bin/bash -output=$(echo $1 | sed 's/\..*$/.mp4/') +#output=$(echo $1 | sed 's/\..*$/.mp4/') +output=${1%.*}.mp4 + ffmpeg -i $1 \ -acodec libfaac -b:a 128k -vcodec mpeg4 -b:v 1200k -flags +aic+mv4 \ $output + +# constant bitrate: +#ffmpeg -i $1 -vcodec libx264 -crf 20 $output + echo $output +