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

Download just dash manifest? #3763

Closed
nschwermann opened this issue Sep 15, 2014 · 10 comments
Closed

Download just dash manifest? #3763

nschwermann opened this issue Sep 15, 2014 · 10 comments

Comments

@nschwermann
Copy link

@nschwermann nschwermann commented Sep 15, 2014

I'm not really interested in the video, I just want the dash manifest. But adding --youtube-include-dash-manifest to the command doesn't seem to even save the manifest and it also still downloads the video. Is there a way to get just the manifest? Is this manifest API documented anywhere? Do I even need youtube-dl to get it?
Thanks!

@phihag
Copy link
Contributor

@phihag phihag commented Sep 15, 2014

youtube-dl is an application to download, recode, and play videos and music streams. The manifest itself is neither of those, so downloading just the manifest would be out of scope. Can you elaborate why you want the manifest instead of the video data or at least the video's URL?

@phihag phihag closed this Sep 15, 2014
@nschwermann
Copy link
Author

@nschwermann nschwermann commented Sep 15, 2014

I want to stream youtube videos using DASH so all I need is the manifest. However I cant find any documentation on how to generate the manifest url. This project is the only thing I could find using it besides google's exoplayer.

@diegosuarez
Copy link

@diegosuarez diegosuarez commented Nov 7, 2014

Sorry for necroposting, but I got here searching how to get DASH MPD for youtube files. Although is clearly out of scope for this project, if anybody else is curious about the content of the manifest and doesn't want to surf the source searching, you can do a oneliner in bash and get it with youtube-dl:

curl $(youtube-dl https://www.youtube.com/watch?v=iVAgTiBrrDA --youtube-include-dash-manifest --dump-intermediate-pages -s | grep manifest.google | cut -d ' ' -f 5)
@Avbrella
Copy link

@Avbrella Avbrella commented May 2, 2015

As youtube-dl also downloads annotations, thumbnails, and descriptions is this now a valid feature request or is the preceding solution good enough?

@dhesson
Copy link

@dhesson dhesson commented May 4, 2015

@schwiz not sure if this'll help you (it's been so long since you asked), but I branched the latest version and added dash manifest urls to the result data. Also, I'm no python master, so I just did it however so I can have dash mpds, lol. I commented out a lot of the extractors (we only use youtube), so I wouldn't use my fork.

dhesson/youtube-dl@2d0e886

@jjhesk
Copy link

@jjhesk jjhesk commented Oct 20, 2016

@diegosuarez does it have official support command now?

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Oct 20, 2016

FYI: manifest_url is now exported:

$ youtube-dl -j iVAgTiBrrDA | jq '.formats[0].manifest_url'
"https://manifest.googlevideo.com/..."
@jjhesk
Copy link

@jjhesk jjhesk commented Oct 20, 2016

@yan12125 wow you are so fast! bravo. Where do i get jq

@Khang-NT
Copy link
Contributor

@Khang-NT Khang-NT commented Mar 22, 2017

Some videos is missing dash manifest URL, for instance:
youtube-dl -j kCd72das64k

Does anyone know why?

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Mar 22, 2017

@Khang-NT: There are no MPD-based formats in kCd72das64k. Actually they're uncommon in non-live YouTube videos.

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
8 participants
You can’t perform that action at this time.