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

Can't download from www.tv4.se #2103

Closed
savioramos opened this issue Jan 5, 2014 · 5 comments
Closed

Can't download from www.tv4.se #2103

savioramos opened this issue Jan 5, 2014 · 5 comments

Comments

@savioramos
Copy link

@savioramos savioramos commented Jan 5, 2014

The verbose output:

youtube-dl --verbose http://www.tv4.se/kalla-fakta/klipp/kalla-fakta-5-english-subtitles-2491650
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://www.tv4.se/kalla-fakta/klipp/kalla-fakta-5-english-subtitles-2491650']
[debug] Encodings: locale 'UTF-8', fs 'UTF-8', out 'UTF-8', pref: 'UTF-8'
[debug] youtube-dl version 2014.01.05.6
[debug] Python version 2.7.3 - Linux-3.2.0-4-amd64-x86_64-with-debian-7.3
[debug] Proxy map: {}
[generic] kalla-fakta-5-english-subtitles-2491650: Requesting header
WARNING: Falling back on generic information extractor.
[generic] kalla-fakta-5-english-subtitles-2491650: Downloading webpage
[generic] kalla-fakta-5-english-subtitles-2491650: Extracting information
ERROR: Unsupported URL: http://www.tv4.se/kalla-fakta/klipp/kalla-fakta-5-english-subtitles-2491650; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 489, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 150, in extract
return self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 331, in _real_extract
raise ExtractorError(u'Unsupported URL: %s' % url)
ExtractorError: Unsupported URL: http://www.tv4.se/kalla-fakta/klipp/kalla-fakta-5-english-subtitles-2491650; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.

@phihag
Copy link
Contributor

@phihag phihag commented Jan 7, 2014

By default, they use RTMP. However, with an iPhone UA we can request view-source:http://www.tv4play.se/iframe/video/2491650?autoload=true . From then on, we'll have to request the master m3u8, which looks like

#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=296000,RESOLUTION=384x216,CODECS="avc1.66.30, mp4a.40.2"
index_0_av.m3u8?e=b471643725c47acd
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=796000,RESOLUTION=640x360,CODECS="avc1.66.30, mp4a.40.2"
index_1_av.m3u8?e=b471643725c47acd
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1496000,RESOLUTION=768x432,CODECS="avc1.77.30, mp4a.40.2"
index_2_av.m3u8?e=b471643725c47acd
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=2495000,RESOLUTION=1024x576,CODECS="avc1.77.30, mp4a.40.2"
index_3_av.m3u8?e=b471643725c47acd
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=45000,CODECS="mp4a.40.2"
index_0_a.m3u8?e=b471643725c47acd

Downloading one of the files gives:

#EXTM3U
#EXT-X-TARGETDURATION:9
#EXT-X-ALLOW-CACHE:YES
#EXT-X-VERSION:2
#EXT-X-MEDIA-SEQUENCE:1
#EXTINF:9,
segment1_3_av.ts?e=b471643725c47acd
#EXTINF:9,
segment2_3_av.ts?e=b471643725c47acd
#EXTINF:9,
segment3_3_av.ts?e=b471643725c47acd
...

For good user experience, we should merge that result into a single file.

@naglis naglis closed this in 50efb38 Feb 20, 2015
@naglis
Copy link
Collaborator

@naglis naglis commented Feb 20, 2015

Support for tv4.se/tv4play.se has been added and should be available in the next release of youtube-dl. Thanks for the report.

@jeekl
Copy link

@jeekl jeekl commented Sep 14, 2016

I just tried this with 2016.09.11 but this does not seem to work.

% youtube-dl --verbose http://www.tv4.se/kalla-fakta/klipp/kalla-fakta-5-english-subtitles-2491650
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'http://www.tv4.se/kalla-fakta/klipp/kalla-fakta-5-english-subtitles-2491650']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.09.11.1
[debug] Python version 2.7.12 - Linux-4.7.3-040703-generic-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: avconv 3.1.3-1, avprobe 3.1.3-1, ffmpeg 3.1.3-1, ffprobe 3.1.3-1, rtmpdump 2.4
[debug] Proxy map: {}
[TV4] 2491650: Downloading video info JSON
[TV4] 2491650: Downloading sources JSON
WARNING: Your copy of avconv is outdated and unable to properly mux separate video and audio files, youtube-dl will download single file media. Update avconv to version 10-0 or newer to fix this.
[debug] Invoking downloader on u'https://progdwnl.tv4.se/mp4root/2013-11-25/kalla_fakta_giftvin_engt_2491650_T6MP425_.mp4?token=1473850470_b9f1844515e6c421c2e3e24ac6e69b6f'
ERROR: unable to download video data: <urlopen error [Errno -2] Name or service not known>
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 1696, in process_info
    success = dl(filename, info_dict)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 1638, in dl
    return fd.download(name, info)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/downloader/common.py", line 354, in download
    return self.real_download(filename, info_dict)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/downloader/http.py", line 58, in real_download
    data = self.ydl.urlopen(request)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 1998, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 429, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 447, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/utils.py", line 1004, in https_open
    req, **kwargs)
  File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open
    raise URLError(err)
URLError: <urlopen error [Errno -2] Name or service not known>
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Sep 14, 2016

@jeekl Could you open a new issue for that?

@jeekl
Copy link

@jeekl jeekl commented Sep 15, 2016

Sure thing.

@jeekl jeekl mentioned this issue Sep 15, 2016
4 of 8 tasks complete
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
5 participants
You can’t perform that action at this time.