Skip to content

Commit

Permalink
Camera: further measurements show that -r 8 can be sustainable
Browse files Browse the repository at this point in the history
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
  • Loading branch information
rwaldron committed Mar 23, 2016
1 parent 2515876 commit d1f6e61
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions lib/camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Camera.prototype.capture = function(options) {

// Input...
'-f', 'v4l2',
'-r', 4,
'-r', 8,
'-s', `${state.width}x${state.height}`,
'-i', state.path,

Expand All @@ -138,7 +138,7 @@ Camera.prototype.capture = function(options) {
// args.splice(2, 0, '-f', 'v4l2');

args.push(
// '-r', 4,
// '-r', 8,
// '-i', '/dev/video0',
// '-y',
// '-s', '320x240',
Expand All @@ -147,7 +147,7 @@ Camera.prototype.capture = function(options) {
'-b:v', '64k',
// '-maxrate', '64k',
// '-movflags', '+faststart',
'-r', 4,
'-r', 8,
'pipe:1'
);
} else {
Expand Down
12 changes: 6 additions & 6 deletions test/unit/camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ exports['av.Camera'] = {
'-f',
'v4l2',
'-r',
4,
8,
'-s',
'320x240',
'-i',
Expand Down Expand Up @@ -134,7 +134,7 @@ exports['av.Camera'] = {
'-f',
'v4l2',
'-r',
4,
8,
'-s',
'320x240',
'-i',
Expand Down Expand Up @@ -171,7 +171,7 @@ exports['av.Camera'] = {
'-f',
'v4l2',
'-r',
4,
8,
'-s',
'320x240',
'-i',
Expand Down Expand Up @@ -208,7 +208,7 @@ exports['av.Camera'] = {
'-f',
'v4l2',
'-r',
4,
8,
'-s',
'320x240',
'-i',
Expand Down Expand Up @@ -278,7 +278,7 @@ exports['av.Camera'] = {
'-f',
'v4l2',
'-r',
4,
8,
'-s',
'320x240',
'-i',
Expand All @@ -292,7 +292,7 @@ exports['av.Camera'] = {
'-b:v',
'64k',
'-r',
4,
8,
'pipe:1',
]);

Expand Down

0 comments on commit d1f6e61

Please sign in to comment.