245 | | |
---|
246 | | &writelog("recwrap TRCNSTART vfr4psp.sh $recfolderpath/$outputfilename $pspfilname $pspdirname $psptrcn[1]"); |
---|
247 | | #トラコン開始 |
---|
248 | | system("$toolpath/perl/transcode/vfr4psp.sh $recfolderpath/$outputfilename $pspfilname $pspdirname $psptrcn[1]"); |
---|
249 | | |
---|
250 | | &writelog("recwrap TRCNEND vfr4psp.sh $recfolderpath/$outputfilename $pspfilname $pspdirname $psptrcn[1]"); |
---|
251 | | |
---|
252 | | #最適化 |
---|
253 | | |
---|
254 | | $DBQuery = "SELECT subtitle FROM foltia_subtitle WHERE tid = '$tid' AND countno = '$countno' "; |
---|
255 | | $sth = $dbh->prepare($DBQuery); |
---|
256 | | $sth->execute(); |
---|
257 | | @programtitle = $sth->fetchrow_array; |
---|
258 | | |
---|
259 | | if ( $countno == "0" ){ |
---|
260 | | $pspcountno = ""; |
---|
261 | | }else{ |
---|
262 | | $pspcountno = $countno ; |
---|
263 | | } |
---|
264 | | &writelog("recwrap OPTIMIZE mp4psp -p $pspdirname/M4V$pspfilname.MP4 -t '$psptrcn[2] $pspcountno $programtitle[0]' "); |
---|
265 | | Jcode::convert(\$programtitle[0],'euc'); |
---|
266 | | system ("/usr/local/bin/mp4psp -p $pspdirname/M4V$pspfilname.MP4 -t '$psptrcn[2] $pspcountno $programtitle[0]'") ; |
---|
267 | | |
---|
| 246 | #2006/12/03_10:30:24 recwrap TRCNSTART vfr4psp.sh /home/foltia/php/tv/591-87-20061203-1000.m2p -591-87-20061203-1000 /home/foltia/php/tv/591.localized/mp4/ 3 |
---|
| 247 | |
---|
| 248 | if (($trconqty eq "")||($trconqty == 0 )){ |
---|
| 249 | &writelog("recwrap TRCNSTART vfr4psp.sh $recfolderpath/$outputfilename $pspfilname $pspdirname $psptrcn[1]"); |
---|
| 250 | system("$toolpath/perl/transcode/vfr4psp.sh $recfolderpath/$outputfilename $pspfilname $pspdirname $psptrcn[1]"); |
---|
| 251 | &writelog("recwrap TRCNEND vfr4psp.sh $recfolderpath/$outputfilename $pspfilname $pspdirname $psptrcn[1]"); |
---|
| 252 | #最適化 |
---|
| 253 | $DBQuery = "SELECT subtitle FROM foltia_subtitle WHERE tid = '$tid' AND countno = '$countno' "; |
---|
| 254 | $sth = $dbh->prepare($DBQuery); |
---|
| 255 | $sth->execute(); |
---|
| 256 | @programtitle = $sth->fetchrow_array; |
---|
| 257 | if ( $countno == "0" ){ |
---|
| 258 | $pspcountno = ""; |
---|
| 259 | }else{ |
---|
| 260 | $pspcountno = $countno ; |
---|
| 261 | } |
---|
| 262 | &writelog("recwrap OPTIMIZE mp4psp -p $pspdirname/M4V$pspfilname.MP4 -t '$psptrcn[2] $pspcountno $programtitle[0]' "); |
---|
| 263 | Jcode::convert(\$programtitle[0],'euc'); |
---|
| 264 | system ("/usr/local/bin/mp4psp -p $pspdirname/M4V$pspfilname.MP4 -t '$psptrcn[2] $pspcountno $programtitle[0]'") ; |
---|
| 265 | $mp4filename = "M4V${pspfilname}.MP4"; |
---|
| 266 | $thmfilename = "M4V${pspfilname}.THM"; |
---|
| 267 | }else{# #2006/12/6 新エンコーダ |
---|
| 268 | |
---|
| 269 | &writelog("recwrap TRCNSTART ipodtranscode.pl $recfolderpath/$outputfilename $pspfilname $pspdirname $pid $psptrcn[1]"); |
---|
| 270 | system("$toolpath/perl/ipodtranscode.pl $recfolderpath/$outputfilename $pspfilname $pspdirname $pid $psptrcn[1]"); |
---|
| 271 | &writelog("recwrap TRCNEND ipodtranscode.pl $recfolderpath/$outputfilename $pspfilname $pspdirname $psptrcn[1]"); |
---|
| 272 | |
---|
| 273 | if($trconqty >= 2){#H.264/AVCなら |
---|
| 274 | $mp4filename = "MAQ${pspfilname}.MP4"; |
---|
| 275 | $thmfilename = "MAQ${pspfilname}.THM"; |
---|
| 276 | }else{ |
---|
| 277 | $mp4filename = "M4V${pspfilname}.MP4"; |
---|
| 278 | $thmfilename = "M4V${pspfilname}.THM"; |
---|
| 279 | } |
---|
| 280 | } |
---|