this post was submitted on 08 Jun 2025
217 points (98.2% liked)
Linux
55025 readers
728 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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!