{"id":20460600,"url":"https://github.com/spencerjibz/video_compression","last_synced_at":"2026-02-23T15:01:17.022Z","repository":{"id":98531052,"uuid":"550327401","full_name":"spencerjibz/video_compression","owner":"spencerjibz","description":"Video compression nodejs","archived":false,"fork":false,"pushed_at":"2024-09-15T10:55:09.000Z","size":40,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T06:03:59.019Z","etag":null,"topics":["ffmpeg","fluent-ffmpeg","nodejs","worker-threads"],"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/spencerjibz.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,"zenodo":null}},"created_at":"2022-10-12T15:16:15.000Z","updated_at":"2025-01-02T11:10:03.000Z","dependencies_parsed_at":"2025-04-13T06:04:01.226Z","dependency_job_id":"518cd683-d641-4151-a2eb-e679ffb4f3fa","html_url":"https://github.com/spencerjibz/video_compression","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/spencerjibz/video_compression","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spencerjibz%2Fvideo_compression","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spencerjibz%2Fvideo_compression/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spencerjibz%2Fvideo_compression/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spencerjibz%2Fvideo_compression/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spencerjibz","download_url":"https://codeload.github.com/spencerjibz/video_compression/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spencerjibz%2Fvideo_compression/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29746499,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","fluent-ffmpeg","nodejs","worker-threads"],"created_at":"2024-11-15T12:20:38.692Z","updated_at":"2026-02-23T15:01:17.005Z","avatar_url":"https://github.com/spencerjibz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Video transcoding nodejs\nSimple tutorial  of video transcoding with [fluent-ffmpeg](https://github.com/fluent-ffmpeg/node-fluent-ffmpeg).\n\n### Requirments\n- Nodejs versions with worker_threads \u0026 esmodule support\n- ffmpeg ;\n- ***Optional:*** Hardware acceleration requirements (Nvidia GPU with nvenc support Or  Apple Silicon devices)\n\n### Features\n- h264 compression with a crf of 28,\n- Both single thread(singlethreaded.js) and multi-thread workloads(index.js\u0026)\n- Resizing to any resolution (when provided  an array of resolutions)\n- Conversion to mp4\n- Hardware accelerated video compression with cuda support(using h264_nevc) \u0026\u0026 videotool box for Mac\n\n### usage\n **Note:**\n - Before testing, create a folder named compressed in the root directory.\n - For GPU acceleration, follow  the instructions [here](https://docs.nvidia.com/video-technologies/video-codec-sdk/ffmpeg-with-nvidia-gpu/) to add hardware acceleration support to ffmpeg. (Nividia only).\n\u003cBr\u003e\n\n\n1. single threaded \u003cBr\u003e\n```bash\n node singlethreaded.js [InputFilenamewithExt]\n\n ```\n 2. Multithreaded workload. \u003cBr\u003e\n\n\n```bash\n node  index.js [InputFilenamewithExt]\n\n```\n\n3. Clean up the example out files\n```sh\n  ./cleanup.sh \n```\n4. Compare  video file sizes of original and compressed;\n```bash\n ./checkVideoSize.sh\n```\n\n\n#### The End\nthanks\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspencerjibz%2Fvideo_compression","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspencerjibz%2Fvideo_compression","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspencerjibz%2Fvideo_compression/lists"}