Skip to content

Instantly share code, notes, and snippets.

@AdySan
Created June 25, 2017 06:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdySan/39717ddabd853bd9303de0ecb512d8cf to your computer and use it in GitHub Desktop.
Save AdySan/39717ddabd853bd9303de0ecb512d8cf to your computer and use it in GitHub Desktop.
hacked config for supporting aac audio on Restreamer
{
"name": "live",
"jsondb": "db/v1",
"auth": {
"username": "admin",
"password": "datarhei"
},
"ffmpeg": {
"options": {
"native_h264": [
"-codec copy",
"-acodec aac",
"-map_metadata -1",
"-metadata application=datarhei/Restreamer",
"-metadata server=NGINX-RTMP",
"-f flv"
],
"native_h264_soundless_aac": [
"-f lavfi",
"-i aevalsrc=0",
"-vcodec copy",
"-acodec aac",
"-map 0:0",
"-map 1:0",
"-shortest",
"-map_metadata -1",
"-metadata application=datarhei/Restreamer",
"-metadata server=NGINX-RTMP",
"-f flv"
],
"snapshot": "-vframes 1"
},
"monitor": {
"restart_wait": "6000",
"retries": 10
}
},
"nginx": {
"exec": "/usr/local/nginx/sbin/nginx -c /restreamer/conf/nginx.conf",
"streaming": {
"ip": "127.0.0.1",
"rtmp_port": "1935",
"rtmp_hls_path": "/hls/"
}
},
"envVars": [
{
"name": "RS_NODE_PORT",
"alias": "NODEJS_PORT",
"type": "int",
"defaultValue": "3000",
"required": false,
"description": "Webserver port of application"
},
{
"name": "RS_NODE_ENV",
"alias": "NODE_ENV",
"type": "string",
"defaultValue": "prod",
"required": false,
"description": "Nodejs Environment"
},
{
"name": "RS_LOGGER_LEVEL",
"alias": "LOGGER_LEVEL",
"type": "int",
"defaultValue": "3",
"required": true,
"description": "Logger level to defined, what should be logged"
},
{
"name": "RS_TIMEZONE",
"alias": "TIMEZONE",
"type": "string",
"defaultValue": "Europe/Berlin",
"required": true,
"description": "Set the timezone"
},
{
"name": "RS_SNAPSHOT_REFRESH_INTERVAL",
"alias": "SNAPSHOT_REFRESH_INTERVAL",
"type": "string",
"defaultValue": "1m",
"required": false,
"description": "Interval to create a new Snapshot (in minutes)"
},
{
"name": "RS_CREATE_HEAPDUMPS",
"alias": "CREATE_HEAPDUMPS",
"type": "bool",
"defaultValue": "false",
"required": false,
"description": "Create Heapdumps of application"
},
{
"name": "RS_USERNAME",
"alias": "RESTREAMER_USERNAME",
"type": "string",
"defaultValue": "admin",
"required": false,
"description": "Backend user name"
},
{
"name": "RS_PASSWORD",
"alias": "RESTREAMER_PASSWORD",
"type": "string",
"defaultValue": "datarhei",
"required": false,
"description": "Backend login password"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment