{"id":43738889,"url":"https://github.com/psyb0t/docker-mediaproc","last_synced_at":"2026-02-17T15:01:01.061Z","repository":{"id":336611216,"uuid":"1150291964","full_name":"psyb0t/docker-mediaproc","owner":"psyb0t","description":"Containerized media processing tools over SSH. Drop files in, run ffmpeg/sox/imagemagick over SSH, get your shit out. No shell access, no bullshit - just a locked-down Python wrapper that only lets you run what you're supposed to run.","archived":false,"fork":false,"pushed_at":"2026-02-12T22:41:54.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-12T22:54:14.249Z","etag":null,"topics":["audio-processing","cli-tool","containerized","devops","docker","ffmpeg","fonts","frei0r","image-processing","imagemagick","ladspa","locked-down","media-processing","python-wrapper","remote-execution","secure-shell","sox","ssh","sshd","video-processing"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/psyb0t.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-05T05:23:40.000Z","updated_at":"2026-02-12T22:41:04.000Z","dependencies_parsed_at":"2026-02-17T15:00:56.220Z","dependency_job_id":null,"html_url":"https://github.com/psyb0t/docker-mediaproc","commit_stats":null,"previous_names":["psyb0t/docker-mediaproc"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/psyb0t/docker-mediaproc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psyb0t%2Fdocker-mediaproc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psyb0t%2Fdocker-mediaproc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psyb0t%2Fdocker-mediaproc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psyb0t%2Fdocker-mediaproc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/psyb0t","download_url":"https://codeload.github.com/psyb0t/docker-mediaproc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psyb0t%2Fdocker-mediaproc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29548201,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T14:33:00.708Z","status":"ssl_error","status_checked_at":"2026-02-17T14:32:58.657Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["audio-processing","cli-tool","containerized","devops","docker","ffmpeg","fonts","frei0r","image-processing","imagemagick","ladspa","locked-down","media-processing","python-wrapper","remote-execution","secure-shell","sox","ssh","sshd","video-processing"],"created_at":"2026-02-05T11:11:00.389Z","updated_at":"2026-02-17T15:01:01.054Z","avatar_url":"https://github.com/psyb0t.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-mediaproc\n\n[![Docker Hub](https://img.shields.io/docker/v/psyb0t/mediaproc?sort=semver\u0026label=Docker%20Hub)](https://hub.docker.com/r/psyb0t/mediaproc)\n\nContainerized media processing tools over SSH. Drop files in, run ffmpeg/sox/imagemagick over SSH, get your shit out.\n\nBuilt on top of [psyb0t/lockbox](https://github.com/psyb0t/docker-lockbox) - see that repo for the security model, file operations, path sandboxing, and all the SSH lockdown details.\n\n## Features\n\n- **FFmpeg 7.1** with frei0r, LADSPA, and LV2 plugins - video effects, audio effects, all the good shit\n- **Sox** - audio processing swiss army knife\n- **ImageMagick** - image manipulation, conversion, thumbnails, whatever\n- **2200+ fonts** - emoji, CJK, Arabic, Thai, Indic, monospace, you fuckin' name it\n\n## Quick Start\n\n### install.sh (Recommended)\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/psyb0t/docker-mediaproc/main/install.sh | sudo bash\n```\n\nThis sets up `~/.mediaproc/` with the docker-compose file, authorized_keys, and work directory, then drops a `mediaproc` command into `/usr/local/bin`. Uses your UID/GID so you don't end up with shit permissions on files like some fuckin' animal.\n\nAdd your SSH key and start it:\n\n```bash\ncat ~/.ssh/id_rsa.pub \u003e\u003e ~/.mediaproc/authorized_keys\nmediaproc start -d\nssh -p 2222 mediaproc@localhost \"ffmpeg -version\"\n```\n\n```bash\nmediaproc start              # foreground\nmediaproc start -d           # detached\nmediaproc start -d -p 22    # custom port (default 2222)\nmediaproc start -d -c 4     # limit to 4 CPUs\nmediaproc start -d -r 4g    # limit to 4GB RAM\nmediaproc start -d -s 2g    # limit swap to 2GB\nmediaproc start -d -f /path/to/fonts  # custom fonts directory\nmediaproc stop               # stop\nmediaproc upgrade            # pull latest image, asks to stop/restart if running\nmediaproc uninstall          # stop and remove everything\nmediaproc status             # show status\nmediaproc logs               # show logs\n```\n\n### docker run\n\nIf you just wanna run it raw without the install script:\n\n```bash\ndocker pull psyb0t/mediaproc\n\ncat ~/.ssh/id_rsa.pub \u003e authorized_keys\nmkdir -p work host_keys\n\ndocker run -d \\\n  --name mediaproc \\\n  --restart unless-stopped \\\n  -p 2222:22 \\\n  -e \"LOCKBOX_UID=$(id -u)\" \\\n  -e \"LOCKBOX_GID=$(id -g)\" \\\n  -v $(pwd)/authorized_keys:/etc/lockbox/authorized_keys:ro \\\n  -v $(pwd)/host_keys:/etc/lockbox/host_keys \\\n  -v $(pwd)/work:/work \\\n  psyb0t/mediaproc\n\nssh -p 2222 mediaproc@localhost \"ffmpeg -version\"\n```\n\n## Allowed Commands\n\nThat's it. That's the list. Everything else gets a nice \"not allowed\" message.\n\n| Command    | Description                                  |\n| ---------- | -------------------------------------------- |\n| `ffmpeg`   | Video/audio encoding, transcoding, filtering |\n| `ffprobe`  | Media file analysis                          |\n| `sox`      | Audio processing                             |\n| `soxi`     | Audio file info                              |\n| `convert`  | Image conversion/manipulation                |\n| `identify` | Image file info                              |\n| `magick`   | ImageMagick CLI                              |\n\n### File Operations\n\nAll file paths are relative to `/work`. Traversal attempts get blocked, absolute paths get remapped under `/work`.\n\n| Command                | Description                                       |\n| ---------------------- | ------------------------------------------------- |\n| `put`                  | Upload file from stdin                            |\n| `get`                  | Download file to stdout                           |\n| `list-files`           | List directory (plain names, `--json` for detailed) |\n| `remove-file`          | Delete a file                                     |\n| `create-dir`           | Create directory (recursive)                      |\n| `remove-dir`           | Remove empty directory                            |\n| `remove-dir-recursive` | Remove directory and everything in it recursively |\n| `move-file`            | Rename or move a file                             |\n| `copy-file`            | Copy a file                                       |\n| `file-info`            | Get file metadata as JSON                         |\n| `file-exists`          | Check if file exists (exits 0 or 1)               |\n| `file-hash`            | Get SHA256 hash of a file                         |\n| `disk-usage`           | Get bytes used in path or all of `/work`          |\n| `search-files`         | Search for files matching a glob pattern          |\n| `append-file`          | Append stdin to a file                            |\n\n## Usage Examples\n\n```bash\n# Upload a file, process it, download the result\nssh mediaproc@host \"put input.mp4\" \u003c input.mp4\nssh mediaproc@host \"ffmpeg -i /work/input.mp4 -c:v libx264 /work/output.mp4\"\nssh mediaproc@host \"get output.mp4\" \u003e output.mp4\n\n# Get video info as JSON\nssh mediaproc@host \"ffprobe -v quiet -print_format json -show_format /work/video.mp4\"\n\n# Apply frei0r glow effect\nssh mediaproc@host \"ffmpeg -i /work/in.mp4 -vf frei0r=glow:0.5 /work/out.mp4\"\n\n# Convert audio format\nssh mediaproc@host \"sox /work/input.wav /work/output.mp3\"\n\n# Resize image\nssh mediaproc@host \"convert /work/input.png -resize 50% /work/output.png\"\n\n# Create thumbnail\nssh mediaproc@host \"convert /work/input.jpg -thumbnail 200x200 /work/thumb.jpg\"\n\n# List files\nssh mediaproc@host \"list-files\"\nssh mediaproc@host \"list-files --json\"\n\n# Manage files\nssh mediaproc@host \"create-dir project1\"\nssh mediaproc@host \"move-file old.mp4 new.mp4\"\nssh mediaproc@host \"remove-file output.mp4\"\nssh mediaproc@host \"remove-dir-recursive project1\"\n```\n\n## Fonts\n\nOver 2200 fonts covering pretty much every script and use case:\n\n- **Core**: DejaVu, Liberation, Ubuntu, Roboto, Open Sans\n- **Emoji \u0026 CJK**: Noto Color Emoji, Noto Sans CJK (Chinese, Japanese, Korean)\n- **Monospace**: Fira Code, Hack, Inconsolata\n- **International**: Arabic, Thai, Khmer, Lao, Tibetan, Indic scripts\n\nNeed more? Mount your custom fonts to `/usr/share/fonts/custom` and the container will pick them up on startup. Font cache gets rebuilt automatically.\n\n## SSH Client Config\n\nStop typing port numbers like it's 1995. Add this kinda shit to `~/.ssh/config`:\n\n```\nHost mediaproc\n    HostName localhost\n    Port 2222\n    User mediaproc\n```\n\nThen just: `ssh mediaproc \"ffmpeg -version\"`\n\n## Building\n\n```bash\nmake build       # build Docker image\nmake test        # build + run integration tests\nmake installer   # generate install.sh from installer.yaml\n```\n\n## License\n\nThis project is licensed under [WTFPL](LICENSE) - Do What The Fuck You Want To Public License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsyb0t%2Fdocker-mediaproc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsyb0t%2Fdocker-mediaproc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsyb0t%2Fdocker-mediaproc/lists"}