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

Possible bug for very long videos? #1538

Closed
fyy0r opened this issue Oct 1, 2013 · 2 comments
Closed

Possible bug for very long videos? #1538

fyy0r opened this issue Oct 1, 2013 · 2 comments
Labels
bug

Comments

@fyy0r
Copy link

@fyy0r fyy0r commented Oct 1, 2013

Encountered an issue trying to download this video, which is > 5 hours: http://www.youtube.com/watch?v=xM55B9O3R6E

Error output:

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://www.youtube.com/watch?v=xM55B9O3R6E']
[debug] youtube-dl version 2013.10.01.1
[debug] Python version 2.7.5 - Windows-8-6.2.9200
[debug] Proxy map: {}
[youtube] Setting language
[youtube] xM55B9O3R6E: Downloading video webpage
[youtube] xM55B9O3R6E: Downloading video info webpage
[youtube] xM55B9O3R6E: Extracting video information
ERROR: unable to download video data: HTTP Error 404: Not Found
Traceback (most recent call last):
File "youtube_dl\YoutubeDL.pyo", line 563, in process_info
File "youtube_dl\FileDownloader.pyo", line 456, in _do_download
File "urllib2.pyo", line 127, in urlopen
File "urllib2.pyo", line 410, in open
File "urllib2.pyo", line 523, in http_response
File "urllib2.pyo", line 442, in error
File "urllib2.pyo", line 382, in _call_chain
File "urllib2.pyo", line 629, in http_error_302
File "urllib2.pyo", line 410, in open
File "urllib2.pyo", line 523, in http_response
File "urllib2.pyo", line 448, in error
File "urllib2.pyo", line 382, in _call_chain
File "urllib2.pyo", line 531, in http_error_default
HTTPError: HTTP Error 404: Not Found

I have tested this version with other videos and they work fine.

@chid
Copy link

@chid chid commented Oct 2, 2013

The video doesn't seem to work properly for me.

edit: I mean in the browser.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Oct 6, 2013

I can play it in the browser, but I get the same error when trying to download it. We will have to investigate.
In the meantime you can download the audio and the video to different files and join them (requires ffmpeg)

  1. Get the formats with youtube-dl 'http://www.youtube.com/watch?v=xM55B9O3R6E' -F, the important ones are the DASH * formats:

    136 :   mp4 [720p] (DASH Video)
    135 :   mp4 [480p] (DASH Video)
    134 :   mp4 [360p] (DASH Video)
    133 :   mp4 [240p] (DASH Video)
    160 :   mp4 [192p] (DASH Video)
    141 :   mp4 [256k] (DASH Audio)
    140 :   mp4 [128k] (DASH Audio)
    139 :   mp4 [48k] (DASH Audio)
    
  2. Choose one audio format and one video format, for example:

youtube-dl 'http://www.youtube.com/watch?v=xM55B9O3R6E' -f 139 -o audio.mp4
youtube-dl 'http://www.youtube.com/watch?v=xM55B9O3R6E' -f 133 -o video.mp4
  1. Join them: ffmpeg -i video.mp4 -i audio.mp4 finalvideo.mp4

Thanks for the report

@dstftw dstftw closed this Jan 24, 2016
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
4 participants
You can’t perform that action at this time.