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

[CSpan] Video too long #10662

Closed
KwToPA opened this issue Sep 15, 2016 · 9 comments
Closed

[CSpan] Video too long #10662

KwToPA opened this issue Sep 15, 2016 · 9 comments
Labels
bug

Comments

@KwToPA
Copy link

@KwToPA KwToPA commented Sep 15, 2016

  • I've verified and I assure that I'm running youtube-dl 2016.09.11.1

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

proxychains4 youtube-dl -v https://www.c-span.org/video/?110721-1/nixonkhrushchev-kitchen-debate
[proxychains] config file found: /usr/local/Cellar/proxychains-ng/4.7/etc/proxychains.conf
[proxychains] preloading /usr/local/Cellar/proxychains-ng/4.7/lib/libproxychains4.dylib
[proxychains] DLL init
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'https://www.c-span.org/video/?110721-1/nixonkhrushchev-kitchen-debate']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.09.11.1
[proxychains] DLL init
[debug] Python version 2.7.6 - Darwin-14.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.0.1-tessus
[debug] Proxy map: {}
[CSpan] 110721: Downloading webpage
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  www.c-span.org:443  ...  OK
ERROR: Unable to download webpage: <urlopen error [Errno 1] _ssl.c:507: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure> (caused by URLError(SSLError(1, '_ssl.c:507: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure'),))
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 394, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1998, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 404, in open
    response = self._open(req, data)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 422, in _open
    '_open', req)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/youtube_dl/utils.py", line 1004, in https_open
    req, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1184, in do_open
    raise URLError(err)
...
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Sep 16, 2016

www.c-span.org now requires an advanced feature named SNI (Server Name Indication), which is supported in Python 2.7.9+ only. Please update your Python.

@yan12125 yan12125 closed this Sep 16, 2016
@KwToPA
Copy link
Author

@KwToPA KwToPA commented Sep 16, 2016

@yan12125 Thanks man.

@KwToPA
Copy link
Author

@KwToPA KwToPA commented Sep 16, 2016

@yan12125 Excuse me. I download the incorrect video althought I updated python to 2.7.9.

proxychains4 youtube-dl -v https://www.c-span.org/video/?110721-1/nixonkhrushchev-kitchen-debate
[proxychains] config file found: /usr/local/Cellar/proxychains-ng/4.7/etc/proxychains.conf
[proxychains] preloading /usr/local/Cellar/proxychains-ng/4.7/lib/libproxychains4.dylib
[proxychains] DLL init
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'https://www.c-span.org/video/?110721-1/nixonkhrushchev-kitchen-debate']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.09.11.1
[proxychains] DLL init
[debug] Python version 2.7.9 - Darwin-14.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.0.1-tessus
[debug] Proxy map: {}
[CSpan] 110721: Downloading webpage
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  www.c-span.org:443  ...  OK
[CSpan] 159414: Downloading JSON metadata
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  www.c-span.org:80  ...  OK
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  www.c-span.org:443  ...  OK
[CSpan] 159414: Downloading XML
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  www.c-span.org:80  ...  OK
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  www.c-span.org:443  ...  OK
[debug] Invoking downloader on u'https://media.c-spanvideo.org/dynamic/1998/08/30/19980830115800001/19980830115800001.MP4-M20.mp4?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9tZWRpYS5jLXNwYW52aWRlby5vcmcvZHluYW1pYy8xOTk4LzA4LzMwLzE5OTgwODMwMTE1ODAwMDAxLzE5OTgwODMwMTE1ODAwMDAxLk1QNC1NMjAubXA0IiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNDc0MDUwMzIwfSwiSXBBZGRyZXNzIjp7IkFXUzpTb3VyY2VJcCI6IjEwNC4yMzguMTYwLjE5MiJ9fX1dfQ__&Key-Pair-Id=APKAIHKVWBEAXX562G7Q&Signature=Gs7WbqgMxS73k7ftJPUh1URTxdyNIfc8Su6yTbWm3H1hTbTNyNj6YbCHJWKyvnqG2wfo12MxDkU~m38q0XOpNRfMEBwK5~ro2EvNDwn4RJ4cRfgnNej2g3lXr2uJj0j3sFn0w58pzMvbSlJX44Cah99619gpeSHG~N1aMDHrvmQ_'
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  media.c-spanvideo.org:443  ...  OK
[download] Destination: Nixon-Khrushchev Kitchen Debate-159414.mp4
[download]   1.5% of 436.77MiB at 811.82KiB/s ETA 09:0

The duration of this video from url https://www.c-span.org/video/?110721-1/nixonkhrushchev-kitchen-debate is only 15:35, but the length of video I downloaded is more than 2 hours.

It contains lots of mess pictures

@yan12125 yan12125 reopened this Sep 16, 2016
@yan12125 yan12125 added the bug label Sep 16, 2016
@yan12125 yan12125 changed the title Can't download from c-span.org, getting urlopen error [Errno 1] [CSpan] Video too long Sep 16, 2016
@KwToPA
Copy link
Author

@KwToPA KwToPA commented Sep 19, 2016

version 2016.09.19

The bug remains

@KwToPA
Copy link
Author

@KwToPA KwToPA commented Sep 29, 2016

Still can't work. Could anyone help me ?
Thanks you

@KwToPA
Copy link
Author

@KwToPA KwToPA commented Sep 30, 2016

proxychains4 youtube-dl -v https://www.c-span.org/video/?110721-1/nixonkhrushchev-kitchen-debate
[proxychains] config file found: /usr/local/Cellar/proxychains-ng/4.7/etc/proxychains.conf
[proxychains] preloading /usr/local/Cellar/proxychains-ng/4.7/lib/libproxychains4.dylib
[proxychains] DLL init
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'https://www.c-span.org/video/?110721-1/nixonkhrushchev-kitchen-debate']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.09.27
[proxychains] DLL init
[debug] Python version 2.7.9 - Darwin-14.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.0.1-tessus
[debug] Proxy map: {}
[CSpan] 110721: Downloading webpage
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  www.c-span.org:443  ...  OK
[CSpan] 159414: Downloading JSON metadata
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  www.c-span.org:80  ...  OK
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  www.c-span.org:443  ...  OK
[CSpan] 159414: Downloading XML
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  www.c-span.org:80  ...  OK
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  www.c-span.org:443  ...  OK
[debug] Invoking downloader on u'https://media.c-spanvideo.org/dynamic/1998/08/30/19980830115800001/19980830115800001.MP4-M20.mp4?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9tZWRpYS5jLXNwYW52aWRlby5vcmcvZHluYW1pYy8xOTk4LzA4LzMwLzE5OTgwODMwMTE1ODAwMDAxLzE5OTgwODMwMTE1ODAwMDAxLk1QNC1NMjAubXA0IiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNDc1MjEwODE1fSwiSXBBZGRyZXNzIjp7IkFXUzpTb3VyY2VJcCI6IjEwNC4yMzguMTYwLjE5MiJ9fX1dfQ__&Key-Pair-Id=APKAIHKVWBEAXX562G7Q&Signature=lEgOTiYr6EyO5EK-XlLyd1cuZ0axw4D04c2hBq6YWXpBN7OT8lbShtoTwvL34-2N6irr5N3DQjXGwC9bg6C-JpDC7NDFht9YH5QlOHRlYwYCAtpINVQIp~h5P-rA0m2Zx9C0pdH3J9bL4LW60v5HwwlMTvoiYp8YA8BK69LCdrM_'
[download] Resuming download at byte 2096128
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  media.c-spanvideo.org:443  ...  OK
[download] Destination: Nixon-Khrushchev Kitchen Debate-159414.mp4
[download]   0.7% of 436.77MiB at 560.10KiB/s ETA 13:12
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Sep 30, 2016

I haven't figured out why yet. If it's solved, this issue will be closed.

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Sep 30, 2016

instead of reupload parts of the full video to create the clips they just add the url of the full video and change the offset and length, so this will depend on enabling this https://github.com/rg3/youtube-dl/blob/master/youtube_dl/downloader/external.py#L203-L208 and adding the start_time and end_time to the info_dict returned from the extractor.

@KwToPA
Copy link
Author

@KwToPA KwToPA commented Oct 2, 2016

I downloaded the full video and edit it using QuickTime Player.

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.