mirror of
https://github.com/alfg/ffmpegd.git
synced 2025-09-26 19:41:15 +08:00
45d1584215d90dbd2f6be89905e922e3ba9bfd1a
ffmpegd
An FFmpeg server with a websocket API for FFmpeg Commander.
The goal is to provide a simple interface for sending FFmpeg jobs from the browser (and other supported clients in the future) while reporting realtime progress details.
*Currently a work-in-progress!
How It Works
TODO
Install
$ go get -u github.com/alfg/ffmpegd
Release binaries coming soon.
Usage
- ffmpeg must be installed and available on your
$PATH
. - Run
ffmpegd
:
$ ffmpegd
This wil start the websocket server in your current working directory and wait for a connection.
- Go to https://alfg.github.io/ffmpeg-commander/ in the browser
- Enable
ffmpegd
in Options. - Once connected, you can start sending encode jobs to ffmpegd!
Example
ffmpegd
with a job in progress from ffmpeg-commander
$ ffmpegd
███████╗███████╗███╗ ███╗██████╗ ███████╗ ██████╗ ██████╗
██╔════╝██╔════╝████╗ ████║██╔══██╗██╔════╝██╔════╝ ██╔══██╗
█████╗ █████╗ ██╔████╔██║██████╔╝█████╗ ██║ ███╗██║ ██║
██╔══╝ ██╔══╝ ██║╚██╔╝██║██╔═══╝ ██╔══╝ ██║ ██║██║ ██║
██║ ██║ ██║ ╚═╝ ██║██║ ███████╗╚██████╔╝██████╔╝
╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚══════╝ ╚═════╝ ╚═════╝
v0.0.1
[ffmpegd] - websocket server for ffmpeg-commander.
Server started on port :8080.
Go to https://alfg.github.io/ffmpeg-commander to connect!
Encoding... 6111 / 17620 (34.68%) 3.37x @ 80.77
API
TODO
TODO
- Support all
ffmpeg-comamnder
JSON options. - More CLI flags for server, ports, cwd and daemon mode.
- Logging levels and output
- API documentation
- Docker
License
MIT
Languages
Go
98.4%
Dockerfile
1.6%