21:01
I cannot manage to make a working script for this under Linux.
Basically i want a script that execute a ffmpeg command and output the files to a subdirectory with the same name as the source.
Long story short it is to convert audio from several mkv files, but i want to keep the same name and as ffmpeg doesn't overwrite files, i need to output them to a subdirectory.
There is this answer :
https://superuser.com/questions/912730/ffmpeg-batch-convert-make-same-filename?newreg=4676efc538b54a178fcbcc17e1fd2127
But the Linux solution:
mkdir outdir
for i in (...)
14:54
I am working on a Node.js application that uses ffmpeg to convert videos to mp3 files. I have installed ffmpeg full build (libmp3lame included), and I have configured the path to ffmpeg correctly in my application. However, when I try to convert a video to mp3, I get the error "Output format mp3 is not available.
ffmpeg(inputPath)
.outputOptions('-vn', '-ab', '128k', '-ar', '44100')
.toFormat('mp3')
.save(outputPath)
.on('error', (err) => console.error(`Error converting (...)