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

youtube-dl download video and audio streams when ffmpeg or avconv isn't avalible #8621

Closed
mikhaelkh opened this issue Feb 20, 2016 · 4 comments

Comments

@mikhaelkh
Copy link

[debug] System config: []
[debug] User config: [u'--output', u'%(title)s.%(ext)s', u'--format', u'bestvideo[height<=?1080][ext=mp4]+bestaudio[ext=m4a]/bestvideo[height<=?1080][ext=webm]+bestaudio[ext=webm]/best[height<=?1080]']
[debug] Command-line args: [u'-v', u'https://www.youtube.com/watch?v=e-ORhEE9VVg']
[debug] Encodings: locale cp1251, fs mbcs, out None, pref cp1251
[debug] youtube-dl version 2016.02.13
[debug] Python version 2.7.10 - Windows-7-6.1.7601-SP1
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] e-ORhEE9VVg: Downloading webpage
[youtube] e-ORhEE9VVg: Downloading video info webpage
[youtube] e-ORhEE9VVg: Extracting video information
[youtube] {22} signature length 40.41, html5 player en_US-vfldIygzk
[youtube] {43} signature length 40.41, html5 player en_US-vfldIygzk
[youtube] {18} signature length 40.41, html5 player en_US-vfldIygzk
[youtube] {5} signature length 40.41, html5 player en_US-vfldIygzk
[youtube] {36} signature length 40.41, html5 player en_US-vfldIygzk
[youtube] {17} signature length 40.41, html5 player en_US-vfldIygzk
[youtube] {137} signature length 40.41, html5 player en_US-vfldIygzk
[youtube] {248} signature length 40.41, html5 player en_US-vfldIygzk
[youtube] {136} signature length 40.41, html5 player en_US-vfldIygzk
[youtube] {247} signature length 40.41, html5 player en_US-vfldIygzk
[youtube] {135} signature length 40.41, html5 player en_US-vfldIygzk
[youtube] {244} signature length 40.41, html5 player en_US-vfldIygzk
[youtube] {134} signature length 40.41, html5 player en_US-vfldIygzk
[youtube] {243} signature length 40.41, html5 player en_US-vfldIygzk
[youtube] {133} signature length 40.41, html5 player en_US-vfldIygzk
[youtube] {242} signature length 40.41, html5 player en_US-vfldIygzk
[youtube] {160} signature length 40.41, html5 player en_US-vfldIygzk
[youtube] {278} signature length 40.41, html5 player en_US-vfldIygzk
[youtube] {140} signature length 40.41, html5 player en_US-vfldIygzk
[youtube] {171} signature length 40.41, html5 player en_US-vfldIygzk
[youtube] {249} signature length 40.41, html5 player en_US-vfldIygzk
[youtube] {250} signature length 40.41, html5 player en_US-vfldIygzk
[youtube] {251} signature length 40.41, html5 player en_US-vfldIygzk
WARNING: You have requested multiple formats but ffmpeg or avconv are not installed. The formats won't be merged.
[debug] Invoking downloader on u'https://r1---sn-n8t51nxg8pjx-2xne.googlevideo.com/videoplayback?ipbits=0&gir=yes&pcm2cms=yes&fexp=9405191%2C9407472%2C9408490%2C9412842%2C9416126%2C9420452%2C9422596%2C9423661%2C9423662%2C9423849%2C9425064%2C9425281%2C9427482%2C9427678%2C9428703&lmt=1417142360759732&mm=31&ip=212.109.6.214&mn=sn-n8t51nxg8pjx-2xne&sparams=clen%2Cdur%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2cms%2Cpl%2Crequiressl%2Csource%2Cupn%2Cexpire&mt=1455987278&pl=19&itag=248&ms=au&requiressl=yes&mime=video%2Fwebm&id=o-AEDp8NtnoKSYL5Bi0o0LKAlPmprwxo6KDJ6mTKGqOjno&dur=272.355&initcwndbps=4131250&expire=1456008966&upn=jqgBxsh_yc4&sver=3&mv=m&key=yt6&keepalive=yes&source=youtube&clen=42098201&signature=4A701A5FBD3341F85A03E663B738D2E1A9602DB2.7BD5CD2A2797B4AF8379C359C67FDD2FFC64F5D5&ratebypass=yes'
[download] Destination: Taylor Swift - Blank Space.f248.webm

[download]   0.0% of 40.15MiB at Unknown speed ETA Unknown ETA
[download]   0.0% of 40.15MiB at Unknown speed ETA Unknown ETA
[download]   0.0% of 40.15MiB at Unknown speed ETA Unknown ETA
[download]   0.0% of 40.15MiB at Unknown speed ETA Unknown ETA
[download]   0.1% of 40.15MiB at Unknown speed ETA Unknown ETA
[download]   0.2% of 40.15MiB at  4.10MiB/s ETA 00:09         
[download]   0.3% of 40.15MiB at  8.27MiB/s ETA 00:04         
[download]   0.6% of 40.15MiB at  8.03MiB/s ETA 00:04         
[download]   1.2% of 40.15MiB at 10.62MiB/s ETA 00:03         
[download]   2.5% of 40.15MiB at  9.17MiB/s ETA 00:04         
[download]   5.0% of 40.15MiB at  9.85MiB/s ETA 00:03         
[download]  10.0% of 40.15MiB at 10.25MiB/s ETA 00:03         
[download]  19.9% of 40.15MiB at 10.06MiB/s ETA 00:03         
[download]  29.9% of 40.15MiB at  9.99MiB/s ETA 00:02         
[download]  39.9% of 40.15MiB at 10.06MiB/s ETA 00:02         
[download]  49.8% of 40.15MiB at 10.01MiB/s ETA 00:02         
[download]  59.8% of 40.15MiB at  9.99MiB/s ETA 00:01         
[download]  69.7% of 40.15MiB at 10.03MiB/s ETA 00:01         
[download]  79.7% of 40.15MiB at 10.01MiB/s ETA 00:00         
[download]  89.7% of 40.15MiB at 10.03MiB/s ETA 00:00         
[download]  99.6% of 40.15MiB at 10.02MiB/s ETA 00:00         
[download] 100.0% of 40.15MiB at 10.05MiB/s ETA 00:00         
[download] 100% of 40.15MiB in 00:03                          
[debug] Invoking downloader on u'https://r1---sn-n8t51nxg8pjx-2xne.googlevideo.com/videoplayback?ipbits=0&gir=yes&pcm2cms=yes&fexp=9405191%2C9407472%2C9408490%2C9412842%2C9416126%2C9420452%2C9422596%2C9423661%2C9423662%2C9423849%2C9425064%2C9425281%2C9427482%2C9427678%2C9428703&lmt=1417143739983618&mm=31&ip=212.109.6.214&mn=sn-n8t51nxg8pjx-2xne&sparams=clen%2Cdur%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2cms%2Cpl%2Crequiressl%2Csource%2Cupn%2Cexpire&mt=1455987278&pl=19&itag=251&ms=au&requiressl=yes&mime=audio%2Fwebm&id=o-AEDp8NtnoKSYL5Bi0o0LKAlPmprwxo6KDJ6mTKGqOjno&dur=272.421&initcwndbps=4131250&expire=1456008966&upn=jqgBxsh_yc4&sver=3&mv=m&key=yt6&keepalive=yes&source=youtube&clen=5476750&signature=2A196665216C2691EA39E7146045C06A034BB19D.9BC5F1BCF8B00BF68652F4A659306F7EF1275E99&ratebypass=yes'
[download] Destination: Taylor Swift - Blank Space.f251.webm

[download]   0.0% of 5.22MiB at Unknown speed ETA Unknown ETA
[download]   0.1% of 5.22MiB at Unknown speed ETA Unknown ETA
[download]   0.1% of 5.22MiB at Unknown speed ETA Unknown ETA
[download]   0.3% of 5.22MiB at Unknown speed ETA Unknown ETA
[download]   0.6% of 5.22MiB at Unknown speed ETA Unknown ETA
[download]   1.2% of 5.22MiB at  4.10MiB/s ETA 00:01         
[download]   2.4% of 5.22MiB at  8.27MiB/s ETA 00:00         
[download]   4.8% of 5.22MiB at  8.03MiB/s ETA 00:00         
[download]   9.6% of 5.22MiB at  8.05MiB/s ETA 00:00         
[download]  19.1% of 5.22MiB at  9.17MiB/s ETA 00:00         
[download]  38.3% of 5.22MiB at  9.90MiB/s ETA 00:00         
[download]  76.6% of 5.22MiB at 10.25MiB/s ETA 00:00         
[download] 100.0% of 5.22MiB at 10.47MiB/s ETA 00:00         
[download] 100% of 5.22MiB in 00:00                          
@mikhaelkh
Copy link
Author

It downloads bestvideo[height<=?1080][ext=webm]+bestaudio[ext=webm] and can't merge them.
Shouldn't it fall back to best[height<=?1080]?

@jaimeMF
Copy link
Collaborator

jaimeMF commented Feb 20, 2016

You are explicitly telling youtube-dl that you prefer bestvideo+bestaudio, so that's what it tries to do. Just use -f best[height<=?1080].

@jaimeMF jaimeMF closed this as completed Feb 20, 2016
@mikhaelkh
Copy link
Author

From README.md:

Since the end of April 2015 and version 2015.04.26 youtube-dl uses -f bestvideo+bestaudio/best as default format selection (see #5447, #5456). If ffmpeg or avconv are installed this results in downloading bestvideo and bestaudio separately and muxing them together into a single file giving the best overall quality available. Otherwise it falls back to best and results in downloading the best available quality served as a single file.

I thought, as in readme.md, without ffmpeg or avconv present, youtube-dl should ignore all bestvideo+bestaudio combinations and fall back to first option that downloads single file.

@jaimeMF
Copy link
Collaborator

jaimeMF commented Feb 21, 2016

Probably it's not worded correctly. Maybe this is clearer:

Since the end of April 2015 and version 2015.04.26 youtube-dl uses -f bestvideo+bestaudio/best as default format selection (see #5447, #5456) if ffmpeg or avconv are installed. This results in downloading bestvideo and bestaudio separately and muxing them together into a single file giving the best overall quality available. Otherwise it falls back to best and results in downloading the best available quality served as a single file.

Essentially it means that if you don't give a custom --format, youtube-dl uses bestvideo+bestaudio/best if you have ffmpeg and best otherwise.

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

No branches or pull requests

2 participants