File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
_ = require (" lodash" )
2
2
utils = require (" fluent-ffmpeg/lib/utils" )
3
3
debug = require (" debug" )(" cypress:server:video" )
4
+ # extra verbose logs for logging individual frames
5
+ debugFrames = require (" debug" )(" cypress:server:video:frames" )
4
6
ffmpeg = require (" fluent-ffmpeg" )
5
7
stream = require (" stream" )
6
8
Promise = require (" bluebird" )
@@ -59,13 +61,16 @@ module.exports = {
59
61
# # we have written at least 1 byte
60
62
written = true
61
63
64
+ debugFrames (" video frame" )
62
65
if wantsWrite
63
66
if not wantsWrite = pt .write (data)
67
+ debugFrames (" video stream wants to drain" )
64
68
pt .once " drain" , ->
69
+ debugFrames (" video stream drained" )
65
70
wantsWrite = true
66
71
else
67
72
skipped += 1
68
- # console.log ("skipping frame. total is", skipped)
73
+ debugFrames (" skipping frame. total is %d " , skipped)
69
74
70
75
cmd = ffmpeg ({
71
76
source : pt
You can’t perform that action at this time.
0 commit comments