amaya382 / docker-mirakurun-chinachu-encoder Goto Github PK
View Code? Open in Web Editor NEW:tv: All-in-One Recording and Encoding System on Docker
Home Page: https://hub.docker.com/r/amaya382/chinachu/
License: Apache License 2.0
:tv: All-in-One Recording and Encoding System on Docker
Home Page: https://hub.docker.com/r/amaya382/chinachu/
License: Apache License 2.0
エンコードだけでなくCMカット機能なども取り入れられるようにする
提案: chinachu
のベースを dind
に変更して, 録画後処理用コンテナを別に設ける
mirakurun | 0|mirakuru | at Object.<anonymous> (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:53:21)
mirakurun | 0|mirakuru | at Module._compile (module.js:570:32)
mirakurun | 0|mirakuru | Error: Command failed: renice -n -10 -p 189
mirakurun | 0|mirakuru | renice: setpriority: Permission denied
mirakurun | 0|mirakuru |
mirakurun | 0|mirakuru | at checkExecSyncError (child_process.js:483:13)
mirakurun | 0|mirakuru | at Object.execSync (child_process.js:523:13)
mirakurun | 0|mirakuru | at Object.<anonymous> (/usr/lib/node_modules/mirakurun/lib/server.ts:51:5)
mirakurun | 0|mirakuru | at Module._compile (module.js:570:32)
mirakurun | 0|mirakuru | at Object.Module._extensions..js (module.js:579:10)
mirakurun | 0|mirakuru | at Module.load (module.js:487:32)
mirakurun | 0|mirakuru | at tryModuleLoad (module.js:446:12)
mirakurun | 0|mirakuru | at Function.Module._load (module.js:438:3)
mirakurun | 0|mirakuru | at Object.<anonymous> (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:53:21)
mirakurun | 0|mirakuru | at Module._compile (module.js:570:32)
dockerのloggerに流し込む (?)
チューナーは devices
で, カードリーダーは要調査
vp8_vaapi
は本家のmerge待ち (Chinachu/Chinachu@2312b3b)複数のエンコードが同時に走るとオーバーヘッドが大きい
エンコーディングキューを設ける (?)
実行ユーザ自体を docker-compose.yml
の user
経由で変える or 録画後に chown
(?)
バージョン弄る時に不便なので
runtime/config.json
runtime/rules.json
コンテナ内でシンボリックリンクを張ってディレクトリレベルでのData Volumeを使う
オーダリングから自動で決まる削除候補のファイルオーナー次第では削除に失敗するのでなんとかする
過去の失敗を活かせ
裏でエンコード中にコンテナを潰してしまった場合など, エンコードに失敗した祭のリカバリ処理を追加する
提案: 起動スクリプト で *_.mp4
ファイルを検知して再実行(?)
現状 recordedFormat
によるパスを利用しているが, エンコードされたことがわかりにくく, 内部的に適切な拡張子に書き換えるべき. ただし, 単純に書き換えてしまうと, recorded.json
を追従させても chinachu-wuiからの見え方がおかしくなる (オンメモリで保持している情報にうまく反映させられていない?). また, chinachuのストリーミング再生に影響が出ないように注意する.
chinachuの再起動なしにWUIが追従するように拡張子を書き換える
*.mp4
が *.m2ts
で降ってくる
すいません。間違って投稿しました。
実装が汚いので wait-for-it に置き換える
チャンネルスキャン用のコマンドの問題を解決できればそのまま curl
を削除する
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.