Skip to content
Permalink
Browse files

mp4 transcode script for Ubuntu

  • Loading branch information
root
root committed Dec 18, 2016
1 parent 921a1ff commit ea3208e1b65d8a5b9b34b90d2b9f1a1b40af3ed9
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/mp4-low
@@ -6,7 +6,7 @@ mkdir -p /tmp/plumitranscodetmp
VIDEO_FILE=/tmp/plumitranscodetmp/wget.`date +%s`
wget $1 -O $VIDEO_FILE
chmod 700 $VIDEO_FILE
ffmpeg -y -i "$VIDEO_FILE" -vf "scale=ceil(a*240)+mod(ceil(a*240)\,2):240" -r 25 -threads 0 -ar 44100 -vcodec libx264 -crf 25 -ab 64k -f mp4 "$2"
ffmpeg -y -i "$VIDEO_FILE" -vf "scale=ceil(a*240)+mod(ceil(a*240)\,2):240" -r 25 -threads 0 -ar 44100 -strict -2 -vcodec libx264 -crf 25 -ab 64k -f mp4 "$2"
RET=$?
qt-faststart "$2" "${2}.fst"
mv "${2}.fst" "$2"

0 comments on commit ea3208e

Please sign in to comment.
You can’t perform that action at this time.