Hi Lemmy!
This post is a way for me to announce one of my apps that I made for my personal usage.
It is a front end for yt-dlp and ffmpeg. It isn’t just a yt-dlp downloader; it’s more like a utility app that does anything that I need. The “special” part about this software is probably the ability to download YouTube subtitles and then embed them into the audio file as synced lyrics. Well, that is the only “unique” thing about it. As I’m still quite new to programming, there may be some bugs, and I appreciate your understanding. I’m also learning how to package it as a deb/rpm and plan to dedicate time to this during the summer. For now, the only way to download it will be to build from source with the bash install script in my repo.
If you have some time to try the app, I would love to hear your thoughts. Thank you for taking the time to read this! :)
For the first question, I assume that you want to put all video downloaded into one big video in CLI. I guess you can do something like this with ffmpeg:
ffmpeg -i "concat:input1|input2|input3|etc" -codec copy output.mkv
If you want to work it out with yt-dlp you can try this:yt-dlp "a link"
Assuming you get mp4 formatls -1 *.mp4 > file_list.txt
thenffmpeg -safe 0 -f concat -i list.txt -c copy output.mp4
For your second question, I am not sure my self to be honest. I never actually look at it. That is why for my app this is the arg I use to get best video and also best audio:
-f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best"
You can probably play a bit more with the format, if you feel like it.
Hope this help!
Thanks!