{"id":15816668,"url":"https://github.com/aler9/gst-namedpipe","last_synced_at":"2025-09-05T11:46:51.918Z","repository":{"id":107545711,"uuid":"331600581","full_name":"aler9/gst-namedpipe","owner":"aler9","description":"GStreamer element that allows to write/read data to/from named pipes","archived":false,"fork":false,"pushed_at":"2025-01-10T16:20:25.000Z","size":37,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-15T00:44:10.144Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aler9.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-01-21T11:02:31.000Z","updated_at":"2025-02-19T04:03:59.000Z","dependencies_parsed_at":"2025-05-08T00:43:53.640Z","dependency_job_id":"0f09b8b7-e58e-49a9-bdf1-20572dabb7bc","html_url":"https://github.com/aler9/gst-namedpipe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aler9/gst-namedpipe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aler9%2Fgst-namedpipe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aler9%2Fgst-namedpipe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aler9%2Fgst-namedpipe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aler9%2Fgst-namedpipe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aler9","download_url":"https://codeload.github.com/aler9/gst-namedpipe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aler9%2Fgst-namedpipe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273753538,"owners_count":25161911,"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","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-05T05:06:40.078Z","updated_at":"2025-09-05T11:46:51.848Z","avatar_url":"https://github.com/aler9.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# gst-namedpipe\n\nGStreamer elements that allow to read/write incoming data to/from named pipes:\n\n* `namedpipesrc location=/path/to/namedpipe`\n* `namedpipesink location=/path/to/namedpipe`\n\nThese have a couple of advantages with respect to `udpsrc` and `udpsink`:\n\n* named pipes are more efficient than UDP\n* frame size is unlimited, while in UDP there's a limit of 65536 bytes\n\nFrames are prefixed with their size, in order to allow readers to correctly split them.\n\n## Installation\n\nInstall build dependencies:\n\n```\nsudo apt install -y --no-install-recommends \\\ngcc \\\nmeson \\\nlibgstreamer-plugins-base1.0-dev\n```\n\nCompile and install:\n\n```\nmeson --prefix=/usr build \\\n\u0026\u0026 cd build \\\n\u0026\u0026 ninja \\\n\u0026\u0026 sudo ninja install\n```\n\n## Usage\n\n1. Create a named pipe\n\n   ```\n   mkfifo /tmp/testing\n   ```\n\n2. Write a reader, for instance this is a reader written in C\n\n   ```c\n   #include \u003cstdlib.h\u003e\n   #include \u003cstdint.h\u003e\n   #include \u003cfcntl.h\u003e\n   #include \u003cunistd.h\u003e\n\n   int main() {\n       int fd = open(\"/tmp/testing\", O_RDWR);\n       if (fd \u003c 0) {\n           printf(\"unable to open named pipe\\n\");\n           return 1;\n       }\n\n       uint8_t buf[1024*1024];\n\n       while (1) {\n           uint32_t size = 0;\n           size_t n = read(fd, \u0026size, sizeof(uint32_t));\n           if (n != sizeof(uint32_t)) {\n               break;\n           }\n\n           n = read(fd, buf, size);\n           if (n != size) {\n               break;\n           }\n\n           printf(\"received %d\\n\", size);\n       }\n\n       return 0;\n   }\n   ```\n\n   Compile and launch the reader\n\n   ```\n   gcc -o reader reader.c\n   /reader \u0026\n   ```\n\n3. Launch a pipeline\n\n   ```\n   gst-launch-1.0 \\\n   videotestsrc \\\n   ! video/x-raw,width=640,height=320,framerate=20/1 \\\n   ! namedpipesink location=/tmp/testing sync=1\n   ```\n\n   Data is now available to the reader.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faler9%2Fgst-namedpipe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faler9%2Fgst-namedpipe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faler9%2Fgst-namedpipe/lists"}