I was thinking I could automate the process of downloading a video and converting it to mp3 (or other formats).
Instead of doing the process myself (which doesn't take that long and isn't too much hassle), which looks something like this:
• yt-dlp https://www.youtube.com/watch?v=dQw4w9WgXcQ
• wait for download then (find and) rename file to something simpler for next command
• ffmpeg -i video.mp4 video.mp3
I thought I could turn it into a simple JS (or other language) program instead, where it:
- Asks for link and what format I want it in
- Downloads the video
- Renames it (not sure how easy this is)
- Turns it into requested format
- Opens file location
If something like this is possible, please let me know some things I should know since I've never written a windows app before, and some general guidance for how I could do this.
I apologise if questions like this aren't exactly allowed on this site, its my first time posting too.
Thanks in advance!
CodePudding user response:
on Windows, you can write a Batch Script to do this. it might be helpful to break your question down into individual questions and try to answer them one at a time.