On 11Dec2020 14:17, home user <[email protected]> wrote:
>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?
Note that VLC isn't your only choice. I use mpv a lot myself.
youtube-dl looks for a config in ~/.config/youtube-dl/config.
Mine says:
--cache-dir '~/.cache/youtube-dl'
--add-metadata
--xattrs
--no-mtime
-o
'%(title)s--%(uploader)s@youtube--%(upload_date)s--%(resolution)s--id=%(id)s.%(ext)s'
-f 'bestvideo[ext=mp4]+bestaudio/best[ext=mp4]/best'
The -f option is what you want for control. It doesn't always seem to do
what I want, but that is the section of the manual you want.
The above often chooses a MKV download for me, maybe because of audio
formats? For purposes of my DVR I convert MKVs to MP4s with:
ffmpeg -i blah.mkv blah.mp4
>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?
I don't know if the "original" format is a knowable thing, I just
presume youtube itself doesn't upscale and that therefore the highest
res should be the original.
Cheers,
Cameron Simpson <[email protected]>
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]