{"id":22118337,"url":"https://github.com/manav2401/internet-tv-multicast","last_synced_at":"2025-06-16T04:11:10.349Z","repository":{"id":120690365,"uuid":"227612653","full_name":"manav2401/internet-tv-multicast","owner":"manav2401","description":"Implementation of Internet TV using IP Multicast","archived":false,"fork":false,"pushed_at":"2020-01-02T13:35:21.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T06:19:02.586Z","etag":null,"topics":["c","internet-tv","multicast","realtime","socket","tcp","udp"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manav2401.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":"2019-12-12T13:24:17.000Z","updated_at":"2023-03-04T09:38:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"0e841ba6-61d8-45b7-8ec1-a521c35afb3c","html_url":"https://github.com/manav2401/internet-tv-multicast","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/manav2401/internet-tv-multicast","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manav2401%2Finternet-tv-multicast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manav2401%2Finternet-tv-multicast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manav2401%2Finternet-tv-multicast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manav2401%2Finternet-tv-multicast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manav2401","download_url":"https://codeload.github.com/manav2401/internet-tv-multicast/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manav2401%2Finternet-tv-multicast/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260093723,"owners_count":22957726,"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":["c","internet-tv","multicast","realtime","socket","tcp","udp"],"created_at":"2024-12-01T13:49:18.600Z","updated_at":"2025-06-16T04:11:10.331Z","avatar_url":"https://github.com/manav2401.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Internet TV/Radio Multicast\nAn IP Multicast model has been implemented socket programming in c.   \n\n## Model Flow: \n- Initially by running the `server` program, the server setups 2 multicast groups at different multicast address.\n- Both groups have threads running for transmission of data which are active after the setup immediately. \n- When a new client arrives, it receives the available stations present through a **TCP Socket**.\n- ON selecting a group, the client immediately starts receiving the data and other stream information through **UDP Sockets** on 2 different threads. \n- The Client can view the video/audio in real time, based on its joining time to the group. \n- Client also has a functionality to pause and play the stream, by keyboard interruption. \n- Multicast group address and ports are fixed in both server and client programmes. \n\n## Compiling and Running Instructions\n- Server   \n  - Compiling: `gcc server.c -o server -lpthread`  \n  - Running: `./server PORT`\n  - `PORT`: Server Port\n  - For sending audio/video files from multicast group, the files must be converted into streamable format.   \n  It can be done using following command:   \n  `ffmpeg -i \u003cinputfilename.extension\u003e -f mpegts \u003cstreamable_output.extension\u003e`\n  \n- Client\n  - Compiling: `gcc client.c -o client -lpthread`\n  - Running: `sudo ./client SERVER_IP PORT` (`sudo` is mandatory, as it accesses accesses network interface).\n  - `SERVER_IP`: Server IP (`0.0.0.0 / 127.0.0.1` if running in same machine else IP address of Server)   \n  - `PORT`: Client Port\n  - For Playing the audio/video file received through socket in client, run the following command in new window: `ffplay -i \u003cfilename.extension\u003e`\n  - For pause operation, press `p` on the terminal receiving the data. It acts as a keyboard interrupt.\n  - For restart, press `r` on the terminal.\n  - Also, do change the interface name in code according to machine (Use `ifconfig` command).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanav2401%2Finternet-tv-multicast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanav2401%2Finternet-tv-multicast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanav2401%2Finternet-tv-multicast/lists"}