チェンジセット 70: trunk/install/perl

差分発生行の前後
無視リスト:
コミット日時:
2008/01/24 18:27:18 (16 年前)
コミッタ:
sorshi
ログメッセージ:

環境ポリシー機能搭載

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • trunk/install/perl/foltia_conf1.pl.template

    r8 r70  
    2525#2:iPod H.264 中画質 24fps 300kbps 
    2626#3:iPod H.264 高画質 30fps 300kbps 
     27$phptoolpath = $toolpath ;#php版の初期設定の位置。デフォルトではperlと同じ位置 
    2728 
    2829#以下はデフォルトでインストールしてればいじらなくてもいい 
  • trunk/install/perl/foltialib.pl

    r50 r70  
    227227 
    228228 
     229sub getphpstyleconfig{ 
     230my $key = $_[0]; 
     231my $phpconfigpath = ""; 
     232my $configline = ""; 
     233 # read 
     234if (-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 
     244if (-r $phpconfigpath ){ 
     245open (CONFIG ,"$phpconfigpath") || die "File canot read.$!"; 
     246while(<CONFIG>){ 
     247        if (/$key/){ 
     248        $configline = $_; 
     249        $configline =~ s/\/\/.*$//; 
     250        $configline =~ s/\/\*.*\*\///; 
     251        }else{ 
     252        } 
     253} 
     254close(CONFIG); 
     255}#end if -r $phpconfigpath  
     256return ($configline); 
     257}#end sub getphpstyleconfig 
     258 
    229259 
    2302601; 
  • trunk/install/perl/ipodtranscode.pl

    r62 r70  
    103103$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"; 
    104104$mp4file = "${mp4outdir}MAQ${mp4filenamestring}.MP4"; 
    105 }elsif($trconqty == 4){ #sample:src 106.6sec encode 334.8sec x3.14 kbps @Celeron2.6GHz 904kbps 
    106105 
    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"; 
    108109$mp4file = "${mp4outdir}MAQ${mp4filenamestring}.MP4"; 
    109110 
    110 }elsif($trconqty == 5){ #sample:src 106.6sec encode 684.5sec x6.42 kbps @Celeron2.6GHz 667kbps 
     111}elsif($trconqty == 5){ #sample:src 106.6sec encode 1012sec x9.49 727kbps @Celeron2.6GHz 
    111112 
    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"; 
    113114$mp4file = "${mp4outdir}MAQ${mp4filenamestring}.MP4"; 
    114115} 
  • trunk/install/perl/recwrap.pl

    r60 r70  
    278278        # 既にトラコンプロセスが走っているなら適当に待機 
    279279        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; 
    283289        } 
    284290} until ($trcnprocesses  < $cpucores); 
track feed