Skip to content

Instantly share code, notes, and snippets.

@mikoim
Last active April 14, 2017 01:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikoim/7da6234ef37cfbc47236667d60e81bdb to your computer and use it in GitHub Desktop.
Save mikoim/7da6234ef37cfbc47236667d60e81bdb to your computer and use it in GitHub Desktop.
動画配信管理システムからURLを抜くやつ via RTMP
// ==UserScript==
// @name 動画配信管理システムからURLを抜くやつ(認証なし) via RTMP
// @namespace http://dsmsf.doshisha.ac.jp/
// @version 0.1
// @description foo
// @author |)05|-|!5|-|4 (_)|\\|!\\/3|25!7`/
// @match http://dsmsf.doshisha.ac.jp/Gateway/contentPlayAction.do?contentId=*
// @grant none
// ==/UserScript==
(function() {
'use strict';
let a = window.location.href.split('=');
alert(`rtmpdump -i 'rtmpt://doshisha.fmsod.stream.ne.jp/doshisha/_definst_/${a[a.length - 1]}/mp4:video1.mp4' --verbose --resume --flv video1.mp4`);
})();
// ==UserScript==
// @name 動画配信管理システムからURLを抜くやつ via RTMP
// @namespace http://dsmsf.doshisha.ac.jp/
// @version 0.1
// @description foo
// @author |)05|-|!5|-|4 (_)|\\|!\\/3|25!7`/
// @match http://dsmsf.doshisha.ac.jp/ContentCube/player.jsp?*
// @grant none
// ==/UserScript==
(function() {
'use strict';
let a = document.querySelector('object').baseURI.split('=');
alert(`rtmpdump -i '${a[a.length - 1]}mp4:video1.mp4' --verbose --resume --flv video1.mp4`);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment