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 (...)
09:55
TL;DR
I'm trying to programmatically download a part of a YouTube video. The widely known procedure doesn't work for some videos and I'd like to overcome this situation.
Context
I'm trying to programmatically download a part of a YouTube video. As described in How to download portion of video with youtube-dl command?, you can achieve this by the following commands.
#Converts a human-readable URL to longer URLs for internal use.
~ $ youtube-dl --get-url (...)
10:16
I tried hunting for all existing questions and couldn't find a match :-(
I have a video and a PNG image that I overlay on top of that. The PNG needs to move across the video (this I have working). But I want the PNG to use a "multiply" blend effect vs. a standard alpha overlay. Whenever I try to apply both filters I get an error.
This code works and moves the image (the last one) across as expected:
ffmpeg -i d6b5ec90-8823-41cf-9b81-3086ce83054a.mp4 -loop 1 -i 593e677d-02bb-49c2-a0c6-c3dd8f8c2f72.png -loop 1 -i 32fea58f-ebe1-447e-b079-06f8ebb9df52.png -loop 1 -i (...)