Skip to content

Instantly share code, notes, and snippets.

@garaemon
Created May 24, 2013 10:49
Show Gist options
  • Save garaemon/5642679 to your computer and use it in GitHub Desktop.
Save garaemon/5642679 to your computer and use it in GitHub Desktop.
ustのページからffmpegでごにょごにょするコマンドを抽出するbookmarklet
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")
@garaemon
Copy link
Author

適当にこのへんでbookmarkletに変換してください
http://ted.mielczarek.org/code/mozilla/bookmarklet.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment