fluent-ffmpeg / node-fluent-ffmpeg

A fluent API to FFMPEG (http://www.ffmpeg.org)
MIT License
7.85k stars 874 forks source link

ffmpeg : ffmpeg error :Output format xxx is not available #1273

Open Osub opened 4 months ago

Osub commented 4 months ago

Version information

Code to reproduce

const ffmpeg = require('fluent-ffmpeg');
const { Transform } = require('stream');
let dest = new Transform({
   transform: (chunk, enc, next) => {
      console.log('chunk coming',chunk.length);
      next(null, chunk);
   }
}).on('data', (data) => {});
let livestream_endpoint = 'https://svipsvip.ffzy-online5.com/20240516/27330_9f5869dd/2000k/hls/mixed.m3u8';     //sample m3u8 stream
let command = ffmpeg(livestream_endpoint)
.on('start', () => {
   console.log("ffmpeg : processing Started");
})
.on('progress', (progress) => {
   console.log('ffmpeg : Processing: ' + progress.targetSize + ' KB converted');
})
.on('end', () => {
   console.log('ffmpeg : Processing finished !');
})
.on('error', (err) => {
   console.log('ffmpeg : ffmpeg error :' + err.message);
})
.noVideo() 
.audioCodec('flav') 
.format('flav') 
.output(dest)
command.run();

(note: if the problem only happens with some inputs, include a link to such an input file)

Expected results

Observed results

ffmpeg : ffmpeg error :Output format flav is not available

Checklist

wav / mp3/aac same error

totallytavi commented 4 months ago

@njoyard Old issue