vdsperera/youtube-clip-downloader ? reverse-engineered prompt
Reverse engineered prompt
Build me a Python tool that lets me download just a short clip from a YouTube video instead of the whole file.
I want it to work two ways, either by asking me for the video link and the start and end time, or by letting me pass those details in from the command line. It should use the video title for the filename by default, save the clip cleanly, and give me clear progress messages while it works. If something goes wrong, I want decent error handling and retry logic so it feels reliable, and I want it to write detailed logs for debugging too.
Please make it modular and easy to maintain, with separate parts for handling the URL, finding the stream, cutting the segment, and managing output. Use yt dlp and FFmpeg, and make sure it can run with a simple main script. If you need to check current docs for yt dlp or FFmpeg behavior, go ahead and look them up online.
Are you gonna build this?
make sure you review the code using arcumet