We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const { createWriteStream } = require('fs') const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path const ffmpeg = require('fluent-ffmpeg') ffmpeg.setFfmpegPath(ffmpegPath) const cropArea = '3600:1980:0:400' const screenID = 2 const outStream = createWriteStream('../videos/test.mp4') const stop = movie => { return movie.ffmpegProc.stdin.write('q') } const recordingProcessVideo = ffmpeg(`${screenID}:1`) .inputFormat('avfoundation') .videoFilter(`crop=${cropArea}`) .format('matroska') .on('error', error => console.log(`Encoding Error: ${error.message}`)) .on('exit', () => console.log('Video recorder exited')) .on('close', () => console.log('Video recorder closed')) .on('end', () => console.log('Video Transcoding succeeded !')) .on('start', () => console.log('Video Transcoding Started !')) .on('progress', progress => console.log(progress)) recordingProcessVideo.pipe(outStream, { end: true }) setTimeout(() => { stop(recordingProcessVideo) }, 3000)
1-2 months ago its works fine, but now its dont work. Only 'start' event work. Nothing happend after timeout
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version information
Code to reproduce
1-2 months ago its works fine, but now its dont work. Only 'start' event work. Nothing happend after timeout
The text was updated successfully, but these errors were encountered: