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

ERROR: requested format not available when try to download with new youtube itag #1019

Closed
shaybracha opened this issue Jul 10, 2013 · 19 comments
Closed
Labels

Comments

@shaybracha
Copy link

@shaybracha shaybracha commented Jul 10, 2013

fail to download youtube video with itag higher than 100 (support ABR)

any idea?

thanks

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jul 10, 2013

Currently itags higher than 46 haven't been added to the format list, it should be easy though.
Just one question, do they have better quality?

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jul 10, 2013

There are some problems, for example when playing in 1080p the video and the audio are separated in two files, the audio has itag 141 and the video, 137. For getting a file that can be played with VLC you have to join the two files with ffmpeg. Is there any advantage of using those new itags?

@shaybracha
Copy link
Author

@shaybracha shaybracha commented Jul 10, 2013

@jaimeMF

yes
the quality is quiet better by far !!

the request for itag higher than 100 is since youtube switch to ABR (same as Netflix).therefore the video and audio in different itag.

could you advice how to add new itags to the format list?

Thanks

@shaybracha
Copy link
Author

@shaybracha shaybracha commented Jul 10, 2013

any idea how to add new itags to format list?

thanks

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jul 10, 2013

It's quite easy to add them, see this diff: https://gist.github.com/jaimeMF/3f10a0e1af733155992e
I have just added 137, but you can add all of them. For doing it well though, you'll have to add the extensions to _video_extensions and the resolution to _video_dimensions. Also it won't join the videos, doing that will require more work.

Could you explain what is ABR?

@shaybracha
Copy link
Author

@shaybracha shaybracha commented Jul 11, 2013

@jaimeMF
Thanks....i will try to add them
ABR=Adaptive Bit Rate...
youtube develope new mechanism to jump between resolution during video streaming according to the user bandwitdth.

so,if your bandwidth allows higher resolution,youtube will recognize it during the video and will change it.
video with itags higher than 100 works with ABR

hope it was helpful

Shay

@shaybracha
Copy link
Author

@shaybracha shaybracha commented Jul 11, 2013

Hi

were can i find the youtube.py

i want to change the _video_extensions like you did

Thanks

@shaybracha
Copy link
Author

@shaybracha shaybracha commented Jul 11, 2013

@jaimeMF https://github.com/jaimeMF
Thanks....i will try to add them
ABR=Adaptive Bit Rate...
youtube develope new mechanism to jump between resolution during video
streaming according to the user bandwitdth.

so,if your bandwidth allows higher resolution,youtube will recognize it
during the video and will change it.
video with itags higher than 100 works with ABR

where i can find this youtube.py
I have only youtube-dl.exe and python.exe installed.

Actually i'm not familiar with Java/phyton

this tools run on windows.

so mybe there is a build (youtube-dl.exe) which including the new itags?

resolution

*video itag *

*audio itag *

144p

160

140

240p

133

140

360p

134

140

480p

135

141

720p

136

141

1080p

137

141

4096p

138

141

Thanks

On Wed, Jul 10, 2013 at 3:20 PM, Jaime Marquínez Ferrándiz <
notifications@github.com> wrote:

It's quite easy to add them, see this diff:
https://gist.github.com/jaimeMF/3f10a0e1af733155992e
I have just added 137, but you can add all of them. For doing it well
though, you'll have to add the extensions to _video_extensions and the
resolution to _video_dimensions. Also it won't join the videos, doing
that will require more work.

Could you explain what is ABR?


Reply to this email directly or view it on GitHubhttps://github.com//issues/1019#issuecomment-20738089
.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jul 11, 2013

You have to download the source code (youtube.py is in youtube_dl/extractor/), you can run it (if python.exe is in your path) as: python.exe -m youtube_dl URL ...

@shaybracha
Copy link
Author

@shaybracha shaybracha commented Jul 11, 2013

sorry for the miss knownledge

if edit youtube.py with the new itags.where should i locate this .py file in order to run youtube-dl?
mybe should i rename this youtube.py file?
Thanks

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jul 11, 2013

Just follow these steps:

  1. Download the source.
  2. Edit the file youtube_dl/extractor/youtube.py
  3. Then in cmd.exe (or PowerShell if you use it) cd info the source directory (where the folder youtube_dl and README.md are).
  4. Then run python.exe -m youtube_dl URL {OTHER_OPTIONS}

We may add it, but it will require some work.

@shaybracha
Copy link
Author

@shaybracha shaybracha commented Jul 11, 2013

Hello again

i have copy youtube.py to python path.
edit with the new itag.
run phyton.exe -m youtube.py URL

i have got some error:

C:\Python33>python.exe -m youtube.py http://www.youtube.com/watch?v=nC038BmKCf0
Traceback (most recent call last):
File "C:\Python33\lib\runpy.py", line 140, in _run_module_as_main
mod_name, loader, code, fname = get_module_details(mod_name)
File "C:\Python33\lib\runpy.py", line 102, in get_module_details
loader = get_loader(mod_name)
File "C:\Python33\lib\pkgutil.py", line 482, in get_loader
return find_loader(fullname)
File "C:\Python33\lib\pkgutil.py", line 499, in find_loader
pkg = importlib.import_module(pkg_name)
File "C:\Python33\lib\importlib__init
.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1586, in _gcd_import
File "", line 1567, in _find_and_load
File "", line 1534, in _find_and_load_unlocked
File "", line 586, in _check_name_wrapper
File "", line 1024, in load_module
File "", line 1005, in load_module
File "", line 562, in module_for_loader_wrapper
File "", line 870, in _load_module
File "", line 313, in _call_with_frames_removed
File ".\youtube.py", line 7, in

do i miss something??
Please advice

thanks a lot!!!

@shaybracha
Copy link
Author

@shaybracha shaybracha commented Jul 11, 2013

Hi

the source i have download named "youtube-dl-master" has no /extractor/youtube.py under folder youtube-dl
seems no *.py exist under this folder exept :version.py,init.py etc'
please advice...again

Thanks and sorry

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jul 11, 2013

It's in youtube_dl/extractor/youtube.py

@shaybracha
Copy link
Author

@shaybracha shaybracha commented Jul 11, 2013

i have managed to download!

thanks a lot

wrong source!

@shaybracha
Copy link
Author

@shaybracha shaybracha commented Jul 11, 2013

i'm sure you can help this this issue as well

download directly with : youtube-dl.exe "http://www.youtube.com/watch?v=53J4KQ0tJqc"

however.when download as you said :python.exe -m youtube_dl "http://www.youtube.com/watch?v=53J4KQ0tJqc"

failed with the following error:

WARNING: unable to set language: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:547)>
[youtube] 53J4KQ0tJqc: Downloading video webpage
ERROR: Unable to download video webpage: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:547)>

thanks (BTW:no changes in youtube.py file yet)

@phihag
Copy link
Contributor

@phihag phihag commented Jul 11, 2013

@shaybracha Can you open new issues for unrelated questions? Otherwise, it becomes incredibly hard to track the various discussions, and our bug tracker becomes useless.

It looks like someone is giving you an incorrect SSL certificate. I'd first investigate it unless you are aware of it (i.e. you're using a company proxy, your ISP is censoring youtube, or you've set up a debugging proxy). You can disable certificate validation with --no-check-certificate, but that means that whoever is intercepting your requests can read and modify them.

@shaybracha
Copy link
Author

@shaybracha shaybracha commented Jul 11, 2013

works fine

thanks and sorry

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Aug 22, 2013

fixed with #1279

@jaimeMF jaimeMF closed this Aug 22, 2013
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.