foltia EPG録画
予約の結果、できたファイルがこんな感じ。30分で4G弱ですか。サブフォルダの下には、MP4変換されたファイルができるはず?今回は特にできていなかった。
tsselectの結果、こんなにPIDがあるとは。。。後でTSReaderLiteで覗いてみよう。一番数が多いのがSDのストリームだと思うけど、124ドロップ。こんなもの?
$ ls -l php/tv total 3770730 -rw-r--r-- 1 www www 3858287528 May 6 03:15 0---12.m2t drwxr-xr-x 5 www www 5 May 6 03:15 0.localized drwxr-xr-x 5 www www 5 Apr 16 01:30 1598.localized $ perl/tool/tsselect php/tv/0---12.m2t processing: finish0 pid=0x0000, total= 18288, d= 41, e= 0, scrambling=0 pid=0x0010, total= 1827, d= 7, e= 0, scrambling=0 pid=0x0011, total= 913, d= 5, e= 0, scrambling=0 pid=0x0012, total= 90590, d= 47, e= 0, scrambling=0 pid=0x0014, total= 367, d= 1, e= 0, scrambling=0 pid=0x0023, total= 1840, d= 9, e= 0, scrambling=0 pid=0x0024, total= 1826, d= 8, e= 0, scrambling=0 pid=0x0027, total= 4264, d= 11, e= 0, scrambling=0 pid=0x0028, total= 10, d= 0, e= 0, scrambling=0 pid=0x0029, total= 42, d= 1, e= 0, scrambling=0 pid=0x00d2, total= 1, d= 0, e= 0, scrambling=0 pid=0x00eb, total= 1, d= 0, e= 1, scrambling=0 pid=0x0100, total=16387453, d=124, e= 0, scrambling=0 pid=0x0110, total= 259666, d=113, e= 0, scrambling=0 pid=0x0140, total= 180077, d=104, e= 0, scrambling=0 pid=0x015c, total= 1, d= 0, e= 0, scrambling=0 pid=0x015f, total= 1828, d= 11, e= 0, scrambling=0 pid=0x0160, total= 2881090, d=119, e= 0, scrambling=0 pid=0x0161, total= 135053, d=100, e= 0, scrambling=0 pid=0x0170, total= 1, d= 0, e= 0, scrambling=0 pid=0x01ca, total= 1, d= 0, e= 0, scrambling=0 pid=0x01f0, total= 18282, d= 47, e= 0, scrambling=0 pid=0x01ff, total= 31570, d= 0, e= 0, scrambling=0 pid=0x02cb, total= 1, d= 0, e= 1, scrambling=1 pid=0x02e4, total= 1, d= 0, e= 0, scrambling=1 pid=0x02f0, total= 18283, d= 48, e= 0, scrambling=0 pid=0x03eb, total= 1, d= 0, e= 1, scrambling=0 pid=0x03f0, total= 18284, d= 48, e= 0, scrambling=0 pid=0x0544, total= 1, d= 0, e= 0, scrambling=1 pid=0x05fb, total= 1, d= 0, e= 1, scrambling=0 pid=0x0874, total= 1, d= 0, e= 1, scrambling=0 pid=0x0b3b, total= 1, d= 0, e= 1, scrambling=1 pid=0x0b54, total= 1, d= 0, e= 0, scrambling=1 pid=0x0ba2, total= 1, d= 0, e= 1, scrambling=1 pid=0x0cf0, total= 1, d= 0, e= 0, scrambling=1 pid=0x0cf3, total= 1, d= 0, e= 1, scrambling=0 pid=0x0d15, total= 1, d= 0, e= 0, scrambling=0 pid=0x0dce, total= 1, d= 0, e= 0, scrambling=1 pid=0x0e01, total= 18260, d= 44, e= 0, scrambling=0 pid=0x0f3c, total= 1, d= 0, e= 1, scrambling=1 pid=0x0ff6, total= 1, d= 0, e= 0, scrambling=0 pid=0x1080, total= 37197, d= 57, e= 0, scrambling=0 pid=0x1081, total= 300969, d=107, e= 0, scrambling=0 pid=0x1083, total= 60869, d= 85, e= 0, scrambling=0 pid=0x108b, total= 36876, d= 71, e= 0, scrambling=0 pid=0x10e7, total= 1, d= 0, e= 0, scrambling=0 pid=0x114a, total= 1, d= 0, e= 1, scrambling=0 pid=0x11f6, total= 1, d= 0, e= 1, scrambling=1 pid=0x11ff, total= 7897, d= 0, e= 0, scrambling=0 pid=0x1242, total= 1, d= 0, e= 0, scrambling=0 pid=0x12ae, total= 1, d= 0, e= 1, scrambling=1 pid=0x12d4, total= 1, d= 0, e= 1, scrambling=1 pid=0x12f9, total= 1, d= 0, e= 0, scrambling=0 pid=0x1467, total= 1, d= 0, e= 0, scrambling=1 pid=0x14ad, total= 1, d= 0, e= 0, scrambling=0 pid=0x14b3, total= 1, d= 0, e= 1, scrambling=1 pid=0x14e9, total= 1, d= 0, e= 1, scrambling=1 pid=0x15bd, total= 1, d= 0, e= 1, scrambling=1 pid=0x17ad, total= 1, d= 0, e= 1, scrambling=1 pid=0x180d, total= 1, d= 0, e= 1, scrambling=1 pid=0x1876, total= 1, d= 0, e= 1, scrambling=1 pid=0x1ab5, total= 1, d= 0, e= 0, scrambling=0 pid=0x1c55, total= 1, d= 0, e= 1, scrambling=0 pid=0x1d6a, total= 1, d= 0, e= 0, scrambling=1 pid=0x1e32, total= 1, d= 0, e= 1, scrambling=1 pid=0x1e59, total= 1, d= 0, e= 0, scrambling=0 pid=0x1ef3, total= 1, d= 0, e= 1, scrambling=0 pid=0x1fc8, total= 9144, d= 23, e= 0, scrambling=0
今回の~foltia/debuglog.txtはこんな感じ。
2009/05/06_01:46:29 addatq remove -1 2009/05/06_01:46:29 addatq TIME 200905060240 COMMAND /home/foltia/perl/folprep.pl -1 2009/05/06_02:40:01 getxml2db Normal launch. 2009/05/06_02:40:19 folprep /home/foltia/perl/addpidatq.pl -1 2009/05/06_02:40:20 addpidatq DEBUG $startafter 5 $now 200905060240 $startdatetime 200905060245 2009/05/06_02:40:20 addpidatq remove que -1 2009/05/06_02:40:20 addpidatq TIME 200905060244 COMMAND /home/foltia/perl/recwrap.pl 12 1800 5 0 1 -1 12 1 0 23 2009/05/06_02:44:01 recwrap RECSTART DIGITAL 0 23 1800 12 0 0---12.m2t 0 1 friio 2009/05/06_02:44:01 digitaltvrecording: DEBUG 0 23 1800 12 0 0---12.m2t 0 1 friio 2009/05/06_02:44:01 digitaltvrecording: DEBUG SLEEP 27:3:24:1837 2009/05/06_02:44:25 digitaltvrecording: DEBUG FILENAME ne null $outputfile /home/foltia/php/tv/0---12.m2t 2009/05/06_02:44:25 digitaltvrecording DEBUG recpt1 --b25 23 1837 /home/foltia/php/tv/0---12.m2t 2009/05/06_03:15:07 digitaltvrecording DEBUG not split TS. 2009/05/06_03:15:07 digitaldigitaltvrecording:RECEND:0 23 1800 12 0 0---12.m2t 0 1 friio 2009/05/06_03:15:07 recwrap RECEND [0---12.m2t] 12 1800 0 0 5 0 1 -1 2009/05/06_03:15:07 recwrap DEBUG UPDATEDB UPDATE foltia_subtitle SET m2pfilename = '0---12.m2t' WHERE pid = '-1' 2009/05/06_03:15:07 recwrap DEBUG UPDATEDB insert into foltia_m2pfiles values ('0---12.m2t') 2009/05/06_03:15:07 recwrap Launch ipodtranscode.pl 2009/05/06_03:15:08 ipodtranscode starting up. 2009/05/06_03:15:38 ipodtranscode DEBUG SELECT foltia_subtitle.pid,foltia_subtitle.tid,foltia_subtitle.m2pfilename,filestatus,foltia_program.aspect ,foltia_subtitle.countno FROM foltia_subtitle, foltia_program, foltia_m2p files WHERE filestatus >= 50 AND filestatus < 150 AND foltia_program.tid = foltia_subtitle.TID AND foltia_program.PSP = 1 AND foltia_m2pfiles.m2pfilename = foltia_subtitle.m2p filename ORDER BY enddatetime ASC LIMIT 1 2009/05/06_03:15:38 ipodtranscode DEBUG -1,0,0---12.m2t,50,3,1 2009/05/06_03:15:38 ipodtranscode DEBUG mp4filenamestring -0---12 2009/05/06_03:15:38 mklocalizeddir 0 EPG録画 2009/05/06_03:15:38 ipodtranscode DEBUG thmfilename MAQ-0---12.THM 2009/05/06_03:15:38 ipodtranscode DEBUG mplayer -ss 00:01:20 -vo jpeg:outdir=/home/foltia/php/tv/0.localized/mp4/ -ao null -sstep 1 -frames 3 -v 3 /home/foltia/php/tv/0---12.m2t 2009/05/06_03:15:38 ipodtranscode DEBUG convert -crop 160x120+1+3 -resize 165x126! /home/foltia/php/tv/0.localized/mp4//00000002.jpg /home/foltia/php/tv/0.localized/mp4//MAQ-0---12.THM 2009/05/06_03:15:38 ipodtranscode DEBUG rm -rf /home/foltia/php/tv/0.localized/mp4//0000000*.jpg 2009/05/06_03:15:38 ipodtranscode ffmpeg /home/foltia/php/tv/0---12.264 2009/05/06_03:15:38 ipodtranscode TsSplitter /home/foltia/php/tv/0---12.m2t 2009/05/06_03:15:38 ipodtranscode ERR NOT Exist /home/foltia/php/tv/0---12_HD.m2t 2009/05/06_03:15:38 ipodtranscode ffmpeg retry /home/foltia/php/tv/0---12.264 2009/05/06_03:15:38 ipodtranscode ffmpeg retry no crop /home/foltia/php/tv/0---12.264 2009/05/06_03:15:38 ipodtranscode mplayer /home/foltia/php/tv/0---12.wav 2009/05/06_03:15:38 ipodtranscode faac /home/foltia/php/tv/0---12.wav 2009/05/06_03:15:38 ipodtranscode MP4Box /home/foltia/php/tv/0---12 2009/05/06_03:15:38 ipodtranscode ERR File not exist./home/foltia/php/tv/0---12.base.mp4 2009/05/06_03:15:38 ipodtranscode ATOM /home/foltia/php/tv/0---12 2009/05/06_03:15:38 ipodtranscode DEBUG MP4Box -ipod:127:0:0 2009/05/06_03:15:38 ipodtranscode mv /home/foltia/php/tv/0---12.base.mp4 /home/foltia/php/tv/0.localized/mp4/MAQ-0---12.MP4 2009/05/06_03:15:39 ipodtranscode ERR MP4 NOT EXIST -1/MAQ-0---12.MP4 2009/05/06_03:15:39 ipodtranscode ALL COMPLETE
- 予約時刻の少し前に時間変更がないかをチェックするのが、しょぼカレを見に行ってるのかな?EPGから録画してるので、TID==0の時はそのチャンネルのTSのEIDを取り直してチェックさせるのがいいか?
- hdusrecをrecpt1にsymlinkしておいたのは、無事に動いたっぽい。
- 録画の後処理では、ffmpegは入れているのにファイルができてない?ImageMagick(convert)、tssplitter、mplayer、faac、mp4boxは入れていないのでOK。このへんはワンセグ切り出しに変える予定。
ちなみに、/etc/crontabのatrun起動間隔は5分→1分に変更してます。時刻はNTPで合わせてるけど、起動時刻の精度はいまいちっぽい。portsの下にcronのバリエーションが4つくらいあるけど、変えるといいことあるのだろうか。