ffmpeg -ss <start_time_hh:ii:ss> -i input.mp4 -to <length_in_hh:ii:ss_from_start> -c copy ./out.mp4
ffmpeg -ss 00:47:42 -i input.mp4 -to 00:01:49 -c copy ./out.mp4Resources to help comparing & evaluating different CSS compressing techniques in general, and specifically different open-source CSS compressor implementations, with a clear focus on, but not limited to, JS/NodeJS based tools.
"Long, fragile lists of self-contradictory rules"
— Douglas Crockford on CSS
| // --------------------------------------- | |
| // By Steven Levithan <stevenlevithan.com> | |
| // <blog.stevenlevithan.com/archives/fast-string-multiply> | |
| // --------------------------------------- | |
| var mul_sl_0 = function (str, num) { | |
| if (!num) return ""; | |
| var newStr = str; | |
| while (--num) newStr += str; | |
| return newStr; |
| Engine name / version | Testruns started | Testruns failed | Bytes saved (cumm.) | Compression ratio | Processing time (cumm.) |
|---|---|---|---|---|---|
| clean-css (@4.1.2) | 14 | 0 | 29.67 % | 1.422:1 | 1002.73 ms |
| clean-css (advanced off) (@4.1.2) | 14 | 0 | 29.67 % | 1.422:1 | 623.93 ms |
| crass (@0.10.3) | 14 | 1 | 34.10 % | 1.518:1 | 9703.95 ms |
| crass (o1 off) (@0.10.3) | 14 | 1 | 31.33 % | 1.456:1 | 4887.22 ms |
| css-condense (@0.1.1) | 14 | 0 | 29.18 % | 1.412:1 | 353.16 ms |
| cssnano (@3.10.0) | 14 | 0 | 33.85 % | 1.512:1 | 9234.36 ms |
| csso (@3.1.1) | 14 | 0 | 32.73 % | 1.487:1 | 924.32 ms |
| csso (restructure off) (@3.1.1) | 14 | 0 | 29.43 % | 1.417:1 | 186.18 ms |
Click to open cssmin.js demo (opens the raw gist URL of
cssmin-demo.htmlvia rawgit.com)
"Fork" of the official cssmin.js demo, which is broken since a while (because of hotlinking assets to raw.github.com).
Hotlinking assets to raw.github.com produces mime type errors, as files are returned as text/plain by the server. So I just replaced the raw.github.com link with a rawgit.com link to fix the mime type issue, thus the demo.
(Official demo is hosted outside the Github universe. No chance to send a PR, thus this "fork".)
| (function(window) { | |
| "use strict"; | |
| var mutations = { | |
| attrib: [], | |
| childs: { | |
| add: [], | |
| del: [] | |
| } | |
| }; |
Advanced tool-set to streamline administrative tasks for Microsoft® Windows®.
The Microsoft® Windows® Resource Kit Tools (RK-Tools) are a set of tools to help System-Administrators, Developers, and Powerusers streamline a wide range of common, administrative tasks for the Microsoft® Windows® Operating System (OS).
| <?php | |
| error_reporting(0); | |
| ini_set("xdebug.halt_level", "0"); | |
| ini_set("xdebug.force_error_reporting", "0"); | |
| ini_set("xdebug.force_display_errors", "0"); | |
| const HHVM_PHP_INI = "/etc/hhvm/php.ini"; | |
| const HHVM_SERVER_INI = "/etc/hhvm/server.ini"; |
A quick guide on how to read/write/modify ID3 metadata tags for audio / media files using ffmpeg.
FFmpeg has a free-form command line option that allows the user to specify key-value-pairs for encoding metadata. Let's take a look.
To list all global metadata tags for a media file, just set an input but no output file.
| <?php | |
| // Function `parse_yturl()` from <http://stackoverflow.com/a/10524505/624466> | |
| /** | |
| * Check if the input string is a valid YouTube URL | |
| * and try to extract the YouTube Video ID from it. | |
| * | |
| * @author Stephan Schmitz <[email protected]> | |
| * @param $url string The string that shall be checked. |