新しいBSチャンネルをスキャンしようとlinux用 DVBアプリ集ver.0.92に入ってるs2scanを使ってみると新しいチャンネルが出てこず、WOWOWのチャンネル名が変わってる程度だった。なぜ出てこないか調べてみると既存のものとTSIDが全く違っている様子。既存のものより0x400、0x600多いTSIDが振られていることが分かった。

追記 21:13
linux用 DVBアプリ集ver.0.96が出て対応したので、下記の操作は不要。

そこで、0x200ずつTSIDを増やしてスキャンするようにソースを変更した。パッチは以下の通り。

--- s2scan.c.orig	2010-05-17 21:01:46.000000000 +0900
+++ s2scan.c	2011-10-01 19:26:01.228455734 +0900
@@ -34,6 +34,7 @@
 
 
 static int TS_IDX = 0;
+static int TS_IDEX = 0;
 static int CH_IDX = 0;
 static int CH_IDX_END = 0;
 static FILE *INFILE;
@@ -116,12 +117,16 @@
 	case BS:
 		if (TS_IDX > 7) {
 			TS_IDX = 0;
-			CH_IDX+=2;
+			TS_IDEX+=2;
+			if (TS_IDEX > 6 ) {
+				TS_IDEX = 0;
+				CH_IDX+=2;
+			}
 		}
 		if (CH_IDX > CH_IDX_END)
 			return -1;
 		freq = 11727480 + (CH_IDX - 1) * 38360 / 2 - 10678000;
-		ts_id = 0x4000 + (CH_IDX << 4) + TS_IDX;
+		ts_id = 0x4000 + (CH_IDX << 4) + TS_IDX + TS_IDEX * 0x100;
 		TS_IDX++;
 		break;
 	case TER:

ダウンロード

ソースをmake

$ make s2scan
cc     s2scan.c arib_b24_str.c   -o s2scan

作り直したs2scanでチャンネルスキャン

$ ./s2scan -p -b -a 0
trying freq:1049480 (tsid:4010)...locked..BS朝日1:DTV_DELIVERY_SYSTEM=9|DTV_FREQUENCY=1049480|DTV_ISDBS_TS_ID=0x4010:151
BS朝日2:DTV_DELIVERY_SYSTEM=9|DTV_FREQUENCY=1049480|DTV_ISDBS_TS_ID=0x4010:152
BS朝日3:DTV_DELIVERY_SYSTEM=9|DTV_FREQUENCY=1049480|DTV_ISDBS_TS_ID=0x4010:153
ok.
trying freq:1049480 (tsid:4011)...locked..BS−TBS:DTV_DELIVERY_SYSTEM=9|DTV_FREQUENCY=1049480|DTV_ISDBS_TS_ID=0x4011:161
BS−TBS:DTV_DELIVERY_SYSTEM=9|DTV_FREQUENCY=1049480|DTV_ISDBS_TS_ID=0x4011:162
BS−TBS:DTV_DELIVERY_SYSTEM=9|DTV_FREQUENCY=1049480|DTV_ISDBS_TS_ID=0x4011:163
ok.
trying freq:1049480 (tsid:4012)... no lock. skipped.
trying freq:1049480 (tsid:4013)... no lock. skipped.
trying freq:1049480 (tsid:4014)... no lock. skipped.
trying freq:1049480 (tsid:4015)... no lock. skipped.
trying freq:1049480 (tsid:4016)... no lock. skipped.
trying freq:1049480 (tsid:4017)... no lock. skipped.
trying freq:1049480 (tsid:4210)... no lock. skipped.
trying freq:1049480 (tsid:4211)... no lock. skipped.
trying freq:1049480 (tsid:4212)... no lock. skipped.
trying freq:1049480 (tsid:4213)... no lock. skipped.
trying freq:1049480 (tsid:4214)... no lock. skipped.
trying freq:1049480 (tsid:4215)... no lock. skipped.
trying freq:1049480 (tsid:4216)... no lock. skipped.
trying freq:1049480 (tsid:4217)... no lock. skipped.
trying freq:1049480 (tsid:4410)... no lock. skipped.
trying freq:1049480 (tsid:4411)... no lock. skipped.
trying freq:1049480 (tsid:4412)... no lock. skipped.
trying freq:1049480 (tsid:4413)... no lock. skipped.
trying freq:1049480 (tsid:4414)... no lock. skipped.
trying freq:1049480 (tsid:4415)... no lock. skipped.
trying freq:1049480 (tsid:4416)... no lock. skipped.
trying freq:1049480 (tsid:4417)... no lock. skipped.
trying freq:1049480 (tsid:4610)... no lock. skipped.
trying freq:1049480 (tsid:4611)... no lock. skipped.
trying freq:1049480 (tsid:4612)... no lock. skipped.
trying freq:1049480 (tsid:4613)... no lock. skipped.
trying freq:1049480 (tsid:4614)... no lock. skipped.
trying freq:1049480 (tsid:4615)... no lock. skipped.
trying freq:1049480 (tsid:4616)... no lock. skipped.
trying freq:1049480 (tsid:4617)... no lock. skipped.
trying freq:1087840 (tsid:4030)...locked..WOWOWプライム:DTV_DELIVERY_SYSTEM=9|DTV_FREQUENCY=1087840|DTV_ISDBS_TS_ID=0x4030:191
ok.

これでスキャンされるTSIDが増え、新しいチャンネルもスキャンされるようになった。

10月 1st, 2011

Posted In: ソフトウェア

タグ: , , ,

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください