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

learn commands download quality etc... #1609

Closed
patriquepagano opened this issue Oct 16, 2013 · 11 comments
Closed

learn commands download quality etc... #1609

patriquepagano opened this issue Oct 16, 2013 · 11 comments

Comments

@patriquepagano
Copy link

@patriquepagano patriquepagano commented Oct 16, 2013

hi friends!

please look

youtube-dl.exe -ciw -f 37/46/137/248/22/45/136/247/35/44/135/246/245/244/34/18/43/134/243/5/133/242/36 -R 1000 -o video.mp4 --no-part http://www.youtube.com/watch?v=ipasgpoQVFQ
[youtube] Setting language
[youtube] ipasgpoQVFQ: Downloading video webpage
[youtube] ipasgpoQVFQ: Downloading video info webpage
[youtube] ipasgpoQVFQ: Extracting video information

nothing happened. :(

@patriquepagano
Copy link
Author

@patriquepagano patriquepagano commented Oct 16, 2013

C:\Users\user\AppData\Local\Temp>youtube-dl.exe --verbose -ciw -f 37/46/137/248/22/45/136/247/35/44/135/246/245/244/34/18/43/134/243/5/133/242/36 -R 1000 -o video.mp4 --no-part http://www.youtube.com/watch?v=ipasgpoQVFQ
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', '-ciw', '-f', '37/46/137/248/22/45/136/247/35/44/135/246/245/244/34/18/43/134/243/5/133/242/36', '-R', '1000', '-o', 'video.mp4',
'--no-part', 'http://www.youtube.com/watch?v=ipasgpoQVFQ']
[debug] youtube-dl version 2013.10.15
[debug] Python version 2.7.5 - Windows-7-6.1.7601-SP1
[debug] Proxy map: {}
[youtube] Setting language
[youtube] ipasgpoQVFQ: Downloading video webpage
[youtube] ipasgpoQVFQ: Downloading video info webpage
[youtube] ipasgpoQVFQ: Extracting video information

C:\Users\user\AppData\Local\Temp>

@phihag
Copy link
Contributor

@phihag phihag commented Oct 16, 2013

This is correct behavior. Your options don't make sense though:

  • -w or --no-overwrites requires youtube-dl to abort if it finds the file is already present. Therefore, if the file is already present, it is silently skipped.
  • --no-part requires youtube-dl to not create a part file. Therefore, if the download aborts and then gets restarted, youtube-dl will see that the file is alrady present, and because of -w abort instantly.
  • -c or continue requires youtube-dl to append additional data if it finds the file is already present. This is the default (although we reserve the right to change that if we think it's not in the user's best interest, for example if we suspect the video has been recoded), so you don't really need to specify it in the first place.

Simply drop at least one (and unless you have a reason, both) of -w and --no-part.

@phihag phihag closed this Oct 16, 2013
@patriquepagano
Copy link
Author

@patriquepagano patriquepagano commented Oct 16, 2013

phihag,

thanks for help friend! I find this code on web.. using this way for sometime...

and -f 37/46/137/248/22/45/136/247/35/44/135/246/245/244/34/18/43/134/243/5/133/242/36

if 37 dont download.. go to 46 format?

it work this way?

sorry for my bad english and thanks for all!

@phihag
Copy link
Contributor

@phihag phihag commented Oct 16, 2013

Where on the web did you find these parameters? If you are not sure, don't pass in any options (aside from --verbose for debugging and, of course, the URL you want to download) - youtube-dl strives to have sensible defaults.

For example, without the -f option (which does indeed contain multiple formats for fallback), youtube-dl will pick the best quality all by itself.

@patriquepagano
Copy link
Author

@patriquepagano patriquepagano commented Oct 17, 2013

I dont remenber where I find.. I save in batch and using olololol.. now I'm in good place! learn with the great guys!

the sequence -f 37/46/137/248/ etc.. I remenber tell in this site if the format 37 fail.. the command get the another format..

but If I want to download a video in 720p (mp4) but dont have this video in this format get the 720p in webm. ... but if dont have 720p get the next in 480p etc..

sorry for bad english.
thanks!

@phihag
Copy link
Contributor

@phihag phihag commented Oct 17, 2013

The format selection you describe is already the default; if you want the best quality, just don't pass in any -f.

@patriquepagano
Copy link
Author

@patriquepagano patriquepagano commented Oct 17, 2013

Hi Phihag,

for example this video
http://www.youtube.com/watch?v=JFsPCJatbL8

using -f 37 to get 1080p version.. download only video (dash) stream no audio.

if I remove -f get the 720p version...

this is another youtube trouble?

really thanks for your repply and share your knowledge!!!

@phihag
Copy link
Contributor

@phihag phihag commented Oct 17, 2013

By default, youtube-dl does indeed pick only non-DASH streams. If you can merge audio and video by yourself, you can use the dash variants (Note that the ID is 137, not 37, though), and that's a valid use case for -f.

@patriquepagano
Copy link
Author

@patriquepagano patriquepagano commented Oct 18, 2013

I find the IDs here
http://en.wikipedia.org/wiki/YouTube
but dont have much info about what is dash and what is mp4

137 is MP4 or dash?

do you know where to learn more about these IDs?

sorry bad english. and thanks for all tips.

@phihag
Copy link
Contributor

@phihag phihag commented Oct 18, 2013

137 is mp4, but only video, not audio. If you add --list-formats (or -F for short) to your youtube-dl command-line, you'll see the format.

@xanadu
Copy link
Contributor

@xanadu xanadu commented Oct 18, 2013

Most DASH implementation use segmented MP4 as media format.

YouTube use segmented mp4, and segmented webm for its implementation.

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
3 participants
You can’t perform that action at this time.