Sign inSign up

lucatnt/streamtranscoderv3

By lucatnt

Updated over 5 years ago

StreamTranscoderV3 image, with support for reencoding streams to MP3 and Ogg Vorbis.

Image
0

385

lucatnt/streamtranscoderv3 repository overview

This generates a Docker image for the venerable streamTranscoderV3 (which is so old its original website, oddsock.org, is offline).

streamTranscoderV3 connects to an Icecast (or Shoutcast) server and transcodes the stream to MP3 or OGG, then broadcasts the converted stream to an Icecast (or Shoutcast) server. The source and destination servers can be the same one, which is the most common use case.

Usage

The resulting Docker image needs to be configured through environment variables, the first four are required.

Example run command
docker run -td -e SOURCE_URL=http://172.17.0.2:8000/mp3 -e SERVER=172.17.0.2 -e SERVER_PASSWORD=pass -e SERVER_MOUNTPOINT=/restream lucatnt/streamtranscoderv3
Configuration environment variables
VariableRequiredDefaultDescription
SOURCE_URLYesThe source stream's URL. Icecast streams have a mount point (e.g. http://server:port/mountpoint), Shoutcast ones do not (e.g. http://server:port)
SERVERYesThe server the transcoded stream will be sent to
SERVER_PASSWORDYesThe password of the server the transcoded stream will be sent to
SERVER_MOUNTPOINTYesThe mountpoint on the server the transcoded stream will be sent to
SERVER_TYPENoIcecast2Either Icecast2 or Shoutcast. It's the type of the server the stream will be sent to
PORTNo8000The port of the server the transcoded stream will be sent to
SERVER_STREAM_URLNoMetadata, the URL field of the transcoded stream (can be anything, not related to the actual stream URL)
SERVER_NAMENoMetadata, the name of the transcoded stream
SERVER_DESCRIPTIONNoMetadata, the description of the transcoded stream
SERVER_GENRENoMetadata, the genre of the transcoded stream
ENCODENoMP3The format to encode to. Can be MP3 or OggVorbis
BITRATE_NOMINALNo128The nominal bitrate of the encoded stream (in kbps)
BITRATE_MINNo$BITRATE_NOMINALThe minimum bitrate for the transcoded stream (ABR Mode)
BITRATE_MAXNo$BITRATE_NOMINALThe maximum bitrate for the transcoded stream (ABR Mode)
NUMBER_CHANNELSNo21 = Mono, 2 = Stereo
SAMPLE_RATENo44100The sample rate of the encoded stream
LOG_LEVELNo2Log Level: 1 = LOG_ERROR, 2 = LOG_ERROR+LOG_INFO, 3 = LOG_ERROR+LOG_INFO+LOG_DEBUG

Tag summary

Content type

Image

Digest

Size

27.4 MB

Last updated

over 5 years ago

docker pull lucatnt/streamtranscoderv3