{"id":15456620,"url":"https://github.com/phillmac/media-srv","last_synced_at":"2025-04-01T11:33:49.569Z","repository":{"id":123993457,"uuid":"157942451","full_name":"phillmac/media-srv","owner":"phillmac","description":"Ffmpeg and other utils for streaming and ripping","archived":false,"fork":false,"pushed_at":"2021-10-04T02:38:59.000Z","size":107,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-12T12:10:00.032Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/phillmac.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":"2018-11-17T02:14:17.000Z","updated_at":"2021-10-04T02:39:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"23c3409a-b6d3-4f9d-8108-6a11d4066ee5","html_url":"https://github.com/phillmac/media-srv","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/phillmac%2Fmedia-srv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phillmac%2Fmedia-srv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phillmac%2Fmedia-srv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phillmac%2Fmedia-srv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phillmac","download_url":"https://codeload.github.com/phillmac/media-srv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246633964,"owners_count":20809172,"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":[],"created_at":"2024-10-01T22:34:38.322Z","updated_at":"2025-04-01T11:33:49.551Z","avatar_url":"https://github.com/phillmac.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# media-srv\nFfmpeg, streamlink and other utils for streaming and ripping\n\n# Build instructions:\n```bash\nubuntu_version=\"18.04\"\nffmpeg_version=\"tags/n4.2.1\"\n\ndocker build \\\n    -t phillmac/ffmpeg-build:${ubuntu_version}-${ffmpeg_version////_} \\\n    --build-arg FFMPEG_VERSION=${ffmpeg_version} \\\n    --target ffmpeg_builder \\\n    git://github.com/phillmac/ffmpeg-build#${ubuntu_version}\n\ndocker build \\\n    -t phillmac/mkvserver_mk2-build \\\n    --target mkvserver_mk2_builder \\\n    git://github.com/phillmac/mkvserver_mk2-build\n\ndocker build \\\n    -t phillmac/python-ubuntu:18.04-3.7.1 \\\n    -t phillmac/python-ubuntu:18.04-3.7 \\\n    -t phillmac/python-ubuntu \\\n    git://github.com/phillmac/docker-python-ubuntu#18.04-3.7.1\n    \ndocker build \\\n    -t phillmac/media-srv \\\n    git://github.com/phillmac/media-srv\n```\n# Example docker-compose.yml:\n\n```\nversion: \"3.6\"\n\nservices:\n  media-srv-monstercat:\n    image: phillmac/media-srv\n    container_name: pvs-media-srv\n    restart: unless-stopped\n    network_mode: host\n    tmpfs:\n    - /tmp\n    volumes:\n      - /dev/shm/hls:/dev/shm/hls\n      # - media-srv-monstercat-user:/home/user\n    tty: true\n    environment:\n      hls_cleanup_patern: /dev/shm/hls/monstercat/monstercat*\n      media_srv_cmd: bash_repeat streamlink_hls_mkvserver_ice_av_out\n      streamlink_url: twitch.tv/monstercat\n      streamlink_quality: best\n      ffmpeg_hls_list_size: 20\n      ffmpeg_hls_seg_leng: 15\n      ffmpeg_hls_out: /dev/shm/hls/monstercat/monstercat.m3u8\n      ffmpeg_ice_name: Monstercat Radio\n      ffmpeg_ice_description: Monstercat Radio - 24/7 Music Stream - monster.cat/Spotify-Playlists\n      ffmpeg_ice_url: https://twitch.tv/monstercat\n      ffmpeg_ice_genre: Various\n      ffmpeg_icecast_out: icecast://source:hackme@localhost:8000/monstercat\n      ffmpeg_av_ice_name: Monstercat Radio\n      ffmpeg_av_ice_description: Monstercat Radio - 24/7 Music Stream - monster.cat/Spotify-Playlists\n      ffmpeg_av_ice_url: https://twitch.tv/monstercat\n      ffmpeg_av_ice_genre: Various\n      ffmpeg_av_icecast_out: icecast://source:hackme@localhost:8000/monstercat_av\n      python_http_port: 8090\n      python_http_root: /dev/shm/hls/monstercat\n    command: [\"bash\", \"-c\", \"source run.sh \u0026\u0026 bash\"]\n  icecast:\n    image: moul/icecast\n    restart: unless-stopped\n    ports:\n      - \"8000:8000/tcp\"\n    environment:\n      ICECAST_SOURCE_PASSWORD: hackme\n      ICECAST_ADMIN_PASSWORD: hackme\n      ICECAST_RELAY_PASSWORD: hackme\nvolumes:\n  #media-srv-monstercat-user:\n```\n**Don't forget to change the icecast passwords, especialy if you intentd to make your stream publicy available!!!**\n\nUn-comment the volumes if you want to make persistant changes to the files in the scripts or functions dirs\n\n# View running process output:\n`docker-compose exec media-srv-monstercat tmux new-session -t 0`\n\n**Don't use tmux attach because it will resize the session and then future split commands may fail**\n\nPress ^B then and type `:kill-session` to quit monitoring the output\n\n# Caveats:\n - Most players expect icecast streams to be audio only, and will fail to detect the codecs for video streams properly. Workarrounds:\n   - pipe output from wget to vlc e.g. `wget http://icecasturl:8000/stream -qO - | vlc -`\n   \n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphillmac%2Fmedia-srv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphillmac%2Fmedia-srv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphillmac%2Fmedia-srv/lists"}