{"id":19928137,"url":"https://github.com/mdilshan/simple-mjpeg-decoder-js","last_synced_at":"2025-11-26T04:02:25.517Z","repository":{"id":192373681,"uuid":"686604424","full_name":"mdilshan/simple-mjpeg-decoder-js","owner":"mdilshan","description":"A simple MJPEG decoder created with vanilla javascript","archived":false,"fork":false,"pushed_at":"2023-09-03T11:05:34.000Z","size":96160,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T00:47:14.366Z","etag":null,"topics":["javascript","javascript-generators","mjpeg-decoder","mjpeg-stream","streaming","teaching-materials"],"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/mdilshan.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":"2023-09-03T11:03:43.000Z","updated_at":"2023-09-04T03:55:26.000Z","dependencies_parsed_at":"2023-09-04T14:18:28.205Z","dependency_job_id":null,"html_url":"https://github.com/mdilshan/simple-mjpeg-decoder-js","commit_stats":null,"previous_names":["mdilshan/simple-mjpeg-decoder-js"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdilshan%2Fsimple-mjpeg-decoder-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdilshan%2Fsimple-mjpeg-decoder-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdilshan%2Fsimple-mjpeg-decoder-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdilshan%2Fsimple-mjpeg-decoder-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdilshan","download_url":"https://codeload.github.com/mdilshan/simple-mjpeg-decoder-js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241355036,"owners_count":19949292,"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":["javascript","javascript-generators","mjpeg-decoder","mjpeg-stream","streaming","teaching-materials"],"created_at":"2024-11-12T22:36:22.796Z","updated_at":"2025-11-26T04:02:20.481Z","avatar_url":"https://github.com/mdilshan.png","language":"JavaScript","readme":"### A Simple MJPEG decoder created with vanilla javascript.\n\n\u003e Note: This decoder is created to teach javascript to beginers so it might not production ready and may have performance issues.\n\n#### Content\n\n- `/server` contains a express server which serve mjpeg stream.\n- `/server/media30fps` contains frames from a sample video. I used ffmpeg to generate the frames from a mp4 video.\n\nYou can also generate frames using,\n\n```ffmpeg -i input.mp4 -vf \"fps=10\" -q:v 1 output_%04d.jpg```\n\nYou can get the fps of the video using,\n\n```ffprobe -select_streams v:0 -show_entries stream=r_frame_rate sample.mp4```\n\n\n#### Run the project\n\nTo start the project, run the `server/server.js` file using node,\n\n```node server/server.js```\n\nThen start the client side code using `live-server` or using any other development server.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdilshan%2Fsimple-mjpeg-decoder-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdilshan%2Fsimple-mjpeg-decoder-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdilshan%2Fsimple-mjpeg-decoder-js/lists"}