Open rahulserver opened 7 months ago
const outputStream = new PassThrough() const proc = ffmpeg() proc.input(outputStream) .inputFormat('webm') .inputOptions(['-re']) .size('1920x1080') .output(outputUrl) .outputOptions([ '-c:v libx264', '-preset veryfast', '-b:v 3000k', '-maxrate 50M', '-bufsize 100M', '-profile:v main', '-c:a aac', '-b:a 192k', '-f flv', '-g 60', '-vf crop=640:480:0:0', '-s 1920:1080' ]) .on('start', () => { console.log('FFmpeg process started'); }) .on('stderr', (stderrLine) => { console.log('Stderr output: ' + stderrLine); })
(note: if the problem only happens with some inputs, include a link to such an input file)
the video should not have the blank areas as in this picture
So how do I remove this black area from the video? Also is there a way to use cropdetect in the library? can't find anywhere in the docs.
Version information
Code to reproduce
(note: if the problem only happens with some inputs, include a link to such an input file)
Expected results
the video should not have the blank areas as in this picture
Observed results
So how do I remove this black area from the video? Also is there a way to use cropdetect in the library? can't find anywhere in the docs.