question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't download from fc2

See original GitHub issue

I’m using the newest version:

$ youtube-dl --version
2016.09.04.1

the 2-nd part of the movie

youtube-dl -v "http://video.fc2.com/flv2.swf?t=201404182936758512407645&i=20130316kwishtfitaknmcgd76kjd864hso93htfjcnaogz629mcgfs6rbfk0hsycma7shkf85937cbchfygd74&i=20140322uUEnqPZp&d=2653&sj=48000&lang=ja&rel=1&from=11&cmt=1&tk=TlRBM09EQTNNekU9&tl=%E3%83%97%E3%83%AA%E3%82%BA%E3%83%B3%EF%BD%A5%E3%83%96%E3%83%AC%E3%82%A4%E3%82%AF%20S1-02%20%E3%82%A2%E3%83%AC%E3%83%B3%20%E3%80%90%E5%90%B9%E6%9B%BF%E3%80%91"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://video.fc2.com/flv2.swf?t=201404182936758512407645&i=20130316kwishtfitaknmcgd76kjd864hso93htfjcnaogz629mcgfs6rbfk0hsycma7shkf85937cbchfygd74&i=20140322uUEnqPZp&d=2653&sj=48000&lang=ja&rel=1&from=11&cmt=1&tk=TlRBM09EQTNNekU9&tl=%E3%83%97%E3%83%AA%E3%82%BA%E3%83%B3%EF%BD%A5%E3%83%96%E3%83%AC%E3%82%A4%E3%82%AF%20S1-02%20%E3%82%A2%E3%83%AC%E3%83%B3%20%E3%80%90%E5%90%B9%E6%9B%BF%E3%80%91']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.09.04.1
[debug] Python version 2.7.10 - Darwin-15.6.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 2.8, ffprobe 2.8
[debug] Proxy map: {}
[fc2] 20140322uUEnqPZp: Downloading info page
[debug] Invoking downloader on u'http://vip.video48000-cdn2.fc2.com/up/flv/201403/22/u/20140322uUEnqPZp.cdn.flv?mid=cd86bdf82b0afc2c073ebe103f09f0b6'
ERROR: unable to download video data: HTTP Error 403: Forbidden
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1696, in process_info
    success = dl(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1638, in dl
    return fd.download(name, info)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 354, in download
    return self.real_download(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/http.py", line 58, in real_download
    data = self.ydl.urlopen(request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1998, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 437, in open
    response = meth(req, response)
  File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 475, in error
    return self._call_chain(*args)
  File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 558, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden

the 3-rd part of the movie

youtube-dl "http://video.fc2.com/flv2.swf?t=201404182936758512407645&i=20130316kwishtfitaknmcgd76kjd864hso93htfjcnaogz629mcgfs6rbfk0hsycma7shkf85937cbchfygd74&i=20140322hHzrBKeG&d=2647&sj=48000&lang=ja&rel=1&from=11&cmt=1&tk=TlRBM09EQTNNekU9&tl=%E3%83%97%E3%83%AA%E3%82%BA%E3%83%B3%EF%BD%A5%E3%83%96%E3%83%AC%E3%82%A4%E3%82%AF%20S1-03%20%E3%82%BB%E3%83%AB%E3%83%86%E3%82%B9%E3%83%88%20%E3%80%90%E5%90%B9%E6%9B%BF%E3%80%91"
[fc2] 20140322hHzrBKeG: Downloading info page
ERROR: unable to download video data: HTTP Error 403: Forbidden

I didn’t get any error with the first video with the same url structure and was able to download it with the same command:

$ youtube-dl "http://video.fc2.com/flv2.swf?t=201404182936758512407645&i=20130316kwishtfitaknmcgd76kjd864hso93htfjcnaogz629mcgfs6rbfk0hsycma7shkf85937cbchfygd74&i=201403223kCqB3Ez&d=2625&sj=11&lang=ja&rel=1&from=11&cmt=1&tk=TlRBM09EQTNNekU9&tl=%E3%83%97%E3%83%AA%E3%82%BA%E3%83%B3%EF%BD%A5%E3%83%96%E3%83%AC%E3%82%A4%E3%82%AF%20S1-01%20%E3%83%9E%E3%82%A4%E3%82%B1%E3%83%AB%20%E3%80%90%E5%90%B9%E6%9B%BF%E3%80%91"
[fc2] 201403223kCqB3Ez: Downloading info page
[download] Resuming download at byte 1047552
[download] Destination: プリズン・ブレイク S1-01 マイケル 【吹替】-201403223kCqB3Ez.flv
[download]   0.7% of 294.04MiB at 566.73KiB/s ETA 08:47^C
ERROR: Interrupted by user

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14

github_iconTop GitHub Comments

1reaction
whitesiroicommented, Sep 7, 2016

@yan12125 Thank you very much.

Another approach is adding a line to /etc/hosts: 199.116.179.41 vip.video48000-cdn2.fc2.com

Works perfectly.

0reactions
yan12125commented, Sep 6, 2016

Well, now it’s interesting why the video works fine in browsers. Maybe browsers have a correct DNS cache. Anyway, you may want to ask your ISP to stop modifying DNS results, or fix 14.0.44.77

Another approach is adding a line to /etc/hosts:

199.116.179.41 vip.video48000-cdn2.fc2.com

Closing. DNS problems are far beyond the scope of youtube-dl.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Three Free Methods to Download FC2 Videos
Method1 - Free Desktop FC2 Downloader · Step1: Copy FC2 Video URL · Step2: Paste and Analyze URL · Step3: Download Your Video....
Read more >
Downloading videos from FC2.com? : r/Piracy - Reddit
Downloading videos from FC2.com? · Right click and inspect the page · Go to Network · Click on the file name that ends...
Read more >
[HELP] Downloading from FC2 - Monochrome Heaven
Does anybody know a way I can download from this site? ... In any case, my current FLV downloader doesn't seem to be...
Read more >
[Solved] fc2.com problem - Appwork GmbH
I'm copying everything to a text file and adding them one by one to JD2, after each download is complete. I suggest that...
Read more >
The Fastest Way to Download FC2 Videos for Free
Record videos from many unable to download sites. Convert videos to any video and audio formats. Optimized preset for iPhone, Android and other ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found