@@ -1088,122 +1088,122 @@ describe('Processor', function() {
1088
1088
} ) ;
1089
1089
} ) ;
1090
1090
1091
- describe . skip ( 'Remote I/O' , function ( ) {
1092
- this . timeout ( 60000 ) ;
1093
-
1094
- var ffserver ;
1095
-
1096
- before ( function ( done ) {
1097
- testhelper . logger . debug ( 'spawning ffserver' ) ;
1098
- ffserver = spawn (
1099
- 'ffserver' ,
1100
- [ '-d' , '-f' , path . join ( __dirname , 'assets' , 'ffserver.conf' ) ] ,
1101
- { cwd : path . join ( __dirname , 'assets' ) }
1102
- ) ;
1103
-
1104
- // Wait for ffserver to be ready
1105
- var isready = false ;
1106
- function ready ( ) {
1107
- if ( ! isready ) {
1108
- testhelper . logger . debug ( 'ffserver is ready' ) ;
1109
- isready = true ;
1110
- done ( ) ;
1111
- }
1112
- }
1113
-
1114
- ffserver . stdout . on ( 'data' , function ( d ) {
1115
- if ( d . toString ( ) . match ( / s e r v e r s t a r t e d / i) ) {
1116
- ready ( ) ;
1117
- }
1118
- } ) ;
1119
-
1120
- ffserver . stderr . on ( 'data' , function ( d ) {
1121
- if ( d . toString ( ) . match ( / s e r v e r s t a r t e d / i) ) {
1122
- ready ( ) ;
1123
- }
1124
- } ) ;
1125
-
1126
- } ) ;
1127
-
1128
- beforeEach ( function ( done ) {
1129
- setTimeout ( done , 5000 ) ;
1130
- } ) ;
1131
-
1132
- after ( function ( done ) {
1133
- ffserver . kill ( ) ;
1134
- setTimeout ( done , 1000 ) ;
1135
- } ) ;
1136
-
1137
- it ( 'should take input from a RTSP stream' , function ( done ) {
1138
- var testFile = path . join ( __dirname , 'assets' , 'testRTSPInput.avi' ) ;
1139
- this . files . push ( testFile ) ;
1140
-
1141
- this . getCommand ( { source : encodeURI ( testRTSP ) , logger : testhelper . logger , timeout : 0 } )
1142
- . takeFrames ( 10 )
1143
- . usingPreset ( 'divx' )
1144
- . withSize ( '320x240' )
1145
- . on ( 'error' , function ( err , stdout , stderr ) {
1146
- testhelper . logError ( err , stdout , stderr ) ;
1147
- assert . ok ( ! err ) ;
1148
- } )
1149
- . on ( 'end' , function ( ) {
1150
- fs . exists ( testFile , function ( exist ) {
1151
- exist . should . equal ( true ) ;
1152
- // check filesize to make sure conversion actually worked
1153
- fs . stat ( testFile , function ( err , stats ) {
1154
- assert . ok ( ! err && stats ) ;
1155
- stats . size . should . above ( 0 ) ;
1156
- stats . isFile ( ) . should . equal ( true ) ;
1157
-
1158
- done ( ) ;
1159
- } ) ;
1160
- } ) ;
1161
- } )
1162
- . saveToFile ( testFile ) ;
1163
- } ) ;
1164
-
1165
- it ( 'should take input from an URL' , function ( done ) {
1166
- var testFile = path . join ( __dirname , 'assets' , 'testURLInput.avi' ) ;
1167
- this . files . push ( testFile ) ;
1168
-
1169
- this . getCommand ( { source : testHTTP , logger : testhelper . logger , timeout : 0 } )
1170
- . takeFrames ( 5 )
1171
- . usingPreset ( 'divx' )
1172
- . withSize ( '320x240' )
1173
- . on ( 'error' , function ( err , stdout , stderr ) {
1174
- testhelper . logError ( err , stdout , stderr ) ;
1175
- assert . ok ( ! err ) ;
1176
- } )
1177
- . on ( 'end' , function ( ) {
1178
- fs . exists ( testFile , function ( exist ) {
1179
- exist . should . equal ( true ) ;
1180
- // check filesize to make sure conversion actually worked
1181
- fs . stat ( testFile , function ( err , stats ) {
1182
- assert . ok ( ! err && stats ) ;
1183
- stats . size . should . above ( 0 ) ;
1184
- stats . isFile ( ) . should . equal ( true ) ;
1185
-
1186
- done ( ) ;
1187
- } ) ;
1188
- } ) ;
1189
- } )
1190
- . saveToFile ( testFile ) ;
1191
- } ) ;
1192
-
1193
- it ( 'should output to a RTP stream' , function ( done ) {
1194
- this . getCommand ( { source : this . testfilebig , logger : testhelper . logger } )
1195
- . videoCodec ( 'libx264' )
1196
- . audioCodec ( 'copy' )
1197
- . on ( 'error' , function ( err , stdout , stderr ) {
1198
- testhelper . logError ( err , stdout , stderr ) ;
1199
- assert . ok ( ! err ) ;
1200
- } )
1201
- . on ( 'end' , function ( ) {
1202
- done ( ) ;
1203
- } )
1204
- . save ( testRTPOut ) ;
1205
- } ) ;
1206
- } ) ;
1091
+ // describe('Remote I/O', function() {
1092
+ // this.timeout(60000);
1093
+ //
1094
+ // var ffserver;
1095
+ //
1096
+ // before(function(done) {
1097
+ // testhelper.logger.debug('spawning ffserver');
1098
+ // ffserver = spawn(
1099
+ // 'ffserver',
1100
+ // ['-d','-f', path.join(__dirname, 'assets', 'ffserver.conf')],
1101
+ // { cwd: path.join(__dirname, 'assets') }
1102
+ // );
1103
+ //
1104
+ // // Wait for ffserver to be ready
1105
+ // var isready = false;
1106
+ // function ready() {
1107
+ // if (!isready) {
1108
+ // testhelper.logger.debug('ffserver is ready');
1109
+ // isready = true;
1110
+ // done();
1111
+ // }
1112
+ // }
1113
+ //
1114
+ // ffserver.stdout.on('data', function(d) {
1115
+ // if (d.toString().match(/server started/i)) {
1116
+ // ready();
1117
+ // }
1118
+ // });
1119
+ //
1120
+ // ffserver.stderr.on('data', function(d) {
1121
+ // if (d.toString().match(/server started/i)) {
1122
+ // ready();
1123
+ // }
1124
+ // });
1125
+ //
1126
+ // });
1127
+ //
1128
+ // beforeEach(function(done) {
1129
+ // setTimeout(done, 5000);
1130
+ // });
1131
+ //
1132
+ // after(function(done) {
1133
+ // ffserver.kill();
1134
+ // setTimeout(done, 1000);
1135
+ // });
1136
+ //
1137
+ // it('should take input from a RTSP stream', function(done) {
1138
+ // var testFile = path.join(__dirname, 'assets', 'testRTSPInput.avi');
1139
+ // this.files.push(testFile);
1140
+ //
1141
+ // this.getCommand({ source: encodeURI(testRTSP), logger: testhelper.logger, timeout: 0 })
1142
+ // .takeFrames(10)
1143
+ // .usingPreset('divx')
1144
+ // .withSize('320x240')
1145
+ // .on('error', function(err, stdout, stderr) {
1146
+ // testhelper.logError(err, stdout, stderr);
1147
+ // assert.ok(!err);
1148
+ // })
1149
+ // .on('end', function() {
1150
+ // fs.exists(testFile, function(exist) {
1151
+ // exist.should.equal(true);
1152
+ // // check filesize to make sure conversion actually worked
1153
+ // fs.stat(testFile, function(err, stats) {
1154
+ // assert.ok(!err && stats);
1155
+ // stats.size.should.above(0);
1156
+ // stats.isFile().should.equal(true);
1157
+ //
1158
+ // done();
1159
+ // });
1160
+ // });
1161
+ // })
1162
+ // .saveToFile(testFile);
1163
+ // });
1164
+ //
1165
+ // it('should take input from an URL', function(done) {
1166
+ // var testFile = path.join(__dirname, 'assets', 'testURLInput.avi');
1167
+ // this.files.push(testFile);
1168
+ //
1169
+ // this.getCommand({ source: testHTTP, logger: testhelper.logger, timeout: 0 })
1170
+ // .takeFrames(5)
1171
+ // .usingPreset('divx')
1172
+ // .withSize('320x240')
1173
+ // .on('error', function(err, stdout, stderr) {
1174
+ // testhelper.logError(err, stdout, stderr);
1175
+ // assert.ok(!err);
1176
+ // })
1177
+ // .on('end', function() {
1178
+ // fs.exists(testFile, function(exist) {
1179
+ // exist.should.equal(true);
1180
+ // // check filesize to make sure conversion actually worked
1181
+ // fs.stat(testFile, function(err, stats) {
1182
+ // assert.ok(!err && stats);
1183
+ // stats.size.should.above(0);
1184
+ // stats.isFile().should.equal(true);
1185
+ //
1186
+ // done();
1187
+ // });
1188
+ // });
1189
+ // })
1190
+ // .saveToFile(testFile);
1191
+ // });
1192
+ //
1193
+ // it('should output to a RTP stream', function(done) {
1194
+ // this.getCommand({ source: this.testfilebig, logger: testhelper.logger })
1195
+ // .videoCodec('libx264')
1196
+ // .audioCodec('copy')
1197
+ // .on('error', function(err, stdout, stderr) {
1198
+ // testhelper.logError(err, stdout, stderr);
1199
+ // assert.ok(!err);
1200
+ // })
1201
+ // .on('end', function() {
1202
+ // done();
1203
+ // })
1204
+ // .save(testRTPOut);
1205
+ // });
1206
+ // });
1207
1207
1208
1208
describe ( 'Errors' , function ( ) {
1209
1209
it ( 'should report an error when ffmpeg has been killed' , function ( done ) {
0 commit comments