{"id":24552198,"url":"https://github.com/ethand91/mediasoup3-record-demo","last_synced_at":"2025-08-07T14:45:06.903Z","repository":{"id":37814855,"uuid":"203694775","full_name":"ethand91/mediasoup3-record-demo","owner":"ethand91","description":"Simple Record Demo using Mediasoup 3 and GStreamer","archived":false,"fork":false,"pushed_at":"2023-03-04T04:33:56.000Z","size":2140,"stargazers_count":205,"open_issues_count":19,"forks_count":97,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-31T13:18:21.463Z","etag":null,"topics":["ffmpeg","gstreamer","mediasoup","nodejs","video","webrtc"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ethand91.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-22T01:54:52.000Z","updated_at":"2025-03-13T01:13:01.000Z","dependencies_parsed_at":"2025-01-23T01:30:45.341Z","dependency_job_id":"dbfe3d50-54ad-47c0-8266-d7486a55ed83","html_url":"https://github.com/ethand91/mediasoup3-record-demo","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethand91%2Fmediasoup3-record-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethand91%2Fmediasoup3-record-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethand91%2Fmediasoup3-record-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethand91%2Fmediasoup3-record-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ethand91","download_url":"https://codeload.github.com/ethand91/mediasoup3-record-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247675597,"owners_count":20977376,"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":["ffmpeg","gstreamer","mediasoup","nodejs","video","webrtc"],"created_at":"2025-01-23T01:30:37.978Z","updated_at":"2025-04-07T15:08:40.434Z","avatar_url":"https://github.com/ethand91.png","language":"JavaScript","funding_links":["https://www.buymeacoffee.com/ethand9999"],"categories":[],"sub_categories":[],"readme":"# Simple video/audio Record Demo Using mediasoup 3 and GStreamer/FFmpeg\n\n---\n\n## Introduction\n\nSimple video/audio record application using Mediasoup and GStreamer\n\nRecorded files are stored in the server's files directory or the directory set by the user (via process.env.RECORD_FILE_LOCATION_PATH)\n\nFile names are simply the current timestamp\n\nThis sample currently only uses VP8/opus and the output file is .webm\n\n\n---\n\n## How to use\n\n### Install GStreamer\n\n```bash\n# For Ubuntu\nsudo apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio\n```\n\n### Install Server Modules\n\n```bash\ncd server \u0026\u0026 npm i\n```\n\n### Install App Modules\n\n```bash\ncd app \u0026\u0026 npm i\n```\n\n### Configure the server\n\nChange the announced IP in src/config.js to your local ip (config -\u003e webRtcTransport -\u003e listenIps)\n\n### Start the server\n\n```bash\n# The server uses FFmpeg as default\ncd server \u0026\u0026 node src/server\n\n# To use GStreamer\nPROCESS_NAME=\"GStreamer\" node src/server\n```\n\n### Build and start the application\n\n```bash\ncd app\nnpm run build\n\n# Copy the files from dist to a webserver etc.\n# OR start the dev server\nnpm run dev\n```\n\n### Access the sample page\nhttps://localhost:8080\n\n\nBy default recorded videos will be available in `server/files` directory.\n\n---\n\n## Server ENV Options\n\n| Argument | Type | Explanation |\n| -------- | :--: | :---------: |\n| RECORD_FILE_LOCATION_PATH | string | Path to store the recorded files (user running node MUST have read/write permission) |\n| GSTREAMER_DEBUG_LEVEL | number | GStreamer Debug Level (GStreamer only) |\n| PROCESS_NAME | string | The command to use (GStreamer/FFmpeg) (case sensitive) default is FFmpeg |\n| SERVER_PORT | number | Server port number (default is 3000). Note if you change this you will also need to edit the WebSocket connection url. |\n\n---\n\n## TODO\n\n- video/audio only recording\n- Multiple formats (mp4/avi etc)\n- Docker support\n\n---\n\nLike my work? Any support is appreciated.\n\n\u003ca href=\"https://www.buymeacoffee.com/ethand9999\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;\" \u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethand91%2Fmediasoup3-record-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fethand91%2Fmediasoup3-record-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethand91%2Fmediasoup3-record-demo/lists"}