{"id":17105595,"url":"https://github.com/claabs/ffmpeg-watch-encode","last_synced_at":"2025-09-13T06:47:35.936Z","repository":{"id":114623397,"uuid":"183817194","full_name":"claabs/ffmpeg-watch-encode","owner":"claabs","description":"Docker container to watch a directory and encode a video file with a quality factor.","archived":false,"fork":false,"pushed_at":"2021-06-11T16:34:17.000Z","size":3,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-09T04:39:49.749Z","etag":null,"topics":["docker","ffmpeg","media-encoder","mkv","x265"],"latest_commit_sha":null,"homepage":"","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/claabs.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,"zenodo":null}},"created_at":"2019-04-27T20:09:42.000Z","updated_at":"2024-05-29T18:02:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"cadde9a9-afb9-46e5-af72-b6637a74593b","html_url":"https://github.com/claabs/ffmpeg-watch-encode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/claabs/ffmpeg-watch-encode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/claabs%2Fffmpeg-watch-encode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/claabs%2Fffmpeg-watch-encode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/claabs%2Fffmpeg-watch-encode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/claabs%2Fffmpeg-watch-encode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/claabs","download_url":"https://codeload.github.com/claabs/ffmpeg-watch-encode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/claabs%2Fffmpeg-watch-encode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274930302,"owners_count":25375712,"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-13T02:00:10.085Z","response_time":70,"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":["docker","ffmpeg","media-encoder","mkv","x265"],"created_at":"2024-10-14T15:42:29.235Z","updated_at":"2025-09-13T06:47:35.929Z","avatar_url":"https://github.com/claabs.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ffmpeg-watch-encode\n\nA Docker container designed to watch a directory and encode a `.mkv` file at a desired CRF (Constant Rate Factor).\nThe purpose of this is to reduce the file size of 4K HDR `.mkv`'s by reducing the overall quality, but preserving all audio and subtitle streams.\n\nDesigned to be deployed to Unraid.\n\n### Build and tag the image\n```sh\ndocker build . -t ffmpeg\n```\n\n### Run the container with mounted volumes\n```sh\n# Run from cloned repository\ndocker run -v `pwd`/watch:/watch -v `pwd`/output:/output -v `pwd`/copy:/copy -v `pwd`/logs:/logs ffmpeg\n\n# Run from Docker Hun\ndocker run -v `pwd`/watch:/watch -v `pwd`/output:/output -v `pwd`/copy:/copy -v `pwd`/logs:/logs charlocharlie/ffmpeg-watch-encode\n```\n\n### Stopping the container\nFor some reason you can't CTRL-C out of the above command, so to stop the container, open another terminal and do:\n```sh\ndocker container ls\n# Copy the container ID for the ffmpeg-watch-encode container\ndocker container stop \u003ccontainer ID\u003e\n```\n\n## Options\nYou can configure some encoding options with environment variables:\n\n| Variable Name | Default | Description                                                                                                        |\n|---------------|---------|--------------------------------------------------------------------------------------------------------------------|\n| ENCODER       | libx265 | Pick the encoder to use. The below options may behave differently when not using the libx265 encoder.              |\n| CRF           | 28      | A quality factor for the encode from 0.0-58.0. Lower numbers are better quality and higher file size.              |\n| PRESET        | medium  | x265 encoder preset. Set as low as you're willing to wait. See https://x265.readthedocs.io/en/default/presets.html |\n| TUNE          | (none)  | x265 encoder tuning. See https://x265.readthedocs.io/en/default/presets.html#tuning                                |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclaabs%2Fffmpeg-watch-encode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclaabs%2Fffmpeg-watch-encode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclaabs%2Fffmpeg-watch-encode/lists"}