Skip to content
프로젝트

소개

FFmpeg websocket server and API for FFmpeg Commander.

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

ffmpegd

FFmpeg websocket server and API for FFmpeg Commander.

Go Reference Go Report Card

Go Docker Image Push goreleaser

How It Works

ffmpegd connects FFmpeg Commander to ffmpeg by providing a websocket server to send encode tasks and receive realtime progress updates back to the browser. This allows using ffmpeg-commander as a GUI for ffmpeg.

The goal is to provide a simple interface for sending FFmpeg tasks from the browser (and other supported clients in the future) to your local machine.

See Usage for more details.

Versions

ffmpegd and ffmpeg-commander share version numbers: releases with the same major.minor version (2.1.x with 2.1.x) speak the same payload format. Update ffmpegd when ffmpeg-commander moves to a new minor version.

          process              websocket
[ffmpeg] <-------> [ffmpegd] <-----------> [ffmpeg-commander]

Install

Homebrew

Installs ffmpegd along with ffmpeg:

$ brew install alfg/tap/ffmpegd

Go

Requires Go 1.26 or newer:

$ go install github.com/alfg/ffmpegd@latest

Download

Release binaries for your platform at: https://github.com/alfg/ffmpegd/releases

Docker

A Docker image with an alfg/ffmpeg build installed is available on the GitHub Container Registry:

$ docker run -it -p 127.0.0.1:8080:8080 -v /tmp/:/home ghcr.io/alfg/ffmpegd

Or using the Docker Compose example:

$ docker compose up ffmpegd

Usage

  • ffmpeg must be installed and available on your $PATH.
  • Run ffmpegd:
$ ffmpegd

This will start the websocket server in your current working directory and wait for a connection. Input and output paths are relative to this directory.

Options

$ ffmpegd help

Usage:
  ffmpegd [--host address] [port]   Run server on localhost:8080 by default.
  ffmpegd version                   Print version.
  ffmpegd help                      This help text.

Options:
  --host address   Address to listen on. Use 0.0.0.0 to let other machines on
                   your network connect. Can also be set with $FFMPEGD_HOST.

By default ffmpegd only accepts connections from your own machine. Only listen on other addresses on a network you trust: anyone who can reach ffmpegd can run encodes and list files in its directory.

Example

ffmpegd with a job in progress from ffmpeg-commander

$ ffmpegd

███████╗███████╗███╗   ███╗██████╗ ███████╗ ██████╗ ██████╗
██╔════╝██╔════╝████╗ ████║██╔══██╗██╔════╝██╔════╝ ██╔══██╗
█████╗  █████╗  ██╔████╔██║██████╔╝█████╗  ██║  ███╗██║  ██║
██╔══╝  ██╔══╝  ██║╚██╔╝██║██╔═══╝ ██╔══╝  ██║   ██║██║  ██║
██║     ██║     ██║ ╚═╝ ██║██║     ███████╗╚██████╔╝██████╔╝
╚═╝     ╚═╝     ╚═╝     ╚═╝╚═╝     ╚══════╝ ╚═════╝ ╚═════╝
                                                      v2.1.0

[ffmpegd] - websocket server for ffmpeg-commander.

  Checking FFmpeg version....9.0.1
  Checking FFprobe version...9.0.1

  Server started on http://localhost:8080.
  - Go to https://ffmpeg-commander.com to connect!
  - ffmpegd must be enabled in ffmpeg-commander options.

Encoding tears-of-steel.mp4 -> tears-of-steel-720p.mp4
Encoding... 34.68% 3.37x @ 80.77 fps

ffmpeg-commander

WebSocket Demo

See demo for a websocket client example.

Develop

Requires Go 1.26 or newer and ffmpeg/ffprobe on your $PATH.

go build -v
./ffmpegd

Tests

go test ./...

TODO

  • Logging levels and output

License

MIT

관련 프로젝트 살펴보기

불러오는 중…