https://github.com/magne4000/ffmpeg-http-service
ffmpeg as a service. Send a POST request, get result as a response
https://github.com/magne4000/ffmpeg-http-service
Last synced: 2 months ago
JSON representation
ffmpeg as a service. Send a POST request, get result as a response
- Host: GitHub
- URL: https://github.com/magne4000/ffmpeg-http-service
- Owner: magne4000
- License: mit
- Created: 2022-02-28T09:46:02.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-20T09:35:44.000Z (over 1 year ago)
- Last Synced: 2025-01-12T07:40:25.187Z (4 months ago)
- Language: TypeScript
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ffmpeg-http-service
ffmpeg as a service. Send a POST request, get result as a response## Usage
### HTTP request
```http request
POST http://localhost:3000/
Content-Type: multipart/form-data; boundary=WebAppBoundary
# mandatory: output file extension
ffmpeg-outfileext: ogg
# optional: ffmpeg options as JSON array
ffmpeg-options: [ "-acodec", "libvorbis", "-q:a", "7" ]--WebAppBoundary
Content-Disposition: form-data; name="file"; filename="somefile.flac"< /home/magne4000/somefile.flac
--WebAppBoundary--###
```### curl
```shell
curl -H "ffmpeg-outfileext: ogg"\
-H "ffmpeg-options: [ \"-acodec\", \"libvorbis\", \"-q:a\", \"7\" ]"\
--form file="@/home/magne4000/somefile.flac"\
"http://localhost:3000"\
-O -J
```Available as a docker image: `magne4000/ffmpeg-http-service`