LoginSignup
14
13

More than 5 years have passed since last update.

ustreamをffmpegで録画する

Last updated at Posted at 2013-05-24

メモ

ここの記事を参考に

まずffmpegをインストール。僕はmacなのでhomebrewで

brew install ffmpeg

以下のjsでcidを抜き出せる

var url = $('meta[property="og:video"]').attr("content");
var parser = document.createElement('a');
parser.href = url;
var cid = parser.search.match(/cid=([0-9a-zA-Z]+)/)[1];
alert("ffmpeg -re -i http://iphone-streaming.ustream.tv/uhls/" + cid + "/streams/live/iphone/playlist.m3u8 -c copy out.ts")

こことかでbookmarkletにしてみたりするとよい

bookmarkletを実行すると、コマンドが出てくるのでそれをterminalにはりつけて、
おしまい。

スクリーンショット 2013-05-24 21.45.54.png

14
13
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
14
13