@@ -194,11 +194,11 @@ describe('Processor', function() {
194
194
( ( skipNiceness || skipRenice ) ? it . skip : it ) ( 'should dynamically renice process' , function ( done ) {
195
195
this . timeout ( 60000 ) ;
196
196
197
- var testFile = path . join ( __dirname , 'assets' , 'testProcessRenice.flv ' ) ;
197
+ var testFile = path . join ( __dirname , 'assets' , 'testProcessRenice.avi ' ) ;
198
198
this . files . push ( testFile ) ;
199
199
200
200
var ffmpegJob = this . getCommand ( { source : this . testfilebig , logger : testhelper . logger , timeout : 2 } )
201
- . usingPreset ( 'flashvideo ' ) ;
201
+ . usingPreset ( 'divx ' ) ;
202
202
203
203
var startCalled = false ;
204
204
var reniced = false ;
@@ -236,11 +236,11 @@ describe('Processor', function() {
236
236
} ) ;
237
237
238
238
it ( 'should change the working directory' , function ( done ) {
239
- var testFile = path . join ( this . testdir , 'testvideo.flv ' ) ;
239
+ var testFile = path . join ( this . testdir , 'testvideo.avi ' ) ;
240
240
this . files . push ( testFile ) ;
241
241
242
242
this . getCommand ( { source : this . testfileName , logger : testhelper . logger , cwd : this . testdir } )
243
- . usingPreset ( 'flashvideo ' )
243
+ . usingPreset ( 'divx ' )
244
244
. on ( 'error' , function ( err , stdout , stderr ) {
245
245
testhelper . logError ( err , stdout , stderr ) ;
246
246
assert . ok ( ! err ) ;
@@ -252,14 +252,14 @@ describe('Processor', function() {
252
252
} ) ;
253
253
254
254
it ( 'should kill the process on timeout' , function ( done ) {
255
- var testFile = path . join ( __dirname , 'assets' , 'testProcessKillTimeout.flv ' ) ;
255
+ var testFile = path . join ( __dirname , 'assets' , 'testProcessKillTimeout.avi ' ) ;
256
256
this . files . push ( testFile ) ;
257
257
258
258
var command = this . getCommand ( { source : this . testfilebig , logger : testhelper . logger , timeout : 0.02 } ) ;
259
259
var self = this ;
260
260
261
261
command
262
- . usingPreset ( 'flashvideo ' )
262
+ . usingPreset ( 'divx ' )
263
263
. on ( 'start' , function ( ) {
264
264
command . ffmpegProc . on ( 'exit' , function ( ) {
265
265
done ( ) ;
@@ -278,11 +278,11 @@ describe('Processor', function() {
278
278
} ) ;
279
279
280
280
it ( 'should kill the process with .kill' , function ( done ) {
281
- var testFile = path . join ( __dirname , 'assets' , 'testProcessKill.flv ' ) ;
281
+ var testFile = path . join ( __dirname , 'assets' , 'testProcessKill.avi ' ) ;
282
282
this . files . push ( testFile ) ;
283
283
284
284
var ffmpegJob = this . getCommand ( { source : this . testfilebig , logger : testhelper . logger } )
285
- . usingPreset ( 'flashvideo ' ) ;
285
+ . usingPreset ( 'divx ' ) ;
286
286
287
287
var startCalled = false ;
288
288
var errorCalled = false ;
@@ -312,11 +312,11 @@ describe('Processor', function() {
312
312
it ( 'should send the process custom signals with .kill(signal)' , function ( done ) {
313
313
this . timeout ( 60000 ) ;
314
314
315
- var testFile = path . join ( __dirname , 'assets' , 'testProcessKillCustom.flv ' ) ;
315
+ var testFile = path . join ( __dirname , 'assets' , 'testProcessKillCustom.avi ' ) ;
316
316
this . files . push ( testFile ) ;
317
317
318
318
var ffmpegJob = this . getCommand ( { source : this . testfilebig , logger : testhelper . logger , timeout : 2 } )
319
- . usingPreset ( 'flashvideo ' ) ;
319
+ . usingPreset ( 'divx ' ) ;
320
320
321
321
var startCalled = true ;
322
322
var errorCalled = false ;
@@ -352,15 +352,15 @@ describe('Processor', function() {
352
352
it ( 'should report codec data through \'codecData\' event' , function ( done ) {
353
353
this . timeout ( 60000 ) ;
354
354
355
- var testFile = path . join ( __dirname , 'assets' , 'testOnCodecData.flv ' ) ;
355
+ var testFile = path . join ( __dirname , 'assets' , 'testOnCodecData.avi ' ) ;
356
356
this . files . push ( testFile ) ;
357
357
358
358
this . getCommand ( { source : this . testfilebig , logger : testhelper . logger } )
359
359
. on ( 'codecData' , function ( data ) {
360
360
data . should . have . property ( 'audio' ) ;
361
361
data . should . have . property ( 'video' ) ;
362
362
} )
363
- . usingPreset ( 'flashvideo ' )
363
+ . usingPreset ( 'divx ' )
364
364
. on ( 'error' , function ( err , stdout , stderr ) {
365
365
testhelper . logError ( err , stdout , stderr ) ;
366
366
assert . ok ( ! err ) ;
@@ -374,7 +374,7 @@ describe('Processor', function() {
374
374
it ( 'should report progress through \'progress\' event' , function ( done ) {
375
375
this . timeout ( 60000 ) ;
376
376
377
- var testFile = path . join ( __dirname , 'assets' , 'testOnProgress.flv ' ) ;
377
+ var testFile = path . join ( __dirname , 'assets' , 'testOnProgress.avi ' ) ;
378
378
var gotProgress = false ;
379
379
380
380
this . files . push ( testFile ) ;
@@ -383,7 +383,7 @@ describe('Processor', function() {
383
383
. on ( 'progress' , function ( ) {
384
384
gotProgress = true ;
385
385
} )
386
- . usingPreset ( 'flashvideo ' )
386
+ . usingPreset ( 'divx ' )
387
387
. on ( 'error' , function ( err , stdout , stderr ) {
388
388
testhelper . logError ( err , stdout , stderr ) ;
389
389
assert . ok ( ! err ) ;
@@ -398,7 +398,7 @@ describe('Processor', function() {
398
398
it ( 'should report start of ffmpeg process through \'start\' event' , function ( done ) {
399
399
this . timeout ( 60000 ) ;
400
400
401
- var testFile = path . join ( __dirname , 'assets' , 'testStart.flv ' ) ;
401
+ var testFile = path . join ( __dirname , 'assets' , 'testStart.avi ' ) ;
402
402
var startCalled = false ;
403
403
404
404
this . files . push ( testFile ) ;
@@ -410,9 +410,9 @@ describe('Processor', function() {
410
410
// Only test a subset of command line
411
411
cmdline . indexOf ( 'ffmpeg' ) . should . equal ( 0 ) ;
412
412
cmdline . indexOf ( 'testvideo-5m' ) . should . not . equal ( - 1 ) ;
413
- cmdline . indexOf ( '-b:a 96k ' ) . should . not . equal ( - 1 ) ;
413
+ cmdline . indexOf ( '-b:a 128k ' ) . should . not . equal ( - 1 ) ;
414
414
} )
415
- . usingPreset ( 'flashvideo ' )
415
+ . usingPreset ( 'divx ' )
416
416
. on ( 'error' , function ( err , stdout , stderr ) {
417
417
testhelper . logError ( err , stdout , stderr ) ;
418
418
assert . ok ( ! err ) ;
@@ -577,11 +577,11 @@ describe('Processor', function() {
577
577
578
578
describe ( 'saveToFile' , function ( ) {
579
579
it ( 'should save the output file properly to disk' , function ( done ) {
580
- var testFile = path . join ( __dirname , 'assets' , 'testConvertToFile.flv ' ) ;
580
+ var testFile = path . join ( __dirname , 'assets' , 'testConvertToFile.avi ' ) ;
581
581
this . files . push ( testFile ) ;
582
582
583
583
this . getCommand ( { source : this . testfile , logger : testhelper . logger } )
584
- . usingPreset ( 'flashvideo ' )
584
+ . usingPreset ( 'divx ' )
585
585
. on ( 'error' , function ( err , stdout , stderr ) {
586
586
testhelper . logError ( err , stdout , stderr ) ;
587
587
assert . ok ( ! err ) ;
@@ -604,11 +604,11 @@ describe('Processor', function() {
604
604
} ) ;
605
605
606
606
it ( 'should save an output file with special characters properly to disk' , function ( done ) {
607
- var testFile = path . join ( __dirname , 'assets' , 'te[s]t video \' " .flv ' ) ;
607
+ var testFile = path . join ( __dirname , 'assets' , 'te[s]t video \' " .avi ' ) ;
608
608
this . files . push ( testFile ) ;
609
609
610
610
this . getCommand ( { source : this . testfile , logger : testhelper . logger } )
611
- . usingPreset ( 'flashvideo ' )
611
+ . usingPreset ( 'divx ' )
612
612
. on ( 'error' , function ( err , stdout , stderr ) {
613
613
testhelper . logError ( err , stdout , stderr ) ;
614
614
assert . ok ( ! err ) ;
@@ -620,11 +620,11 @@ describe('Processor', function() {
620
620
} ) ;
621
621
622
622
it ( 'should save output files with special characters' , function ( done ) {
623
- var testFile = path . join ( __dirname , 'assets' , '[test "special \' char*cters \n.flv ' ) ;
623
+ var testFile = path . join ( __dirname , 'assets' , '[test "special \' char*cters \n.avi ' ) ;
624
624
this . files . push ( testFile ) ;
625
625
626
626
this . getCommand ( { source : this . testfile , logger : testhelper . logger } )
627
- . usingPreset ( 'flashvideo ' )
627
+ . usingPreset ( 'divx ' )
628
628
. on ( 'error' , function ( err , stdout , stderr ) {
629
629
testhelper . logError ( err , stdout , stderr ) ;
630
630
assert . ok ( ! err ) ;
@@ -646,12 +646,12 @@ describe('Processor', function() {
646
646
} ) ;
647
647
648
648
it ( 'should accept a stream as its source' , function ( done ) {
649
- var testFile = path . join ( __dirname , 'assets' , 'testConvertFromStreamToFile.flv ' ) ;
649
+ var testFile = path . join ( __dirname , 'assets' , 'testConvertFromStreamToFile.avi ' ) ;
650
650
this . files . push ( testFile ) ;
651
651
652
652
var instream = fs . createReadStream ( this . testfile ) ;
653
653
this . getCommand ( { source : instream , logger : testhelper . logger } )
654
- . usingPreset ( 'flashvideo ' )
654
+ . usingPreset ( 'divx ' )
655
655
. on ( 'error' , function ( err , stdout , stderr ) {
656
656
testhelper . logError ( err , stdout , stderr ) ;
657
657
assert . ok ( ! err ) ;
@@ -705,12 +705,12 @@ describe('Processor', function() {
705
705
706
706
describe ( 'writeToStream' , function ( ) {
707
707
it ( 'should save the output file properly to disk using a stream' , function ( done ) {
708
- var testFile = path . join ( __dirname , 'assets' , 'testConvertToStream.flv ' ) ;
708
+ var testFile = path . join ( __dirname , 'assets' , 'testConvertToStream.avi ' ) ;
709
709
this . files . push ( testFile ) ;
710
710
711
711
var outstream = fs . createWriteStream ( testFile ) ;
712
712
this . getCommand ( { source : this . testfile , logger : testhelper . logger } )
713
- . usingPreset ( 'flashvideo ' )
713
+ . usingPreset ( 'divx ' )
714
714
. on ( 'error' , function ( err , stdout , stderr ) {
715
715
testhelper . logError ( err , stdout , stderr ) ;
716
716
assert . ok ( ! err ) ;
@@ -737,14 +737,14 @@ describe('Processor', function() {
737
737
} ) ;
738
738
739
739
it ( 'should accept a stream as its source' , function ( done ) {
740
- var testFile = path . join ( __dirname , 'assets' , 'testConvertFromStreamToStream.flv ' ) ;
740
+ var testFile = path . join ( __dirname , 'assets' , 'testConvertFromStreamToStream.avi ' ) ;
741
741
this . files . push ( testFile ) ;
742
742
743
743
var instream = fs . createReadStream ( this . testfile ) ;
744
744
var outstream = fs . createWriteStream ( testFile ) ;
745
745
746
746
this . getCommand ( { source : instream , logger : testhelper . logger } )
747
- . usingPreset ( 'flashvideo ' )
747
+ . usingPreset ( 'divx ' )
748
748
. on ( 'error' , function ( err , stdout , stderr ) {
749
749
testhelper . logError ( err , stdout , stderr ) ;
750
750
assert . ok ( ! err ) ;
@@ -770,14 +770,14 @@ describe('Processor', function() {
770
770
} ) ;
771
771
772
772
( process . version . match ( / v 0 \. 8 \. / ) ? it . skip : it ) ( 'should return a PassThrough stream when called with no arguments on node >=0.10' , function ( done ) {
773
- var testFile = path . join ( __dirname , 'assets' , 'testConvertToStream.flv ' ) ;
773
+ var testFile = path . join ( __dirname , 'assets' , 'testConvertToStream.avi ' ) ;
774
774
this . files . push ( testFile ) ;
775
775
776
776
var outstream = fs . createWriteStream ( testFile ) ;
777
777
var command = this . getCommand ( { source : this . testfile , logger : testhelper . logger } ) ;
778
778
779
779
command
780
- . usingPreset ( 'flashvideo ' )
780
+ . usingPreset ( 'divx ' )
781
781
. on ( 'error' , function ( err , stdout , stderr ) {
782
782
testhelper . logError ( err , stdout , stderr ) ;
783
783
assert . ok ( ! err ) ;
@@ -870,12 +870,12 @@ describe('Processor', function() {
870
870
871
871
describe ( 'Inputs' , function ( ) {
872
872
it ( 'should take input from a file with special characters' , function ( done ) {
873
- var testFile = path . join ( __dirname , 'assets' , 'testSpecialInput.flv ' ) ;
873
+ var testFile = path . join ( __dirname , 'assets' , 'testSpecialInput.avi ' ) ;
874
874
this . files . push ( testFile ) ;
875
875
876
876
this . getCommand ( { source : this . testfilespecial , logger : testhelper . logger , timeout : 10 } )
877
877
. takeFrames ( 50 )
878
- . usingPreset ( 'flashvideo ' )
878
+ . usingPreset ( 'divx ' )
879
879
. on ( 'error' , function ( err , stdout , stderr ) {
880
880
testhelper . logError ( err , stdout , stderr ) ;
881
881
assert . ok ( ! err ) ;
@@ -897,7 +897,7 @@ describe('Processor', function() {
897
897
} ) ;
898
898
} ) ;
899
899
900
- describe ( 'Remote I/O' , function ( ) {
900
+ describe . skip ( 'Remote I/O' , function ( ) {
901
901
this . timeout ( 60000 ) ;
902
902
903
903
var ffserver ;
@@ -944,12 +944,12 @@ describe('Processor', function() {
944
944
} ) ;
945
945
946
946
it ( 'should take input from a RTSP stream' , function ( done ) {
947
- var testFile = path . join ( __dirname , 'assets' , 'testRTSPInput.flv ' ) ;
947
+ var testFile = path . join ( __dirname , 'assets' , 'testRTSPInput.avi ' ) ;
948
948
this . files . push ( testFile ) ;
949
949
950
950
this . getCommand ( { source : encodeURI ( testRTSP ) , logger : testhelper . logger , timeout : 0 } )
951
951
. takeFrames ( 10 )
952
- . usingPreset ( 'flashvideo ' )
952
+ . usingPreset ( 'divx ' )
953
953
. withSize ( '320x240' )
954
954
. on ( 'error' , function ( err , stdout , stderr ) {
955
955
testhelper . logError ( err , stdout , stderr ) ;
@@ -972,12 +972,12 @@ describe('Processor', function() {
972
972
} ) ;
973
973
974
974
it ( 'should take input from an URL' , function ( done ) {
975
- var testFile = path . join ( __dirname , 'assets' , 'testURLInput.flv ' ) ;
975
+ var testFile = path . join ( __dirname , 'assets' , 'testURLInput.avi ' ) ;
976
976
this . files . push ( testFile ) ;
977
977
978
978
this . getCommand ( { source : testHTTP , logger : testhelper . logger , timeout : 0 } )
979
979
. takeFrames ( 5 )
980
- . usingPreset ( 'flashvideo ' )
980
+ . usingPreset ( 'divx ' )
981
981
. withSize ( '320x240' )
982
982
. on ( 'error' , function ( err , stdout , stderr ) {
983
983
testhelper . logError ( err , stdout , stderr ) ;
@@ -1018,13 +1018,13 @@ describe('Processor', function() {
1018
1018
it ( 'should report an error when ffmpeg has been killed' , function ( done ) {
1019
1019
this . timeout ( 10000 ) ;
1020
1020
1021
- var testFile = path . join ( __dirname , 'assets' , 'testErrorKill.flv ' ) ;
1021
+ var testFile = path . join ( __dirname , 'assets' , 'testErrorKill.avi ' ) ;
1022
1022
this . files . push ( testFile ) ;
1023
1023
1024
1024
var command = this . getCommand ( { source : this . testfilebig , logger : testhelper . logger } ) ;
1025
1025
1026
1026
command
1027
- . usingPreset ( 'flashvideo ' )
1027
+ . usingPreset ( 'divx ' )
1028
1028
. on ( 'start' , function ( ) {
1029
1029
setTimeout ( function ( ) {
1030
1030
command . kill ( 'SIGKILL' ) ;
0 commit comments