When using rtsp-ffmpeg to connect to an RTSP camera stream, it works perfectly on Windows, but fails to stream any data on Debian 12.
const rtsp = require('rtsp-ffmpeg');
const stream = new rtsp.FFMpeg({
input: url,
rate: 10,
resolution: '1280x720',
quality: 20
});
stream.on('data', function(data) {
console.log('streaming data...', data.length);
});
FFmpeg itself is installed and when called directly from the terminal with the same URL it doesnt give an error but also wont send data.
Environment
- OS: Debian 12 (Bookworm)
- Node.js: v18.x
- rtsp-ffmpeg: latest npm version
- Works fine on: Windows 10 (same Node.js version)
When using
rtsp-ffmpegto connect to an RTSP camera stream, it works perfectly on Windows, but fails to stream any data on Debian 12.FFmpeg itself is installed and when called directly from the terminal with the same URL it doesnt give an error but also wont send data.
Environment