ts sniffer
FX2のファームウェアでAUTOINLENをいじると転送サイズを変更できたので色々と値を変えてみたけど、128バイト以下にすると取りこぼしが激しくなる? もうちょっとログを強化しないと原因がわからない。bitsream parserのほうの問題かもしれないし。
iManufacturerのstring descriptor読み出しは普通にできた。これで起動が早くなる。
今日はちびちびとログ強化など。
今はスレッドなしで動かしてるけど、B25デコーダは別スレッドにしないと厳しいかもしれないなー。意外とforkしてfifo pipe経由でやりとりするのが楽だったりするのかも。
だいぶ体裁が整ってきた
Usage: tsniff [OPTION...] -- MPEG2-TS Sniffer Help Options: -?, --help Show help options --help-all Show all help options --help-fx2 Show CUSBFX2 options --help-ir Show IR options --help-b25 Show ARIB STD-B25 deocder options Chameleon USB FX2 Options: --fx2-id=N Find CUSBFX2 it has ID N [0] --fx2-force-load Force load the firmware [disabled] --fx2-ts-buffer-size=N Set TS transfer buffer size to N bytes [16384] --fx2-ts-buffer-count=N Set TS transfer buffer count to N [16] Infrared Receiver Control Options: --ir-base=N Set IR base channel to N (1..3) [1] -s, --ir-source=N Set tuner source to N (0:Terestrial 1:BS 2:CS) -c, --ir-channel=C Set tuner channel to C (1..12) -3, --ir-three-channel=CCC Set tuner channel to CCC (BS/CS only) ARIB STD-B25 Deocder Options: -B, --b25-enable Enable B25 decoder [disabled] --b25-round=N Set MULTI-2 round factor to N [4] -S, --b25-strip Discard NULL packets from output [disabled] --b25-bcas-queue-size=N Set ECM buffer capacity of pseudo B-CAS reader to N [256] Application Options: -t, --ts-filename=FILENAME Output MPEG2-TS to FILENAME -b, --bcas-filename=FILENAME Output B-CAS stream to FILENAME -v, --verbose Verbose messages [disabled] -q, --quiet Quiet messages [disabled]
って、いまさら記録時間を指定するオプションが無いことに気づいた(笑)