0
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

ubuntuで録画鯖

Last updated at Posted at 2021-09-07

PXS1UDのドライバーインストール

wget http://plex-net.co.jp/plex/px-s1ud/PX-S1UD_driver_Ver.1.0.1.zip
unzip PX-S1UD_driver_Ver.1.0.1.zip
sudo cp PX-S1UD_driver_Ver.1.0.1/x64/amd64/isdbt_rio.inp /lib/firmware/

カードリーダードライバーのインストール

sudo apt install -y build-essential git
sudo apt install -y pcscd libpcsclite-dev libccid pcsc-tools

B-Casのデコード用ライブラリのインストール

sudo apt install -y cmake g++
wget https://github.com/stz2012/libarib25/archive/master.zip
unzip master.zip
cd libarib25-master
cmake .
make
sudo make install
cd ../

録画用コマンドのインストール

sudo apt install -y autoconf automake libtool autoconf-doc libtool-doc
wget http://www13.plala.or.jp/sat/recdvb/recdvb-1.3.1.tgz
tar xvzf recdvb-1.3.1.tgz
cd recdvb-1.3.1
./autogen.sh
./configure --enable-b25
make
sudo make install
cd ../

node.js Ver.16・pm2 curlインストール

apt install -y curl
(但しraspberryOSは入れなくても大丈夫)
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt install -y nodejs
sudo apt install -y npm
sudo npm install -y pm2 -g

mirakurun インストール

sudo npm install mirakurun -g --unsafe --production
sudo nano /usr/local/etc/mirakurun/tuners.yml
PX-S1UD
- name: PX-S1UD-1
  types:
    - GR
  command: recdvb --b25 --strip --dev 0 <channel> - -

- name: PX-S1UD-2
  types:
    - GR
  command: recdvb --b25 --strip --dev 1 <channel> - -
PX-Q1UD
- name: PX-Q1UD-1_1
  types:
    - GR
  command: recdvb --b25 --strip --dev 0 <channel> - -

- name: PX-Q1UD-1_2
  types:
    - GR
  command: recdvb --b25 --strip --dev 1 <channel> - -

- name: PX-Q1UD-1_3
  types:
    - GR
  command: recdvb --b25 --strip --dev 2 <channel> - -

- name: PX-Q1UD-1_4
  types:
    - GR
  command: recdvb --b25 --strip --dev 3 <channel> - -

そして地元局をスキャンしていく

curl -X PUT "http://localhost:40772/api/config/channels/scan"

終わったら
sudo mirakurun restart

sudo apt install -y sqlite3
sudo apt install -y ffmpeg
git clone https://github.com/l3tnun/EPGStation.git
cd EPGStation
npm run all-install
npm run build
cp config/config.yml.template config/config.yml
cp config/operatorLogConfig.sample.yml config/operatorLogConfig.yml
cp config/epgUpdaterLogConfig.sample.yml config/epgUpdaterLogConfig.yml
cp config/serviceLogConfig.sample.yml config/serviceLogConfig.yml
cp config/enc.js.template config/enc.js
sudo npm install pm2 -g
sudo pm2 startup
pm2 start dist/index.js --name "epgstation"
pm2 save

ライブ視聴するには

cd EPGStation/config
nano config.yml

ffmpeg: /usr/local/bin/ffmpeg
ffprobe: /usr/local/bin/ffprobe
のところを

ffmpeg: '/usr/bin/ffmpeg'
ffprobe: '/usr/bin/ffprobe'

に直して
pm2 restart epgstation
してあげれば大丈夫です。

0
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?