{"id":18787195,"url":"https://github.com/michaelforney/upnp-av","last_synced_at":"2026-03-12T20:13:46.930Z","repository":{"id":46594343,"uuid":"327239706","full_name":"michaelforney/upnp-av","owner":"michaelforney","description":"UPnP AV server","archived":false,"fork":false,"pushed_at":"2023-12-28T21:30:26.000Z","size":20,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-13T13:12:14.829Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michaelforney.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}},"created_at":"2021-01-06T07:53:07.000Z","updated_at":"2024-11-15T14:52:06.000Z","dependencies_parsed_at":"2024-11-07T20:53:52.995Z","dependency_job_id":null,"html_url":"https://github.com/michaelforney/upnp-av","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/michaelforney/upnp-av","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelforney%2Fupnp-av","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelforney%2Fupnp-av/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelforney%2Fupnp-av/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelforney%2Fupnp-av/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelforney","download_url":"https://codeload.github.com/michaelforney/upnp-av/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelforney%2Fupnp-av/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30441857,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T14:34:45.044Z","status":"ssl_error","status_checked_at":"2026-03-12T14:09:33.793Z","response_time":114,"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":[],"created_at":"2024-11-07T20:53:48.810Z","updated_at":"2026-03-12T20:13:46.901Z","avatar_url":"https://github.com/michaelforney.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## upnp-av\n\nupnp-av is a server implementing a minimal [UPnP MediaServer] device.\nIt presents the contents of a local directory as a [UPnP\nContentDirectory], enabling other devices on the network (such as\nsmart TVs) to browse the media files it contains. The files themselves\nare then streamed by some other HTTP server which is configured\nseparately.\n\n### Building\n\nupnp-av is written in POSIX C99, and also requires `memmem`. It can\nbe built using\n\n```\nmake\n```\n\n### Configuring an HTTP server\n\n`upnp-mediaserver` implements directory navigation through the UPnP\nContentDirectory service. The transfer of the files is handled\nthrough a standard HTTP server, serving that same directory at some\nlocation.\n\nOne TV I tested with required a special DLNA header in order to\nsupport pause and seeking: `contentFeatures.dlna.org: DLNA.ORG_OP=01`.\nThis allows the player to use the HTTP/1.1 `Range` header to fetch\ncertain fragments of the file. On nginx, this header can be added with\n\n```\nadd_header contentFeatures.dlna.org DLNA.ORG_OP=01;\n```\n\n### Running\n\nTo run `upnp-mediaserver`, you must choose a UUID to identify the\nserver. This can be generated with `uuidgen` from util-linux.\nCurrently, you also need to explicitly specify the address to bind\nto.\n\n```\nUUID=$(uuidgen)\nupnp-mediaserver -l bind-address -C /path/to/media \"$UUID\" http://mediaserver/\n```\n\nResource URLs are contructed by prepending the given URL prefix (in\nthis example, `http://mediaserver/`) with the URL-encoded filename\nin the local directory. The expectation is that these map 1-1 with\nthe files served by the HTTP server.\n\n### Current status\n\nIt works, but some of the code is a little rough and needs some\nclean-up.\n\n[UPnP MediaServer]: http://upnp.org/specs/av/UPnP-av-MediaServer-v1-Device.pdf\n[UPnP ContentDirectory]: http://upnp.org/specs/av/UPnP-av-ContentDirectory-v1-Service.pdf\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelforney%2Fupnp-av","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelforney%2Fupnp-av","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelforney%2Fupnp-av/lists"}