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

DASH segments url 404, but video can be downloaded #11925

Closed
benny10033 opened this issue Jan 31, 2017 · 1 comment
Closed

DASH segments url 404, but video can be downloaded #11925

benny10033 opened this issue Jan 31, 2017 · 1 comment
Labels

Comments

@benny10033
Copy link

@benny10033 benny10033 commented Jan 31, 2017

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like that [x])
  • Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.01.31. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

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

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)

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

youtube-dl.exe -v -g https://www.youtube.com/watch?v=cF_P4j5fg5I
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-g', 'https://www.youtube.com/watch?v=cF_P4j5fg5I']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2017.01.31
[debug] Python version 3.4.4 - Windows-10-10.0.14393
[debug] exe versions: ffmpeg N-72981-gdc87758, ffprobe N-72981-gdc87758
[debug] Proxy map: {}
https://r2---sn-j5o5gpx-t8ge.googlevideo.com/videoplayback/id/705fcfe23e5f8392/itag/137/source/yt_otf/requiressl/yes/initcwndbps/10057500/mm/31/pcm2cms/yes/mn/sn-j5o5gpx-t8ge/ms/au/mv/m/pl/19/ratebypass/yes/mime/video%2Fmp4/otfp/1/otf/1/lmt/1462872727477075/key/dg_yt0/signature/5A6117BFC18473C7139016BFEA771969B2124972.4C56C65450E1AB86A5F2181F92149D17FFCC8662/mt/1485900264/upn/1aAdXQMkSww/ip/207.23.183.16/ipbits/0/expire/1485922088/sparams/ip,ipbits,expire,id,itag,source,requiressl,initcwndbps,mm,pcm2cms,mn,ms,mv,pl,ratebypass,mime,otfp,otf,lmt/
https://r2---sn-j5o5gpx-t8ge.googlevideo.com/videoplayback/id/705fcfe23e5f8392/itag/140/source/youtube/requiressl/yes/initcwndbps/10057500/mm/31/pcm2cms/yes/mn/sn-j5o5gpx-t8ge/ms/au/mv/m/pl/19/ratebypass/yes/mime/audio%2Fmp4/otfp/1/gir/yes/clen/6504812/lmt/1392827889841252/dur/409.530/key/dg_yt0/signature/6EFF989A993BD157D1844D4AFC229D49B1693C46.5CB24AB87957442185791A46E8A52A0AF7843984/mt/1485900264/upn/1aAdXQMkSww/ip/207.23.183.16/ipbits/0/expire/1485922088/sparams/ip,ipbits,expire,id,itag,source,requiressl,initcwndbps,mm,pcm2cms,mn,ms,mv,pl,ratebypass,mime,otfp,gir,clen,lmt,dur/

youtube-dl.exe -v https://www.youtube.com/watch?v=cF_P4j5fg5I
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.youtube.com/watch?v=cF_P4j5fg5I']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2017.01.31
[debug] Python version 3.4.4 - Windows-10-10.0.14393
[debug] exe versions: ffmpeg N-72981-gdc87758, ffprobe N-72981-gdc87758
[debug] Proxy map: {}
[youtube] cF_P4j5fg5I: Downloading webpage
[youtube] cF_P4j5fg5I: Downloading video info webpage
[youtube] cF_P4j5fg5I: Extracting video information
[youtube] cF_P4j5fg5I: Downloading MPD manifest
[youtube] cF_P4j5fg5I: Downloading MPD manifest
[debug] Invoking downloader on 'https://r2---sn-j5o5gpx-t8ge.googlevideo.com/videoplayback/id/705fcfe23e5f8392/itag/137/source/yt_otf/requiressl/yes/initcwndbps/6980000/mm/31/mn/sn-j5o5gpx-t8ge/pl/19/mv/m/ms/au/pcm2cms/yes/ratebypass/yes/mime/video%2Fmp4/otfp/1/otf/1/lmt/1462872727477075/mt/1485900500/signature/109E0024E5C8D2E56C5E8ED86E926BADC94E3FC5.48ED9E73B05BD9CC6B8ADE3ACB896D6CE0EE0794/upn/hNKPzBmnaOk/key/dg_yt0/ip/207.23.183.16/ipbits/0/expire/1485922153/sparams/ip,ipbits,expire,id,itag,source,requiressl,initcwndbps,mm,mn,pl,mv,ms,pcm2cms,ratebypass,mime,otfp,otf,lmt/'
[dashsegments] Total fragments: 83
[download] Destination: prob1b-cF_P4j5fg5I.f137.mp4
[download] 100% of 92.22MiB in 00:37
[debug] Invoking downloader on 'https://r2---sn-j5o5gpx-t8ge.googlevideo.com/videoplayback/id/705fcfe23e5f8392/itag/140/source/youtube/requiressl/yes/initcwndbps/6980000/mm/31/mn/sn-j5o5gpx-t8ge/pl/19/mv/m/ms/au/pcm2cms/yes/ratebypass/yes/mime/audio%2Fmp4/otfp/1/gir/yes/clen/6504812/lmt/1392827889841252/dur/409.530/mt/1485900500/signature/95907E96C13EAA1C8B4174F7704F2113458C3DC5.3EE83F5A79D9F64D0B6750173617F194AA15FF00/upn/hNKPzBmnaOk/key/dg_yt0/ip/207.23.183.16/ipbits/0/expire/1485922153/sparams/ip,ipbits,expire,id,itag,source,requiressl,initcwndbps,mm,mn,pl,mv,ms,pcm2cms,ratebypass,mime,otfp,gir,clen,lmt,dur/'
[dashsegments] Total fragments: 42
[download] Destination: prob1b-cF_P4j5fg5I.f140.m4a
[download] 100% of 6.20MiB in 00:02
[ffmpeg] Merging formats into "prob1b-cF_P4j5fg5I.mp4"
[debug] ffmpeg command line: ffmpeg -y -i file:prob1b-cF_P4j5fg5I.f137.mp4 -i file:prob1b-cF_P4j5fg5I.f140.m4a -c copy -map 0:v:0 -map 1:a:0 file:prob1b-cF_P4j5fg5I.temp.mp4
Deleting original file prob1b-cF_P4j5fg5I.f137.mp4 (pass -k to keep)
Deleting original file prob1b-cF_P4j5fg5I.f140.m4a (pass -k to keep)

...
<end of log>

Description of your issue, suggested solution and other information

Browsing the generated video url give error 404 not found.
However, video still can be downloaded.(As shown in the log)
Youtube video info from https://www.h3xed.com/blogmedia/youtube-info.php : An unknown error occurred. Please try again in a few seconds.

I really can't understand why can the video be downloaded even the url generated is broken.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 31, 2017

Because for DASH in segments it's not a download URL, but a base URL for fragments. Fragments' URLs are in fragments dict of info dict.

@dstftw dstftw closed this Jan 31, 2017
@dstftw dstftw added the invalid label Jan 31, 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
2 participants
You can’t perform that action at this time.