チェンジセット 70: trunk/install/perl
- コミット日時:
- 2008/01/24 18:27:18 (17 年前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
trunk/install/perl/foltia_conf1.pl.template
r8 r70 25 25 #2:iPod H.264 中画質 24fps 300kbps 26 26 #3:iPod H.264 高画質 30fps 300kbps 27 $phptoolpath = $toolpath ;#php版の初期設定の位置。デフォルトではperlと同じ位置 27 28 28 29 #以下はデフォルトでインストールしてればいじらなくてもいい trunk/install/perl/foltialib.pl
r50 r70 227 227 228 228 229 sub getphpstyleconfig{ 230 my $key = $_[0]; 231 my $phpconfigpath = ""; 232 my $configline = ""; 233 # read 234 if (-e "$phptoolpath/php/foltia_config2.php"){ 235 $phpconfigpath = "$phptoolpath/php/foltia_config2.php"; 236 }elsif(-e "$toolpath/php/foltia_config2.php"){ 237 $phpconfigpath = "$toolpath/php/foltia_config2.php"; 238 }else{ 239 $phpconfigpath = `locate foltia_config2.php | head -1`; 240 chomp($phpconfigpath); 241 } 242 243 244 if (-r $phpconfigpath ){ 245 open (CONFIG ,"$phpconfigpath") || die "File canot read.$!"; 246 while(<CONFIG>){ 247 if (/$key/){ 248 $configline = $_; 249 $configline =~ s/\/\/.*$//; 250 $configline =~ s/\/\*.*\*\///; 251 }else{ 252 } 253 } 254 close(CONFIG); 255 }#end if -r $phpconfigpath 256 return ($configline); 257 }#end sub getphpstyleconfig 258 229 259 230 260 1; trunk/install/perl/ipodtranscode.pl
r62 r70 103 103 $encodeoption = "-y -i $inputmpeg2 -target ipod -profile 51 -level 30 $cropopt -acodec aac -ab 96 -vcodec h264 -maxrate 700 -minrate 0 -deinterlace -b 300 -ar 32000 -mbd 2 -coder 1 -cmp 2 -subcmp 2 -s 320x240 -r 30000/1001 -flags loop -trellis 2 -partitions parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 $movietitle ${mp4outdir}MAQ${mp4filenamestring}.MP4"; 104 104 $mp4file = "${mp4outdir}MAQ${mp4filenamestring}.MP4"; 105 }elsif($trconqty == 4){ #sample:src 106.6sec encode 334.8sec x3.14 kbps @Celeron2.6GHz 904kbps106 105 107 $encodeoption = "-y -i $inputmpeg2 -target ipod -profile 51 -level 30 $cropopt -s 480x320 -b 350 -r 24 -acodec aac -ar 32000 -ac 2 $movietitle ${mp4outdir}MAQ${mp4filenamestring}.MP4"; 106 }elsif($trconqty == 4){ #sample:src 106.6sec encode 239sec x2.24 1036kbps @Celeron2.6GHz 107 108 $encodeoption = "-y -i $inputmpeg2 -target ipod -profile 51 -level 30 $cropopt -s 480x360 -b 400 -r 24 -acodec aac -ar 32000 -ac 2 $movietitle ${mp4outdir}MAQ${mp4filenamestring}.MP4"; 108 109 $mp4file = "${mp4outdir}MAQ${mp4filenamestring}.MP4"; 109 110 110 }elsif($trconqty == 5){ #sample:src 106.6sec encode 684.5sec x6.42 kbps @Celeron2.6GHz 667kbps111 }elsif($trconqty == 5){ #sample:src 106.6sec encode 1012sec x9.49 727kbps @Celeron2.6GHz 111 112 112 $encodeoption = "-y -i $inputmpeg2 -target ipod -profile 51 -level 30 $cropopt -acodec aac -ab 96 -vcodec h264 -maxrate 700 -minrate 0 -deinterlace -b 350 -ar 32000 -mbd 2 -coder 1 -cmp 2 -subcmp 2 -s 480x320 -r 30000/1001 -flags loop -trellis 2 -partitions parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 $movietitle ${mp4outdir}MAQ${mp4filenamestring}.MP4";113 $encodeoption = "-y -i $inputmpeg2 -target ipod -profile 51 -level 30 $cropopt -acodec aac -ab 96 -vcodec h264 -maxrate 700 -minrate 0 -deinterlace -b 400 -ar 32000 -mbd 2 -coder 1 -cmp 2 -subcmp 2 -s 480x360 -r 30000/1001 -flags loop -trellis 2 -partitions parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 $movietitle ${mp4outdir}MAQ${mp4filenamestring}.MP4"; 113 114 $mp4file = "${mp4outdir}MAQ${mp4filenamestring}.MP4"; 114 115 } trunk/install/perl/recwrap.pl
r60 r70 278 278 # 既にトラコンプロセスが走っているなら適当に待機 279 279 if ($trcnprocesses >= $cpucores){ 280 &writelog("recwrap TRCN WAITING :$trcnprocesses / $cpucores :$outputfilename "); 281 sleep 53; 282 sleep $recch; 280 if (-e "/proc/uptime" ){ 281 $loadaverage = `uptime`; 282 chomp($loadaverage); 283 }else{ 284 $loadaverage = ""; 285 } 286 &writelog("recwrap TRCN WAITING :$trcnprocesses / $cpucores :$outputfilename $loadaverage"); 287 sleep 113; 288 sleep ($recch)*5; 283 289 } 284 290 } until ($trcnprocesses < $cpucores);