Last active
August 29, 2015 14:00
-
-
Save koron/11341451 to your computer and use it in GitHub Desktop.
艦これ司令部室 が出力したWMVをffmpegを用いてニコニコ動画に上げるのに適したMP4へ変換するスクリプト。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
infile=$1 ; shift | |
passlog=${infile%.wmv}.passlog | |
outfile1=${infile%.wmv}-1.mp4 | |
outfile=${infile%.wmv}.mp4 | |
echo infile=$infile | |
echo outfile=$outfile | |
ffmpeg -i $infile \ | |
-vcodec h264 -r 15.00 -b 380k -s 800x480 \ | |
-pass 1 -passlogfile $passlog \ | |
-an $outfile1 | |
rm -f $outfile1 | |
ffmpeg -i $infile \ | |
-vcodec h264 -r 15.00 -b 380k -s 800x480 \ | |
-pass 2 -passlogfile $passlog \ | |
-acodec aac -strict experimental -ar 48000 -ab 64k \ | |
$outfile | |
rm -f ${passlog}-* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ビデオのビットレートを380kに下げて合計を445kbpsにすることで、
ニコニコ動画の エコノミー回避 をしてみた。