{"id":18331565,"url":"https://github.com/angrycoding/sps-parser","last_synced_at":"2025-04-06T03:33:19.283Z","repository":{"id":148799888,"uuid":"255424884","full_name":"angrycoding/sps-parser","owner":"angrycoding","description":"H.264 sequence param parser (sps) written in pure C with no dependencies","archived":false,"fork":false,"pushed_at":"2024-09-09T07:24:41.000Z","size":338,"stargazers_count":20,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T16:11:12.122Z","etag":null,"topics":["exp-golomb","golomb","h264","pps","sps","video"],"latest_commit_sha":null,"homepage":null,"language":"C","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/angrycoding.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":"2020-04-13T19:39:12.000Z","updated_at":"2025-03-14T00:56:41.000Z","dependencies_parsed_at":"2024-11-05T19:55:24.404Z","dependency_job_id":null,"html_url":"https://github.com/angrycoding/sps-parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angrycoding%2Fsps-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angrycoding%2Fsps-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angrycoding%2Fsps-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angrycoding%2Fsps-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/angrycoding","download_url":"https://codeload.github.com/angrycoding/sps-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247430837,"owners_count":20937873,"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":["exp-golomb","golomb","h264","pps","sps","video"],"created_at":"2024-11-05T19:33:23.268Z","updated_at":"2025-04-06T03:33:19.035Z","avatar_url":"https://github.com/angrycoding.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"#  💜If you like my projects, you can support me.\n\n| Coin/Symbol | Network | Adress |\n|------|---------|--------|\n| Bitcoin (BTC) | BTC | 1LU7DtLiKkWe3aAXbhRhNAMUFdrapWuAHW |\n| Tether (USDT) | TRC20 | TK7f7TXozWVbkHxdArAJd2rELu725q1Ac5 |\n| Tether (USDT) | TON | UQDI4e7xm_B7O_REaYd5CoyEz1Ki08t0EPlUim022_K9B2xa |\n\n\n# sps-parser\nH.264 sequence param parser (sps) written in pure C with no dependencies.\nSequence parameter set is decribed somewhere in here: https://tools.ietf.org/html/rfc3984 (see below for more detailed format description).\nPrimary use is for obtaining stream dimensions, but you can take it as a boilerplate and extract anything you need (fps and god knows what else is there).  Usage:\n\n```c\nint main(int argc , char *argv[]) {\n\tuint8_t buffer[] = \"J00AH41qBQBboQAAAwABAAADADKE\";\n\tuint32_t dimensions = sps_parser(buffer);\n\t// 1280x720\n\tprintf(\"width = %d\\nheight = %d\\n\", dimensions \u003e\u003e 16, dimensions \u0026 0xFFFF);\n\n\tstrcpy(buffer, \"J00AH41qCwEmhAAAAwAEAAADAMoQ\");\n\tdimensions = sps_parser(buffer);\n\t// 704x576\n\tprintf(\"width = %d\\nheight = %d\\n\", dimensions \u003e\u003e 16, dimensions \u0026 0xFFFF);\n\n\tstrcpy(buffer, \"J00AH41qCwPaEAAAAwAQAAADAyhA\");\n\tdimensions = sps_parser(buffer);\n\t// 704x480\n\tprintf(\"width = %d\\nheight = %d\\n\", dimensions \u003e\u003e 16, dimensions \u0026 0xFFFF);\n}\n```\n\n![SPS in details](https://raw.githubusercontent.com/angrycoding/sps-parser/master/sps.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangrycoding%2Fsps-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangrycoding%2Fsps-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangrycoding%2Fsps-parser/lists"}