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

How it works, under the hood? #87

Open
VFansss opened this issue Mar 26, 2024 · 3 comments
Open

How it works, under the hood? #87

VFansss opened this issue Mar 26, 2024 · 3 comments

Comments

@VFansss
Copy link

VFansss commented Mar 26, 2024

Hi. First of all, thanks for your efforts.

I've found Sharedown while I was searching on how to download video from Sharepoint. Incredibly, this seems the ONLY solution working I've found online, in either involving ffmpeg and yt-dlp.

I'm asking myself: what actually is Sharedown under the hood?

  • You paste the sharepoint video URL on Sharedown, and you press "Start downloading"
  • "You log in"
  • You land on the video page through url
  • "something happen in the background"
    • I guess Pupeteer (or something like that) ispect the page/traverse the DOM and find the video URL
    • Incredibly, I still didn't understood WHAT is the video URL
  • It pass the URL and I guess some authentication token to yt-dlp or ffmpeg
    • What paremeters it actually pass?

Can I have some detail on what's performed on the bold parts of the process?

Because I would truly like to massive download video/content using yt-dlp (or ffmpeg) but for the love of me I can't find any way to find the right video url to pass to yt-dlp

@MaximAndreevich
Copy link

MaximAndreevich commented Mar 28, 2024

there is a guide on reddit how to use ffmpeg without any wrappers. I guess this is one of the scenarios.
https://www.reddit.com/r/sharepoint/comments/nuk8q0/is_there_any_way_to_download_view_only_videos/
didn't work for me anyway :/

Also you can enable logging and check messages, there are steps described.

@kylon
Copy link
Owner

kylon commented Mar 28, 2024

the app is open source so all steps are in https://github.com/kylon/Sharedown/blob/main/preload.js
there is no url in the page, it tries to catch a known response with the video data and build video manifest url, the manifest url is what ffmpeg and yt-dlp will get

@soufhehe
Copy link

soufhehe commented Apr 8, 2024

yt-dlp -f- --allow-unplayable-format -o "output" "manifest url" and type the audioID+videoID

without --allow-u it says that it is DRM protected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants