I just use VLC to broadcast a ts content with the 5M bps through udp, and using the following Nodejs codes to recieve the data and output them to stdout:
var socket = require( "dgram" ).createSocket( "udp4" );
var fs = require('fs');
// Listen messages
socket.on(
"message",
function ( message, requestInfo ) {
process.stdout.write(message);
}
);
...
The problem is: it seems the pipe's speed can't meet 5M bps. I have check the output data from the pipe of stdout and found some of the data missed. I just wander if the pipe can't support the throughput more than 5Mbps? Does anybody can give some suggestions? Thanks ahead.
BTW: OS: win7; Nodejs version: 0.10.33