{"id":19788300,"url":"https://github.com/guuzzeji/youtube-server-backend-experiment","last_synced_at":"2026-05-14T04:41:07.600Z","repository":{"id":190541229,"uuid":"580129255","full_name":"Guuzzeji/YouTube-Server-Backend-Experiment","owner":"Guuzzeji","description":"A experiment to understand how MPD files work and understand how YouTube backend works when it comes to streaming video / audio files.","archived":false,"fork":false,"pushed_at":"2022-12-19T19:48:49.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-11T03:49:04.195Z","etag":null,"topics":["mpd","mpd-server","video-processing","video-streaming","youtube","youtube-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Guuzzeji.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-12-19T19:45:33.000Z","updated_at":"2022-12-28T15:38:22.000Z","dependencies_parsed_at":"2023-08-25T05:58:23.603Z","dependency_job_id":null,"html_url":"https://github.com/Guuzzeji/YouTube-Server-Backend-Experiment","commit_stats":null,"previous_names":["guuzzeji/youtube-server-backend-experiment"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guuzzeji%2FYouTube-Server-Backend-Experiment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guuzzeji%2FYouTube-Server-Backend-Experiment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guuzzeji%2FYouTube-Server-Backend-Experiment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guuzzeji%2FYouTube-Server-Backend-Experiment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Guuzzeji","download_url":"https://codeload.github.com/Guuzzeji/YouTube-Server-Backend-Experiment/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241125001,"owners_count":19913839,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mpd","mpd-server","video-processing","video-streaming","youtube","youtube-api"],"created_at":"2024-11-12T06:26:47.381Z","updated_at":"2026-05-14T04:41:02.574Z","avatar_url":"https://github.com/Guuzzeji.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YouTube Server Backend Experiment\n\nA experiment to understand how MPD files work and understand how YouTube backend works when it comes to streaming video / audio files.\n\n## How it Works\nHow this project works is by first getting YouTube's MPD file for a specific video and then processes the MPD file in order to redirect the links towards a custom server (the cors server). Then it can finally send the custom MPD file to the client that requested the video. Essentially, this project acts as a proxy for watching YouTube videos. \n\n\n## TODO LIST\n- [x] Create MPD file parser, that switches google url to api url\n- [x] Create api call that allows server to fetch video from google servers\n- [x] Create test html and video\n- [ ] (Optional) Add which region a video is block from, using https://polsy.org.uk/stuff/ytrestrict.cgi\n\n\n### Tools / Links / Docs\n- use this to what region a video is blocked https://polsy.org.uk/stuff/ytrestrict.cgi, just need to parse data\n- https://api.invidious.io/ (getting server data)\n- Use video api (https://github.com/sampotts/plyr), should download and add build to dependencies list\n- https://docs.invidious.io/instances/ (Has more then one server can setup custom server) - this one is better\n- https://sr.ht/~cadence/tube/ (CloudTube)\n- https://redirect.invidious.io/watch?v=A7pGwBSmzrc\u0026t=14 (generate live list servers to use)\n- Use Dashurl from video api, use dash,js (https://github.com/Dash-Industry-Forum/dash.js/)\n\n## Helps\n- https://medium.com/litslink/node-js-video-streaming-and-segmentation-in-examples-a1f094dbe8ef\n- https://stackoverflow.com/questions/37614649/how-can-i-download-and-save-a-file-using-the-fetch-api-node-js\n- https://stackoverflow.com/questions/38788721/how-do-i-stream-response-in-express\n- https://stackoverflow.com/questions/23751914/how-can-i-set-response-header-on-express-js-assets\n- https://developer.mozilla.org/en-US/docs/Web/API/Headers/entries\n- https://stackoverflow.com/questions/43007961/how-to-pass-a-url-as-a-url-parameter-in-express","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguuzzeji%2Fyoutube-server-backend-experiment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguuzzeji%2Fyoutube-server-backend-experiment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguuzzeji%2Fyoutube-server-backend-experiment/lists"}