Zend certified PHP/Magento developer

yt-dlp: ffmpeg working for some videos, but not for the others

I started using yt-dlp a few days ago, so I’m new to the whole thing. I needed to download some videos from youtube, but have them split into chapters.

The command:

yt-dlp --split-chapters URL

seems to be doing the right thing. However, running exactly the same command works for some videos, but for some I get the following error:

ERROR: Postprocessing: ffmpeg not found. Please install or provide the path using --ffmpeg-location 'list' is not recognized as an internal or external command,

operable program or batch file.

I have previously installed ffmpeg and added it to the PATH and it worked fine, and it doesn’t make much sense to me that the command would work for certain URLs if ffmpeg wasn’t there.

The video for which the error comes up is no different than the one for which the command works. They both have chapters.

Does anyone have an idea what might be happening?

Please do let me know if there is something else I should share — I’ll edit the original post!