-
Use the
h264_mp4toannexb
bitstream filter to convert the mp4s (video steam only) into the AnnexB bitstream formatffmpeg -i input1.mp4 -vcodec copy -vbsf h264_mp4toannexb -acodec copy part1.ts # repeat for up to inputN
-
Concat the files using cat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type ApacheLogRecord struct { | |
http.ResponseWriter | |
ip string | |
time time.Time | |
method, uri, protocol string | |
status int | |
responseBytes int64 | |
elapsedTime time.Duration | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Objective-C method for composing a HTTP multipart/form-data body. | |
// Provide parameters and data in a NSDictionary. Outputs a NSData request body. | |
// License: Public Domain | |
// Author: Leonard van Driel, 2012 | |
@interface MultipartExample @end | |
@implementation MultipartExample | |
+ (void)exampleUsageUploadImage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// We need to notify V8 when we're idle so that it can run the garbage | |
// collector. The interface to this is V8::IdleNotification(). It returns | |
// !! "not" true if the heap hasn't be fully compacted, and needs to be run again. | |
// Returning false means that it doesn't have anymore work to do. | |
// | |
// A rather convoluted algorithm has been devised to determine when Node is | |
// idle. You'll have to figure it out for yourself. | |
static uv_check_t gc_check; // -> Check() Called once right after the event loop unblocks. | |
static uv_idle_t gc_idle; // This is called in loop when the event loop dont have anything to do (until stopped). | |
static uv_timer_t gc_timer; // Usual timer. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: sapi/cli/config.w32 | |
=================================================================== | |
--- sapi/cli/config.w32 (revision 308839) | |
+++ sapi/cli/config.w32 (working copy) | |
@@ -6,7 +6,8 @@ | |
ARG_ENABLE('cli-win32', 'Build console-less CLI version of PHP', 'no'); | |
if (PHP_CLI == "yes") { | |
- SAPI('cli', 'php_cli.c', 'php.exe'); | |
+ SAPI('cli', 'php_cli.c php_http_parser.c php_cli_server.c', 'php.exe'); |
If you do this, you are awesome.
- Update to node 0.4.0
- Go to https://github.com/ry/node/issues
- Pick a bug.
- Try to reproduce it.
- Comment with either:
- "works for me on 0.4.0"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Module dependencies. | |
*/ | |
var express = require('express'); | |
var app = express.createServer(); | |
function params(req, res, next) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Module dependencies. | |
*/ | |
var inspect = require('sys').inspect; | |
console.inspect = function(obj, depth){ | |
if (!obj) return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require.registerExtension('.js', function(js){ | |
return js.replace(/^ *\/\/debug: */gm, ''); | |
}); |