cninachu γから録画したものだけが画像が乱れる

結果論から言うとHDDを替えたら治った。
原因は不明

再発した

とりあえず、書き出しだけ

cninachu γのWEB UIから録画したものだけ画像が乱れる
rec

こんな感じ、ノイズが酷い後音も飛ぶ

recpt1 --strip -b25 27 10 test.ts
rivarun --b25 --sid 1056 --ch GR/21 15 test.ts
rivarun --b25 --mirakurun localhost:40772 --sid 1024 --ch GR/27 15 test2.ts

上記コマンドは綺麗に再生出来た

切り分けの方法が分からぬ

「disk io が足りてないのかも」と言われたのでそのうち確認してみる

構成
FUJITSU Server PRIMERGY TX1310 M1
PT3*2
350GB HDD
3T HDD




					

cninachu γでTOKYO MXや千葉テレビが受信できない

未解決
ケーブル変えたら治った
テスト用に使ったケーブル(10mくらい)が原因

ビフォー

[root@10 ~]# checksignal --device /dev/pt3video7 16
device = /dev/pt3video7
C/N = 9.582304dB

アフター

[root@10 ~]# checksignal --device /dev/pt3video2 16
device = /dev/pt3video2
C/N = 33.454903dB^C

Mirakurunのインストール手順(Ubuntu・Debian・CentOS)


ここにも同じような人が居た

[root@10 ~]#  npm list --depth=0 -g
/usr/lib
tqq arib-b25-stream-test@0.2.9
tqq mirakurun@2.5.7
tqq npm@3.10.10
tqq pm2@2.8.0
mqq rivarun@1.2.0
[root@10 ~]# rivarun --list | sed 's/},/},\n/g'
status: 200
headers: {"server":"Mirakurun/2.5.7","content-type":"application/json; charset=utf-8","date":"Tue, 05 Dec 2017 16:44:43 GMT","connection":"close","content-length":"2763"}
[{"type":"GR","channel":"27","name":"NHK総合・東京","services":[{"id":3273601024,"serviceId":1024,"networkId":32736,"name":"NHK総合1・東京"},
{"id":3273601025,"serviceId":1025,"networkId":32736,"name":"NHK総合2・東京"},
{"id":3273601408,"serviceId":1408,"networkId":32736,"name":"NHK携帯G・東京"}]},
{"type":"GR","channel":"26","name":"NHK Eテレ東京","services":[{"id":3273701032,"serviceId":1032,"networkId":32737,"name":"NHKEテレ1東京"},
{"id":3273701033,"serviceId":1033,"networkId":32737,"name":"NHKEテレ2東京"},
{"id":3273701034,"serviceId":1034,"networkId":32737,"name":"NHKEテレ3東京"},
{"id":3273701416,"serviceId":1416,"networkId":32737,"name":"NHK携帯2"}]},
{"type":"GR","channel":"25","name":"日本テレビ","services":[{"id":3273801040,"serviceId":1040,"networkId":32738,"name":"日テレ1"},
{"id":3273801041,"serviceId":1041,"networkId":32738,"name":"日テレ2"},
{"id":3273801424,"serviceId":1424,"networkId":32738,"name":"日本テレビ"}]},
{"type":"GR","channel":"24","name":"テレビ朝日","services":[{"id":3274101064,"serviceId":1064,"networkId":32741,"name":"テレビ朝日"},
{"id":3274101065,"serviceId":1065,"networkId":32741,"name":"テレビ朝日"},
{"id":3274101066,"serviceId":1066,"networkId":32741,"name":"テレビ朝日"},
{"id":3274101448,"serviceId":1448,"networkId":32741,"name":"テレビ朝日"}]},
{"type":"GR","channel":"22","name":"TBS","services":[{"id":3273901048,"serviceId":1048,"networkId":32739,"name":"TBS1"},
{"id":3273901049,"serviceId":1049,"networkId":32739,"name":"TBS2"},
{"id":3273901432,"serviceId":1432,"networkId":32739,"name":"TBS"},
{"id":3273901183,"serviceId":1183,"networkId":32739,"name":"Gガイド"}]},
{"type":"GR","channel":"23","name":"テレビ東京","services":[{"id":3274201072,"serviceId":1072,"networkId":32742,"name":"テレビ東京1"},
{"id":3274201073,"serviceId":1073,"networkId":32742,"name":"テレビ東京2"},
{"id":3274201074,"serviceId":1074,"networkId":32742,"name":"テレビ東京3"},
{"id":3274201456,"serviceId":1456,"networkId":32742,"name":"テレビ東京携帯"}]},
{"type":"GR","channel":"21","name":"フジテレビジョン","services":[{"id":3274001056,"serviceId":1056,"networkId":32740,"name":"フジテレビ"},
{"id":3274001057,"serviceId":1057,"networkId":32740,"name":"フジテレビ"},
{"id":3274001058,"serviceId":1058,"networkId":32740,"name":"フジテレビ"},
{"id":3274001440,"serviceId":1440,"networkId":32740,"name":"フジテレビ"}]},
{"type":"GR","channel":"16","name":"TOKYO MX","services":[]},
{"type":"GR","channel":"28","name":"放送大学","services":[]},
{"type":"GR","channel":"30","name":"千葉テレビ","services":[]}]
[root@10 ~]# rivarun --list | sed 's/},/},\n/g'  | grep -v serviceId
status: 200
headers: {"server":"Mirakurun/2.5.7","content-type":"application/json; charset=utf-8","date":"Tue, 05 Dec 2017 16:45:28 GMT","connection":"close","content-length":"2763"}
{"type":"GR","channel":"16","name":"TOKYO MX","services":[]},
{"type":"GR","channel":"28","name":"放送大学","services":[]},
{"type":"GR","channel":"30","name":"千葉テレビ","services":[]}]

TOKYO MXの受信感度がかなり悪い。何でだろう

0|mirakuru | 2017-12-06T22:36:24.125+09:00 info: ChannelItem#'放送大学' service scan has started
0|mirakuru | 2017-12-06T22:36:24.126+09:00 info: TSFilter has created (serviceId=null, eventId=null)
0|mirakuru | 2017-12-06T22:36:24.137+09:00 info: TunerDevice#4 process has spawned by command `recpt1 --device /dev/pt3video6 28 - -` (pid=11704)
0|mirakuru | 2017-12-06T22:36:24.137+09:00 info: TunerDevice#4 streaming to user `Mirakurun:getServices()` (priority=-1)
0|mirakuru | 2017-12-06T22:36:24.139+09:00 info: TunerDevice#4 > using device: /dev/pt3video6
0|mirakuru | pid = 11704
0|mirakuru | 2017-12-06T22:36:24.969+09:00 info: TunerDevice#4 > device = /dev/pt3video6
0|mirakuru | 2017-12-06T22:36:24.971+09:00 info: TunerDevice#4 > C/N = -nandB
0|mirakuru | 2017-12-06T22:36:24.972+09:00 info: TunerDevice#4 > Recording...
0|mirakuru | 2017-12-06T22:36:44.138+09:00 info: TSFilter has closed (serviceId=null, eventId=null)
0|mirakuru | 2017-12-06T22:36:44.138+09:00 info: TunerDevice#4 end streaming to user `Mirakurun:getServices()` (priority=-1)
0|mirakuru | 2017-12-06T22:36:44.138+09:00 warn: ChannelItem#'放送大学' service scan has failed [Error: stream has closed before get network]
0|mirakuru | 2017-12-06T22:36:44.138+09:00 info: ChannelItem#'TOKYO MX' service scan has started
0|mirakuru | 2017-12-06T22:36:44.139+09:00 info: TSFilter has created (serviceId=null, eventId=null)
0|mirakuru | 2017-12-06T22:36:44.150+09:00 info: TunerDevice#5 process has spawned by command `recpt1 --device /dev/pt3video7 16 - -` (pid=11712)
0|mirakuru | 2017-12-06T22:36:44.150+09:00 info: TunerDevice#5 streaming to user `Mirakurun:getServices()` (priority=-1)
0|mirakuru | 2017-12-06T22:36:44.152+09:00 info: TunerDevice#5 > using device: /dev/pt3video7
0|mirakuru | 2017-12-06T22:36:44.152+09:00 info: TunerDevice#5 > pid = 11712
0|mirakuru | 2017-12-06T22:36:45.027+09:00 info: TunerDevice#5 > device = /dev/pt3video7
0|mirakuru | 2017-12-06T22:36:45.029+09:00 info: TunerDevice#5 > C/N = 10.088181dB
0|mirakuru | 2017-12-06T22:36:45.030+09:00 info: TunerDevice#5 > Recording...
0|mirakuru | 2017-12-06T22:36:47.138+09:00 info: TunerDevice#4 > SIGTERM received. cleaning up...
0|mirakuru | 2017-12-06T22:36:47.138+09:00 info: TunerDevice#4 > Recorded 23sec
0|mirakuru | 2017-12-06T22:36:47.820+09:00 info: TunerDevice#4 process has closed with exit code=0 by signal `null` (pid=11704)
0|mirakuru | 2017-12-06T22:37:04.150+09:00 info: TSFilter has closed (serviceId=null, eventId=null)
0|mirakuru | 2017-12-06T22:37:04.151+09:00 info: TunerDevice#5 end streaming to user `Mirakurun:getServices()` (priority=-1)
0|mirakuru | 2017-12-06T22:37:04.152+09:00 warn: ChannelItem#'TOKYO MX' service scan has failed [Error: stream has closed before get network]
^C
[root@10 ~]# recpt1 --strip -b25 16 10 test.ts
enable B25 strip
using B25...
recpt1: invalid option -- '2'
recpt1: invalid option -- '5'
pid = 11726
C/N = 9.632417dB
Recording...
b25->put failed
b25_decode failed (code=-4). fall back to encrypted recording.
Recorded 11sec

[root@10 ~]# checksignal --device /dev/pt3video7 16
device = /dev/pt3video7
C/N = 9.582304dB

CentOS7にPT3とSoftCasとその他もろもろ入れるメモ

Fujitsu PRIMERGY TX1310M1 が安く手に入ったので録画サーバーをリプレースしたのでその時のメモ
基本的にはここ参考に録画サーバ構築の前準備(CentOS 7編)、Chinachu・epgrec UNA対応 | 自分に負けないラボラトリー

入れたてのCentOS7でmakeが通らないのでメモ
yumで色々入れとけばmakeは通る。
不要な物もあるかも

yum -y install git kernel-devel-`uname -r` git unzip bzip2 wget gcc gcc-c++ kernel-devel vim wget unzip bzip2 make autogen automake kernel-devel patch perl-ExtUtils-MakeMaker libtool openssl-devel libboost-all-dev boost-devel cmake pcsc-lite pcsc-lite-devel  pcsc-lite-libs

PT3ドライバ、arib25ライブラリ、recpt1コマンドを参考に

SoftCasはLinuxでSoftCasは使用できるのか? ~CentOS 7編~ | 俺的備忘録 〜なんかいろいろ〜を参考に

下記コマンドを入力するが

# wget http://www.wazoku.net/softcas.zip
# unzip softcas.zip
# cd softcas
# wget -O winscard.cpp https://pastebin.com/raw/5144Ah9g
# wget -O Makefile https://pastebin.com/raw/FQdSixkB

makeするとKeys.hがないと言われる

# make
g++  -g -fPIC -O2 -I /usr/include/PCSC  -c -o winscard.o winscard.cpp
winscard.cpp:12:18: fatal error: Keys.h: No such file or directory
 #include "Keys.h"
                  ^
compilation terminated.
make: *** [winscard.o] Error 1

配布ファイルが変更されていて一発でmakeが通らなくなっている。
自分は心が折れて昔の録画サーバーからソースコードを取ってきた。

ソースコードの一文をググるとこの辺がヒットするので参考になるかも

下のファイルが有ればコンパイル出来る

-rw-r--r--. 1 root root 13209 Dec  3 21:40 Crypto.cpp
-rw-r--r--. 1 root root   296 Dec  3 21:40 Crypto.h
-rw-r--r--. 1 root root 34136 Dec  3 21:40 Crypto.o
-rw-r--r--. 1 root root  1917 Dec  3 21:40 Decoder-ECM.cpp
-rw-r--r--. 1 root root  8504 Dec  3 21:41 Decoder-ECM.o
-rw-r--r--. 1 root root   331 Dec  3 21:40 Decoder.h
-rw-r--r--. 1 root root   410 Dec  3 21:40 Global.h
-rw-r--r--. 1 root root  1831 Dec  3 21:40 Keys.cpp
-rw-r--r--. 1 root root  1084 Dec  3 21:40 Keyset.cpp
-rw-r--r--. 1 root root   484 Dec  3 21:40 Keyset.h
-rw-r--r--. 1 root root 14600 Dec  3 21:40 Keyset.o
-rw-r--r--. 1 root root   444 Dec  3 21:40 Keys.h
-rw-r--r--. 1 root root  7248 Dec  3 21:40 Keys.o
-rwxr-xr-x. 1 root root 57728 Dec  3 21:41 libpcsclite.so.1.0.0
-rw-r--r--. 1 root root   364 Dec  3 21:40 Makefile
-rw-r--r--. 1 root root  1235 Dec  3 21:40 softcas.sln
-rw-r--r--. 1 root root  7262 Dec  3 21:40 softcas.vcxproj
-rw-r--r--. 1 root root  1429 Dec  3 21:40 softcas.vcxproj.filters
drwxr-xr-x. 2 root root    26 Dec  3 21:40 Win32
-rw-r--r--. 1 root root  3517 Dec  3 21:40 winscard.cpp
-rw-r--r--. 1 root root 14400 Dec  3 21:40 winscard.o
drwxr-xr-x. 2 root root    26 Dec  3 21:40 x64

物が揃えば下記コマンドで出来る

# make
# cp libpcsclite.so.1.0.0 /usr/lib64/

#ubuntuは

# make
# cp libpcsclite.so.1.0.0 /lib/x86_64-linux-gnu/