Code Monkey home page Code Monkey logo

tsumugi's Introduction

このプロジェクトはもう使われていません THIS PROJECT IS NO LONGER MAINTAINED

tsumugi

超!A&Gを保存して好きなときに見られるようにする

Versions

  • v1.0 : 時間を指定して特定の番組のみ保存
  • v2.0 : 公式HPの番組表を元に全ての番組を保存

Require

  • node.js
  • rtmpdump
sudo yum install openssl-devel
wget http://rtmpdump.mplayerhq.hu/download/rtmpdump-2.3.tgz
tar xzf rtmpdump-2.3.tgz
cd rtmpdump-2.3
make SYS=posix
sudo cp -p rtmpdump rtmpgw rtmpsrv rtmpsuck /usr/local/bin
  • ffmpeg
  • x264とfdk_aacを使ってるので自前でビルドしてください
  • CentOSの場合の手順はこちら

WebAccess

ポート80でアクセスする場合、nginxでリバースプロキシを立てるとよい

設定ファイルの例

upstream tsumugi {
  server localhost:3000;
}

server {
  listen      80;
  server_name tsumugi.yourdomain.com;
  charset     UTF-8;

  root        /path/to/tsumugi;

  # BASIC認証を掛けるときはコメントアウトを外す
  #auth_basic           "Login message";
  #auth_basic_user_file /path/to/.htpasswd;

  location / {
    proxy_redirect                      off;
    proxy_set_header Host               $host;
    proxy_set_header X-Real-IP          $remote_addr;
    proxy_set_header X-Forwarded-Host   $host;
    proxy_set_header X-Forwarded-Server $host;
    proxy_set_header X-Forwarded-For    $proxy_add_x_forwarded_for;
    proxy_pass                          http://tsumugi/;
  }
}

License

(c) 2015 nibral

Released under MIT License.

http://opensource.org/licenses/mit-license.php

tsumugi's People

Contributors

nibral avatar

Stargazers

 avatar

Watchers

 avatar  avatar

tsumugi's Issues

S3のファイルをWebから見られるようにする

  • express w/ jade
  • 録画済みファイルを一覧できるページを作る
  • S3の制限付きURLを発行し、videoタグで参照する
  • URLの有効期限がデフォルトだと短すぎる(15分?)ので、番組の長さを考慮して設定

録画済みファイルをS3にアップロードする

  • 事前に指定したキーワードにヒットする番組のみアップロードする
    • すべてアップロードすると100GB単位で容量を使うので料金が高い
  • S3側の構造はバケット名/番組名/放送日.mp4にする

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.