Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Best Video Quality Size #14631

Open
parsasaei opened this issue Oct 30, 2017 · 3 comments
Open

Get Best Video Quality Size #14631

parsasaei opened this issue Oct 30, 2017 · 3 comments

Comments

@parsasaei
Copy link

@parsasaei parsasaei commented Oct 30, 2017

How can I get the size of best video quality with mp4 format ?
Is there anyway?

@tobijjah
Copy link

@tobijjah tobijjah commented Oct 30, 2017

youtube-dl -F URL | grep mp4 should do it, if you are using linux. Otherwise just youtube-dl -F URL and search the list for mp4. By the way checking the man with youtube-dl --help could help. Please, close this issue by yourself if my reply answers your question.

@Hrxn
Copy link

@Hrxn Hrxn commented Oct 30, 2017

  • List formats with -F
  • Then pick format with -f <format-id>
@rautamiekka
Copy link

@rautamiekka rautamiekka commented Oct 30, 2017

--format "(bestvideo+bestaudio)[ext=mp4]/best[ext=mp4]" tries best video quality with best audio, making sure it's MP4 but if that fails it takes the best existing MP4 combination instead.

If I were you I'd use --format "bestvideo+bestaudio/best instead, so it gets the best video with best audio, using FFmpeg or avconv to combine them, otherwise taking the best existing combination. Once the result is downloaded, use FFmpeg or avconv to convert to MP4. That's a story for another time and without research I can't tell what command to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.