An open API service indexing awesome lists of open source software.

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

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`