reMP3

command module
v0.0.0-...-7727031 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2019 License: GPL-3.0 Imports: 15 Imported by: 0

README

reMP3

Building

docker build -t larrabee/remp3 .

Usage

Resize MP3 with POST request:
>> curl -X POST 'http://127.0.0.1:7090?bitrate=48000&samplerate=44100' --data-binary "@/tmp/file.mp3" -o /tmp/resized.mp3

Accepted args:

  • bitrate: output file bitrate, int, required.
  • samplerate: output file sample rate, int, required.
  • duration: crop output file to first N seconds, int (seconds), optional, 0 by default.
Resize MP3 with GET request:
>> curl 'http://127.0.0.1:7090/backingtracks/tracks/6/62d077bdd8e354c07aaf7a46c79123b205660eac.mp3?bitrate=48000&samplerate=44100' -H 'x-resize-base: ustatik.com'

Accepted args:

  • bitrate: output file bitrate, int, required.
  • samplerate: output file sample rate, int, required.
  • duration: crop output file to first N seconds, int (seconds), optional, 0 by default.

Accepted headers:

  • x-resize-base: host with source file.
  • x-resize-scheme: source server schema, possible values: "http", "https". Default: "https".

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL