Skip to content

Instantly share code, notes, and snippets.

@hltbra
Created September 27, 2012 20:01
Show Gist options
  • Save hltbra/3796146 to your computer and use it in GitHub Desktop.
Save hltbra/3796146 to your computer and use it in GitHub Desktop.
New input JSON for hlsclient
{
"streams": {
"Nasa-low": {
"input-path": "/msfc/Edge.m3u8",
"output-path": "/nasa/Edge.m3u8",
"servers": ["http://liveips.nasa.gov.edgesuite.net"],
"bandwidth": 254082
},
"Nasa-medium": {
"input-path": "/msfc/3G.m3u8",
"output-path": "/nasa/3G.m3u8",
"servers": ["http://liveips.nasa.gov.edgesuite.net"],
"bandwidth": 460658
},
"Nasa-high": {
"input-path": "/msfc/Wifi.m3u8",
"output-path": "/nasa/Wifi.m3u8",
"servers": ["http://liveips.nasa.gov.edgesuite.net"],
"bandwidth": 1080434
}
},
"actions": [
{
"type": "combine",
"input": ["Nasa-audio-only", "Nasa-very-low", "Nasa-low", "Nasa-medium", "Nasa-high"],
"output": "/nasa/nasa_mbr.m3u8"
},
{
"type": "transcode",
"input": "Nasa-high",
"output": {
"audio": {
"Nasa-audio-only": {
"path": "Nasa-audio-only.m3u8",
"audio-bitrate": 64000
}
},
"video": {
"Nasa-very-low": {
"path": "Nasa-very-low.m3u8",
"audio-bitrate": 640000,
"video-bitrate": 100000
}
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment