On 12/11/20 1:17 PM, home user wrote:
The man page is long and overwhelming. And I don't really know how
videos work. I try this:
First thing to know is that usually a video file is a container holding
a video stream and one or more audio streams. You need to tell
youtube-dl which combination you want.
bash.6[~]: youtube-dl -F https://www.youtube.com/watch?v=JahX9hOfz5A
I put the output in the attached text file "output.txt".
If I understood things correctly,
"youtube-dl https://www.youtube.com/watch?v=JahX9hOfz5A"
will give me 1280x720 video and 22050Hz audio as "best". How is that
"best"? It seems that "best" would be 1920x1080 video and 48000Hz
audio. How do I get that in one file that VLC can play properly?
I'm not sure exactly how it picks best, but that's the highest quality
*combined* stream. For the higher quality ones, you need to mix and
match. If you look closely at the list, the last two entries have both
a video stream and an audio stream where the rest have one or the other.
You use the numbers at the front of the line to pick that stream. For
the best combo, you would use "-f 137+140". The result will be an .mp4
file with both streams and VLC can play that.
Another question: If I want to know what resolution was used to make the
original video and audio, and download with the result being that, how
do I do it?
As Cameron said, I would also assume the highest quality version is the
original source. And in most cases, I expect the webm format is
transcoded from the mp4.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx