{"id":13907694,"url":"https://github.com/Eyevinn/nalu-chunker","last_synced_at":"2025-07-18T06:30:41.619Z","repository":{"id":79237552,"uuid":"275139418","full_name":"Eyevinn/nalu-chunker","owner":"Eyevinn","description":"A transform stream which chunks incoming AVC/H264 bitstream into NAL unit chunks.","archived":false,"fork":false,"pushed_at":"2023-10-03T00:34:54.000Z","size":4,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-02T14:09:43.871Z","etag":null,"topics":["library"],"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/Eyevinn.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,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-06-26T11:25:25.000Z","updated_at":"2025-04-17T16:56:58.000Z","dependencies_parsed_at":"2024-04-09T01:49:27.963Z","dependency_job_id":"f9ebf94e-61bd-41a4-a39e-5285024ece61","html_url":"https://github.com/Eyevinn/nalu-chunker","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"4ca091043c39e293b0e642d738601226037ae5cd"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Eyevinn/nalu-chunker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eyevinn%2Fnalu-chunker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eyevinn%2Fnalu-chunker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eyevinn%2Fnalu-chunker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eyevinn%2Fnalu-chunker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Eyevinn","download_url":"https://codeload.github.com/Eyevinn/nalu-chunker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eyevinn%2Fnalu-chunker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265710530,"owners_count":23815373,"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":["library"],"created_at":"2024-08-06T23:02:05.981Z","updated_at":"2025-07-18T06:30:41.364Z","avatar_url":"https://github.com/Eyevinn.png","language":"JavaScript","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# nalu-chunker\n\nA transform stream which chunks incoming AVC/H264 bitstream into NAL unit chunks.\n\n## API\n\n```\nconst fs = require('fs');\nconst { H264Decoder } = require('h264decoder');\nconst NaluChunker = require('@eyevinn/nalu-chunker);\n\nconst naluChunker = new NaluChunker();\nconst decoder = new H264Decoder();\n\nnaluChunker.on('nalu', nalu =\u003e {\n  console.log(`Got NAL unit ${nalu.type}`);\n  const ret = decoder.decode(nalu.data);\n  if (ret === H264Decoder.PIC_RDY) {\n    console.log(`Got frame ${decoder.width}x${decoder.height}`);\n    // decoder.pic contains YUV420p\n  }\n});\n\nfs.createReadStream('file.h264')\n  .pipe(naluChunker)\n```\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEyevinn%2Fnalu-chunker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FEyevinn%2Fnalu-chunker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEyevinn%2Fnalu-chunker/lists"}