ffmpeg -i a.mp4 -f mp3 -vn a.mp3
ffmpeg -i a.mp4 -vcodec copy -an b.mp4
to check if the server works - https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice | |
stun: | |
stun.l.google.com:19302, | |
stun1.l.google.com:19302, | |
stun2.l.google.com:19302, | |
stun3.l.google.com:19302, | |
stun4.l.google.com:19302, | |
stun.ekiga.net, | |
stun.ideasip.com, |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
''' | |
ffmpeg docs: | |
https://ffmpeg.org/ffmpeg.html | |
-y : yes to all | |
-i filename (input) |
var mediaJSON = { "categories" : [ { "name" : "Movies", | |
"videos" : [ | |
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ], | |
"subtitle" : "By Blender Foundation", | |
"thumb" : "images/BigBuckBunny.jpg", | |
"title" : "Big Buck Bunny" | |
}, | |
{ "description" : "The first Blender Open Movie from 2006", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ], |
(function(window) { | |
let lastTime = 0, | |
vendors = ['webkit', 'moz'], | |
requestAnimationFrame = window.requestAnimationFrame, | |
cancelAnimationFrame = window.cancelAnimationFrame, | |
i = vendors.length; | |
// try to un-prefix existing raf | |
while (--i >= 0 && !requestAnimationFrame) { | |
requestAnimationFrame = window[vendors[i] + 'RequestAnimationFrame']; |
const I = x => x; | |
const K = x => y => x; | |
const A = f => x => f(x); | |
const T = x => f => f(x); | |
const W = f => x => f(x)(x); | |
const C = f => y => x => f(x)(y); | |
const B = f => g => x => f(g(x)); | |
const S = f => g => x => f(x)(g(x)); | |
const P = f => g => x => y => f(g(x))(g(y)); | |
const Y = f => (g => g(g))(g => f(x => g(g)(x))); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
window.MediaSource = window.MediaSource || window.WebKitMediaSource; | |
function testTypes(types) { | |
for (var i = 0; i < types.length; ++i) | |
console.log("MediaSource.isTypeSupported(" + types[i] + ") : " + MediaSource.isTypeSupported(types[i])); | |
} |
+ function() { | |
function attr(node, attr, default_value) { | |
return Number(node.getAttribute(attr)) || default_value; | |
} | |
// get user config | |
var scripts = document.getElementsByTagName('script'), | |
script = scripts[scripts.length - 1]; // 当前加载的script | |
config = { | |
z: attr(script, "zIndex", -1), // z-index |
##参考链接
##问题 - 可能会遇到多个版本同时部署的情况
##解决方法 - pyenv
//依赖模块 | |
var fs = require('fs'); | |
var request = require("request"); | |
var cheerio = require("cheerio"); | |
var mkdirp = require('mkdirp'); | |
//目标网址 | |
var url = 'http://www.mmjpg.com/'; | |
//本地存储目录 |