チェンジセット 8: trunk/install/perl/tvrecording.pl

差分発生行の前後
無視リスト:
コミット日時:
2006/12/07 15:00:43 (17 年前)
コミッタ:
sorshi
ログメッセージ:

新エンコーダによりH.264対応、
複数同時録画時の信頼性向上、など

ファイル:

凡例:

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

    r1 r8  
    2424 
    2525 
    26 use Time::HiRes qw(usleep); 
     26#use Time::HiRes qw(usleep); 
    2727 
    2828 
     
    250250} 
    251251#1分前にプロセス起動するから指定時間スリープ 
    252 srand(time ^ ($$ + ($$ << 15))); 
    253 my $useconds  = int(rand(12000000)); 
    254 my $intval = int ($useconds  / 1000000); 
    255 my $startupsleeptimemicro = ($startupsleeptime * 1000000) - $useconds; 
    256 $reclengthsec = $reclengthsec + $intval + 1; 
     252#srand(time ^ ($$ + ($$ << 15))); 
     253#my $useconds  = int(rand(12000000)); 
     254#my $intval = int ($useconds  / 1000000); 
     255#my $startupsleeptimemicro = ($startupsleeptime * 1000000) - $useconds; 
     256#$reclengthsec = $reclengthsec + $intval + 1; 
     257#&writelog("tvrecording:  DEBUG SLEEP $startupsleeptime:$useconds:$intval:$startupsleeptimemicro"); 
     258#       usleep ( $startupsleeptimemicro ); 
     259 
    257260# $recch でウェイト調整入れましょう 
    258  
    259  
    260 &writelog("tvrecording:  DEBUG SLEEP $startupsleeptime:$useconds:$intval:$startupsleeptimemicro"); 
    261  
    262         usleep ( $startupsleeptimemicro ); 
     261my $intval = $recch % 50; # 0〜49 
     262my $startupsleep = $startupsleeptime - $intval; #  3〜52 (VHF 40-51) 
     263$reclengthsec = $reclengthsec + $intval + 1; # 
     264 
     265&writelog("tvrecording:  DEBUG SLEEP $startupsleeptime:$intval:$startupsleep"); 
     266 
     267sleep ( $startupsleep); 
    263268 
    264269if ($recunits > 1){ 
track feed