[root@centos EPGRemote]# cp -r php/epgremote /var/www/epgrec/ ← EPGRemote用PHPをepgrec UNAインストール先へコピー
[root@centos EPGRemote]# cp config/config.json.sample config/config.json ← EPGRemote設定ファイルをサンプルよりコピー
[root@centos EPGRemote]# cp config/logConfig.json.sample config/logConfig.json ← EPGRemoteログ設定ファイルをサンプルよりコピー
[root@centos EPGRemote]# vi config/config.json ← EPGRemote設定ファイル編集
"enableLiveStream" : false, ← 放送中番組のHLS配信を無効化
"enableLiveHttpStream" : true, ← スマホからの放送中番組の視聴を有効化
"enableLivePCHttpStream" : false, ← PCからの放送中番組の視聴を無効化※PCからの放送中番組の視聴はepgrec UNAで行う
"enableRecordedStream" : false, ← 録画済番組のHLS配信を無効化※録画済番組の視聴はTSファイルを再生
"broadcast" : { "GR" : true, "BS" : true, "CS" : true, "EX" : false }, ← 視聴可能な放送波をepgrec UNAに合わせてtrueにする
"liveHttpVideoSetting" : [
{
"id" : 1,
"name" : "無変換(main)",
"command" : "/usr/bin/ffmpeg -re -dual_mono_mode main -i pipe:0 -acodec libfdk_aac -ar 48000 -ab 192k -ac 2 -vcodec copy -f mpegts -movflags frag_keyframe+empty_moov pipe:1" ← ffmpegコマンドパス変更
},
{
"id" : 2,
"name" : "無変換(sub)",
"command" : "/usr/bin/ffmpeg -re -dual_mono_mode sub -i pipe:0 -acodec libfdk_aac -ar 48000 -ab 192k -ac 2 -vcodec copy -f mpegts -movflags frag_keyframe+empty_moov pipe:1" ← ffmpegコマンドパス変更
},
{
"id" : 3,
"name" : "720x480(main)",
"command" : "/usr/bin/ffmpeg -re -dual_mono_mode main -i pipe:0 -acodec libfdk_aac -ar 48000 -ab 192k -ac 2 -vcodec libx264 -s 720x480 -filter:v yadif -aspect 16:9 -vb 1500k -f mpegts -movflags frag_keyframe+empty_moov pipe:1" ← ffmpegコマンドパス変更
},
{
"id" : 4,
"name" : "720x480(sub)",
"command" : "/usr/bin/ffmpeg -re -dual_mono_mode sub -i pipe:0 -acodec libfdk_aac -ar 48000 -ab 192k -ac 2 -vcodec libx264 -s 720x480 -filter:v yadif -aspect 16:9 -vb 1500k -f mpegts -movflags frag_keyframe+empty_moov pipe:1" ← ffmpegコマンドパス変更
}
],
−−チューナー定義差し替え(ここから)−−
"tuners": [
{
"id" : 1,
"name" : "PT3-S",
"types" : [ "BS", "CS" ],
"command" : "/usr/local/bin/recbond --driver /usr/local/lib/BonDriver/BonDriver_Proxy-S.so --b25 --sid - - "
},
{
"id" : 2,
"name" : "PT3-T",
"types" : [ "GR" ],
"command" : "/usr/local/bin/recbond --driver /usr/local/lib/BonDriver/BonDriver_Proxy-T.so --b25 --sid - - "
}
],
−−チューナー定義差し替え(ここまで)−−
"EpgrecDatabaseConfig" : {
"host": "localhost",
"user": "epgrec",
"password": "xxxxxxxx", ← epgrec UNA用DBパスワードを指定
"database": "epgrec",
"timeout": 5000
},
"epgrecConfig" : {
"host" : "http://127.0.0.1/epgrec/", ← epgrec UNAのアドレスを指定
"openHost": "http://192.168.0.2:1180",
"rootPath": "/var/www/epgrec",
"videoPath" : "/var/www/epgrec/video",
"thumbsPath" : "/var/www/epgrec/thumbs",
"recMode" : [
{ "id" : 0, "name" : "Full TS" },
{ "id" : 1, "name" : "HD TS" },
{ "id" : 2, "name" : "SD TS" },
{ "id" : 3, "name" : "H264-HD" },
{ "id" : 4, "name" : "H264-SD" }
],
"recModeDefaultId" : 1, ← デフォルトの録画形式をepgrec UNAと同じ"HD TS"にする
"startTranscodeId" : 3
},
[root@centos EPGRemote]# vi config/logConfig.json ← EPGRemoteログ設定ファイル編集
{
"type": "file",
"category": "system",
"maxLogSize": 1048576,
"backups": 3,
"category": "system",
"filename": "/usr/local/EPGRemote/logs/system.log", ← ログファイル名修正(system.log)
"pattern": "-yyyy-MM-dd"
},
{
"type": "file",
"category": "access",
"maxLogSize": 1048576,
"backups": 3,
"category": "access",
"filename": "/usr/local/EPGRemote/logs/access.log", ← ログファイル名修正(access.log)
"pattern": "-yyyy-MM-dd"
},
{
"type": "file",
"category": "stream",
"maxLogSize": 1048576,
"backups": 3,
"category": "stream",
"filename": "/usr/local/EPGRemote/logs/stream.log", ← ログファイル名修正(stream.log)
"pattern": "-yyyy-MM-dd"
},
[root@centos EPGRemote]# cd ← ホームディレクトリへ戻る
|
|