Install ffmpeg
brew install ffmpeg
Download file through url, like this:
ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "http://url-file.domain.m3u8" -c copy video.mp4
Install ffmpeg
brew install ffmpeg
Download file through url, like this:
ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "http://url-file.domain.m3u8" -c copy video.mp4
# On OS X, with an ffmpeg installed via Homebrew, the following command works and results in a single-frame movie file that is compatible with Chrome, QuickTime and the latest iDevices: | |
ffmpeg -i FILENAME.png -an -vcodec libx264 -coder 1 -flags +loop -cmp +chroma -subq 10 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -profile:v high -level 4.2 -pix_fmt yuv420p -vf “scale=trunc(iw/2)*2:trunc(ih/2)*2” -trellis 2 -partitions +parti8x8+parti4x4 -crf 24 -threads 0 -r 25 -g 25 -y FILENAME.mp4 |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width,initial-scale=1"> | |
<title>title</title> | |
<link rel="stylesheet" href="style.css"> | |
<script src="script.js"></script> | |
</head> | |
<body> |
% A simple test suite for PA 4 | |
% | |
% copy the comparedata.m file from last week's test suite or from | |
% http://www.mathworks.com/matlabcentral/fileexchange/1459-comparedata | |
% into the directory for this weeks assignment and save this file | |
% as PA4_Run_Tests.m | |
% | |
% If you call PA4_RUn_Tests, it will always run all tests in sequence until the | |
% first test fails. | |
function result = PA4_Run_Tests(anyway) |
% A simple test suite for PA 3 | |
% | |
% copy the comparedata.m file from last week's test suite or from | |
% http://www.mathworks.com/matlabcentral/fileexchange/1459-comparedata | |
% into the directory for this weeks assignment and save this file | |
% as PA3Test.m | |
% | |
% A test can have three different results: | |
% - If the test suite says "OK", your code produced the exactly the same | |
% output as the sample data. |
// Create a "fake" jQuery function that accepts function arguments to be | |
// queued as DOM ready callbacks. | |
(function(window){ | |
var fake = window.jQuery = window.$ = function( fn ) { | |
if ( Object.prototype.toString.call( fn ) === '[object Function]' ) { | |
fake.queue.push( fn ); | |
} | |
}; |