Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only get part of blob #2

Open
ghost opened this issue Aug 11, 2016 · 0 comments
Open

Only get part of blob #2

ghost opened this issue Aug 11, 2016 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 11, 2016

Hi, I've used your code to create a streaming desktop system using the following ffmpeg child process in node server:
var ffmpeg = require('child_process').spawn("ffmpeg", [
"-f",
"avfoundation",
"-i",
"1:0",
"-q:v",
"31",
"-r",
"10",
"-f",
"mjpeg",
"pipe:1"
]);

and on the stdout.on('data') function I broadcast it to my web socket as follows:
var frame = new Buffer(data).toString('base64');
ws.broadcast(frame, {binary:false});

when the canvas updates on receiving of the web socket data, it only draws the first top 100 pixels, any clues ? It looks like the frame it not complete ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants