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

[brightcove] Problem with redbull videos (was: Unterminated string brightcove) #3081

Closed
jwm-art-net opened this issue Jun 14, 2014 · 5 comments
Closed

Comments

@jwm-art-net
Copy link

@jwm-art-net jwm-art-net commented Jun 14, 2014

youtube-dl --verbose http://www.redbull.com/en/bike/stories/1331655643987/replay-uci-dh-world-cup-2014-from-fort-william
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://www.redbull.com/en/bike/stories/1331655643987/replay-uci-dh-world-cup-2014-from-fort-william']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.06.09
[debug] Python version 3.4.1 - Linux-3.14.6-1-ARCH-x86_64-with-arch
[debug] Proxy map: {}
[generic] replay-uci-dh-world-cup-2014-from-fort-william: Requesting header
WARNING: Falling back on generic information extractor.
[generic] replay-uci-dh-world-cup-2014-from-fort-william: Downloading webpage
[generic] replay-uci-dh-world-cup-2014-from-fort-william: Extracting information
[generic] Brightcove video detected.
[download] Downloading playlist: Replay: UCI DH World Cup 2014 - Fort William
[generic] playlist Replay: UCI DH World Cup 2014 - Fort William: Collected 1 video ids (downloading 1 of them)
[download] Downloading video #1 of 1
[Brightcove] ref:BC2996102916001: Downloading webpage
[Brightcove] ref:BC2996102916001: Extracting information
Traceback (most recent call last):
  File "/usr/bin/youtube-dl", line 9, in <module>
    load_entry_point('youtube-dl==2014.06.09', 'console_scripts', 'youtube-dl')()
  File "/usr/lib/python3.4/site-packages/youtube_dl/__init__.py", line 852, in main
    _real_main(argv)
  File "/usr/lib/python3.4/site-packages/youtube_dl/__init__.py", line 842, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/lib/python3.4/site-packages/youtube_dl/YoutubeDL.py", line 1050, in download
    self.extract_info(url)
  File "/usr/lib/python3.4/site-packages/youtube_dl/YoutubeDL.py", line 527, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/lib/python3.4/site-packages/youtube_dl/YoutubeDL.py", line 645, in process_ie_result
    extra_info=extra)
  File "/usr/lib/python3.4/site-packages/youtube_dl/YoutubeDL.py", line 571, in process_ie_result
    extra_info=extra_info)
  File "/usr/lib/python3.4/site-packages/youtube_dl/YoutubeDL.py", line 516, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/common.py", line 167, in extract
    return self._real_extract(url)
  File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/brightcove.py", line 174, in _real_extract
    videoPlayer[0], query_str, query, referer=referer)
  File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/brightcove.py", line 191, in _get_video_info
    info = json.loads(info)['data']
  File "/usr/lib/python3.4/json/__init__.py", line 318, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.4/json/decoder.py", line 343, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.4/json/decoder.py", line 359, in raw_decode
    obj, end = self.scan_once(s, idx)
ValueError: Unterminated string starting at: line 1 column 513 (char 512)
@jaimeMF jaimeMF self-assigned this Jun 15, 2014
jaimeMF added a commit that referenced this issue Jun 15, 2014
One of the strings may contain ';', we would get an invalid json string.
@jaimeMF jaimeMF closed this in 5524b24 Jun 15, 2014
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jun 15, 2014

It will be fixed in the next version, thanks for the report!

@jwm-art-net
Copy link
Author

@jwm-art-net jwm-art-net commented Jun 15, 2014

That was fast! No problem :-)

@jaimeMF jaimeMF removed their assignment Jun 16, 2014
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jun 16, 2014

There's currently a problem: all the available formats are reported as having a filesize of 2.00GiB, but that's not true, so the download fails (although the video can be played without problems):

youtube-dl 'http://www.redbull.com/en/bike/stories/1331655643987/replay-uci-dh-world-cup-2014-from-fort-william' -f worst
[debug] System config: []
[debug] User config: ['--keep-video', '--write-info-json', '--write-thumbnail', '--verbose']
[debug] Command-line args: ['http://www.redbull.com/en/bike/stories/1331655643987/replay-uci-dh-world-cup-2014-from-fort-william', '-f', 'worst']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.06.09
[debug] Git HEAD: 96bef88
[debug] Python version 3.4.1 - Darwin-13.2.0-x86_64-i386-64bit
[debug] Proxy map: {}
[generic] replay-uci-dh-world-cup-2014-from-fort-william: Requesting header
WARNING: Falling back on generic information extractor.
[generic] replay-uci-dh-world-cup-2014-from-fort-william: Downloading webpage
[generic] replay-uci-dh-world-cup-2014-from-fort-william: Extracting information
[generic] Brightcove video detected.
[download] Downloading playlist: Replay: UCI DH World Cup 2014 - Fort William
[generic] playlist Replay: UCI DH World Cup 2014 - Fort William: Collected 1 video ids (downloading 1 of them)
[download] Downloading video #1 of 1
[Brightcove] ref:BC2996102916001: Downloading webpage
[Brightcove] ref:BC2996102916001: Extracting information
[info] Writing video description metadata as JSON to: UCI MTB World Cup 2014 - Fort William, UK - Downhill Finals-2996102916001.info.json
[Brightcove] 2996102916001: Downloading thumbnail ...
[Brightcove] 2996102916001: Writing thumbnail to: UCI MTB World Cup 2014 - Fort William, UK - Downhill Finals-2996102916001.jpg
[download] Destination: UCI MTB World Cup 2014 - Fort William, UK - Downhill Finals-2996102916001.flv
[download] 100% of 2.00GiB in 02:06:05
ERROR: content too short (expected 2147483647 bytes and served 501634403)
Traceback (most recent call last):
  File "/Users/jaimemf93/Developer/proyectos/youtube-dl/youtube-dl/youtube_dl/YoutubeDL.py", line 1020, in process_info
    success = dl(filename, info_dict)
  File "/Users/jaimemf93/Developer/proyectos/youtube-dl/youtube-dl/youtube_dl/YoutubeDL.py", line 996, in dl
    return fd.download(name, info)
  File "/Users/jaimemf93/Developer/proyectos/youtube-dl/youtube-dl/youtube_dl/downloader/common.py", line 291, in download
    return self.real_download(filename, info_dict)
  File "/Users/jaimemf93/Developer/proyectos/youtube-dl/youtube-dl/youtube_dl/downloader/http.py", line 191, in real_download
    raise ContentTooShortError(byte_counter, int(data_len))
youtube_dl.utils.ContentTooShortError: (501634403, 2147483647)
@jaimeMF jaimeMF reopened this Jun 16, 2014
@jaimeMF jaimeMF changed the title Unterminated string brightcove [brightcove] Problem with redbull videos (was: Unterminated string brightcove) Jun 16, 2014
@jwm-art-net
Copy link
Author

@jwm-art-net jwm-art-net commented Jun 16, 2014

Yes I noticed that too. I did not report as I was unsure if it was some... idiosyncrasy of some sort... and I ended up watching it in-browser in the end.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 4, 2017

Video does not play in browser anymore.

@dstftw dstftw closed this Mar 4, 2017
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.