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
app.get("/dmax", (req, res) => { res.type('mp4'); let command = ffmpeg(); command.input("rtsp://192.168.2.1:554/?freq=466&bw=8&msys=dvbc&mtype=256qam&sr=6900&specinv=1&pids=0,16,17,18,20,115,2291,2292,2294,2296"); command.outputOptions('-c:v libx264'); command.outputOptions("-c:a mp3"); command.outputOptions("-movflags faststart"); command.outputOptions('-f mp4'); command.pipe(res, { end: true }); command.on('start', function (cli) { console.log('Spawned Ffmpeg with command: %s', cli); }); command.on('error', function (err) { console.log('An error occurred: ' + err.message); }); command.on('end', function () { console.log('Processing finished !'); }); //command.run(); });
Converting the RTSP stream from the fritz.box router to h265/mp4 http stream
An error occurred: ffmpeg exited with code 1: Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
I'm trying to convert the RTSP stream that my firtz.box router publish in my local network to a http mp4/h264 stream.
Working CLI: ffmpeg -i 'rtsp://192.168.2.1:554/?freq=466&bw=8&msys=dvbc&mtype=256qam&sr=6900&specinv=1&pids=0,16,17,18,20,115,2291,2292,2294,2296' -c:v libx264 -c:a mp3 -movflags faststart -f mp4 video.mp4 With code changes to:
ffmpeg -i 'rtsp://192.168.2.1:554/?freq=466&bw=8&msys=dvbc&mtype=256qam&sr=6900&specinv=1&pids=0,16,17,18,20,115,2291,2292,2294,2296' -c:v libx264 -c:a mp3 -movflags faststart -f mp4 video.mp4
command.input("'rtsp://192.168.2.1:554/?freq=466&bw=8&msys=dvbc&mtype=256qam&sr=6900&specinv=1&pids=0,16,17,18,20,115,2291,2292,2294,2296'");
it get the error: No such file or directory
No such file or directory
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version information
Code to reproduce
Expected results
Converting the RTSP stream from the fritz.box router to h265/mp4 http stream
Observed results
An error occurred: ffmpeg exited with code 1: Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
I'm trying to convert the RTSP stream that my firtz.box router publish in my local network to a http mp4/h264 stream.
Working CLI:
ffmpeg -i 'rtsp://192.168.2.1:554/?freq=466&bw=8&msys=dvbc&mtype=256qam&sr=6900&specinv=1&pids=0,16,17,18,20,115,2291,2292,2294,2296' -c:v libx264 -c:a mp3 -movflags faststart -f mp4 video.mp4
With code changes to:
it get the error:
No such file or directory
The text was updated successfully, but these errors were encountered: