{"id":19020616,"url":"https://github.com/simeononsecurity/docker-ffmpeg-mp4-folder","last_synced_at":"2025-04-23T06:00:13.658Z","repository":{"id":222519521,"uuid":"757517444","full_name":"simeononsecurity/docker-ffmpeg-mp4-folder","owner":"simeononsecurity","description":"Stream From a Folder of MP4 Files to Twitch, YouTube, and/or Kick","archived":false,"fork":false,"pushed_at":"2024-07-26T22:56:28.000Z","size":36,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-23T06:00:06.755Z","etag":null,"topics":["docker","docker-container","docker-image","dockerfile","ffmpeg","ffmpeg-script","ffmpeg-wrapper","kick","linux","mp4","mpeg","twitch","twitchtv","ubuntu","youtube"],"latest_commit_sha":null,"homepage":"https://simeononsecurity.com","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simeononsecurity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":["simeononsecurity"],"custom":["https://simeononsecurity.com","https://simeononsecurity.com/recommendhome","https://simeononsecurity.com/affiliate","https://twitter.com/simeonsecurity","https://discord.io/cybersentinels"]}},"created_at":"2024-02-14T16:50:08.000Z","updated_at":"2025-04-08T21:25:48.000Z","dependencies_parsed_at":"2025-04-17T08:56:01.015Z","dependency_job_id":"c5ec5d0f-1573-4d4b-ab75-8a4d50ad3d28","html_url":"https://github.com/simeononsecurity/docker-ffmpeg-mp4-folder","commit_stats":null,"previous_names":["simeononsecurity/docker-ffmpeg-mp4-folder"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simeononsecurity%2Fdocker-ffmpeg-mp4-folder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simeononsecurity%2Fdocker-ffmpeg-mp4-folder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simeononsecurity%2Fdocker-ffmpeg-mp4-folder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simeononsecurity%2Fdocker-ffmpeg-mp4-folder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simeononsecurity","download_url":"https://codeload.github.com/simeononsecurity/docker-ffmpeg-mp4-folder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250379787,"owners_count":21420841,"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":["docker","docker-container","docker-image","dockerfile","ffmpeg","ffmpeg-script","ffmpeg-wrapper","kick","linux","mp4","mpeg","twitch","twitchtv","ubuntu","youtube"],"created_at":"2024-11-08T20:17:48.499Z","updated_at":"2025-04-23T06:00:13.601Z","avatar_url":"https://github.com/simeononsecurity.png","language":"Shell","funding_links":["https://github.com/sponsors/simeononsecurity","https://simeononsecurity.com","https://simeononsecurity.com/recommendhome","https://simeononsecurity.com/affiliate","https://twitter.com/simeonsecurity","https://discord.io/cybersentinels"],"categories":[],"sub_categories":[],"readme":"# MP4 Streamer for Twitch, YouTube, and Kick\n\n[![Sponsor](https://img.shields.io/badge/Sponsor-Click%20Here-ff69b4)](https://github.com/sponsors/simeononsecurity) \n\nThis Docker container allows you to stream MP4 and MKV files directly to Twitch.tv, YouTube, and Kick (or a similar platform) using `ffmpeg`. It supports streaming the files in the specified directory once or looping indefinitely.\n\n## Usage\n\n1. **Build the Docker image:**\n\n    ```bash\n    docker build -t mp4-streamer .\n    ```\n\n2. **Run the Docker container with looping:**\n\n    To stream your MP4 files in a continuous loop, you can set the `LOOP_INDEFINITELY` environment variable to `true`. \n\n    ```bash\n    docker run -td --restart unless-stopped -v /path/to/mp4/files:/videos -e TWITCH_STREAM_KEY=\u003cyour_twitch_stream_key\u003e -e YOUTUBE_STREAM_KEY=\u003cyour_youtube_stream_key\u003e -e KICK_STREAM_URL=\u003cyour_kick_stream_url\u003e -e KICK_STREAM_KEY=\u003cyour_kick_stream_key\u003e -e VIDEO_DIR=/videos -e LOOP_INDEFINITELY=true mp4-streamer\n    ```\n\n    For a single run through your MP4 files without looping, omit the `LOOP_INDEFINITELY` variable or set it to `false`.\n\n    ```bash\n    docker run -td --restart unless-stopped -v /path/to/mp4/files:/videos -e TWITCH_STREAM_KEY=\u003cyour_twitch_stream_key\u003e -e YOUTUBE_STREAM_KEY=\u003cyour_youtube_stream_key\u003e -e KICK_STREAM_URL=\u003cyour_kick_stream_url\u003e -e KICK_STREAM_KEY=\u003cyour_kick_stream_key\u003e -e VIDEO_DIR=/videos mp4-streamer\n    ```\n\n    Replace `/path/to/mp4/files` with the directory path containing your MP4 files, `\u003cyour_twitch_stream_key\u003e`, `\u003cyour_youtube_stream_key\u003e`, `\u003cyour_kick_stream_url\u003e`, and `\u003cyour_kick_stream_key\u003e` with your respective streaming credentials.\n\n3. **Streaming Options:**\n\n    - **MP4 Files:** Mount your directory containing MP4 files to `/videos` in the container.\n    - **Twitch Stream Key:** Set your Twitch stream key as an environment variable `TWITCH_STREAM_KEY`.\n    - **YouTube Stream Key:** Set your YouTube stream key as an environment variable `YOUTUBE_STREAM_KEY`.\n    - **Kick Stream URL and Key:** Set your Kick stream URL and key as environment variables `KICK_STREAM_URL` and `KICK_STREAM_KEY`, respectively.\n    - **Loop Indefinitely:** Optionally, set `LOOP_INDEFINITELY=true` to loop through the video files indefinitely. Default behavior is a single run without looping.\n\n## Dockerfile Details\n\n- Based on Ubuntu latest image.\n- Installs `ffmpeg` and other necessary dependencies for streaming.\n- Utilizes a custom script `stream_videos.sh` as the entrypoint to facilitate streaming to Twitch, YouTube, and Kick using `ffmpeg`. This script supports looping through the MP4 files indefinitely or streaming them once based on the `LOOP_INDEFINITELY` environment variable.\n\n## License\n\nThis Dockerfile and the accompanying scripts are licensed under the [MIT License](LICENSE).\n\n## Website\n- For more information and updates, visit [simeononsecurity.com](https://simeononsecurity.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimeononsecurity%2Fdocker-ffmpeg-mp4-folder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimeononsecurity%2Fdocker-ffmpeg-mp4-folder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimeononsecurity%2Fdocker-ffmpeg-mp4-folder/lists"}