Skip to content

Instantly share code, notes, and snippets.

@AndyA
Created December 7, 2012 02:29
Show Gist options
  • Select an option

  • Save AndyA/4230263 to your computer and use it in GitHub Desktop.

Select an option

Save AndyA/4230263 to your computer and use it in GitHub Desktop.
Example Emitron model
{
"config" : {
"paths" : {
"tmp" : "/tmp/emitron"
},
"profiles" : {
"config" : {
"pc" : {
"dog" : "/opt/newstream/art/thespace-dog.png",
"encodes" : [
"p30",
"p40",
"p50",
"p60",
"p70"
]
},
"pc_hd" : {
"dog" : "/opt/newstream/art/thespace-dog.png",
"encodes" : [
"p30",
"p40",
"p50",
"p60",
"p70",
"p80"
]
},
"thumbnail" : {
"encodes" : [
"t10"
]
}
},
"encodes" : {
"p10" : {
"a" : {
"bitrate" : 24000,
"profile" : "aac_he",
"rate" : 22050
},
"v" : {
"bitrate" : 32000,
"height" : 126,
"profile" : "baseline",
"rate" : 5,
"width" : 224
}
},
"p20" : {
"a" : {
"bitrate" : 48000,
"profile" : "aac_lc",
"rate" : 44100
},
"v" : {
"bitrate" : 128000,
"height" : 224,
"level" : 3,
"profile" : "baseline",
"rate" : 12.5,
"width" : 400
}
},
"p30" : {
"a" : {
"bitrate" : 64000,
"profile" : "aac_lc",
"rate" : 44100
},
"v" : {
"bitrate" : 304000,
"height" : 224,
"level" : 3,
"profile" : "baseline",
"rate" : 25,
"width" : 400
}
},
"p40" : {
"a" : {
"bitrate" : 96000,
"profile" : "aac_lc",
"rate" : 44100
},
"v" : {
"bitrate" : 400000,
"height" : 288,
"level" : 3,
"profile" : "main",
"rate" : 25,
"width" : 512
}
},
"p50" : {
"a" : {
"bitrate" : 96000,
"profile" : "aac_lc",
"rate" : 44100
},
"v" : {
"bitrate" : 700000,
"height" : 360,
"level" : 3,
"profile" : "main",
"rate" : 25,
"width" : 640
}
},
"p60" : {
"a" : {
"bitrate" : 96000,
"profile" : "aac_lc",
"rate" : 44100
},
"v" : {
"bitrate" : 1200000,
"height" : 396,
"level" : 3,
"profile" : "main",
"rate" : 25,
"width" : 704
}
},
"p70" : {
"a" : {
"bitrate" : 96000,
"profile" : "aac_lc",
"rate" : 44100
},
"v" : {
"bitrate" : 2016000,
"height" : 576,
"level" : 3.1,
"profile" : "main",
"rate" : 25,
"width" : 1024
}
},
"p80" : {
"a" : {
"bitrate" : 128000,
"profile" : "aac_lc",
"rate" : 44100
},
"v" : {
"bitrate" : 3372000,
"height" : 720,
"level" : 4,
"profile" : "high",
"rate" : 25,
"width" : 1280
}
},
"t10" : {
"a" : {
"bitrate" : 96000,
"profile" : "aac_he",
"rate" : 22050
},
"v" : {
"bitrate" : 200000,
"height" : 126,
"level" : 3,
"profile" : "main",
"rate" : 25,
"width" : 224
}
}
}
},
"uri" : {
"crtmpserver" : "http://localhost:6502",
"home" : "http://thespace.org",
"rtmp_stream" : "rtmp://newstream.fenkle/live/%s",
"rtsp_stream" : "rtsp://newstream.fenkle:5544/%s"
}
},
"fragments" : {
"orac_pc" : {
"p30" : {
"dir" : "/tmp/emitron/job.orac_pc.26940.1354847131.904/p30",
"profile" : {
"a" : {
"bitrate" : 64000,
"profile" : "aac_lc",
"rate" : 44100
},
"v" : {
"bitrate" : 304000,
"height" : "224",
"level" : 3,
"profile" : "baseline",
"rate" : 25,
"width" : "400"
}
},
"segment" : "%08d.ts"
},
"p40" : {
"dir" : "/tmp/emitron/job.orac_pc.26940.1354847131.904/p40",
"profile" : {
"a" : {
"bitrate" : 96000,
"profile" : "aac_lc",
"rate" : 44100
},
"v" : {
"bitrate" : 400000,
"height" : "288",
"level" : 3,
"profile" : "main",
"rate" : 25,
"width" : "512"
}
},
"segment" : "%08d.ts"
},
"p50" : {
"dir" : "/tmp/emitron/job.orac_pc.26940.1354847131.904/p50",
"profile" : {
"a" : {
"bitrate" : 96000,
"profile" : "aac_lc",
"rate" : 44100
},
"v" : {
"bitrate" : 700000,
"height" : "360",
"level" : 3,
"profile" : "main",
"rate" : 25,
"width" : "640"
}
},
"segment" : "%08d.ts"
},
"p60" : {
"dir" : "/tmp/emitron/job.orac_pc.26940.1354847131.904/p60",
"profile" : {
"a" : {
"bitrate" : 96000,
"profile" : "aac_lc",
"rate" : 44100
},
"v" : {
"bitrate" : 1200000,
"height" : "396",
"level" : 3,
"profile" : "main",
"rate" : 25,
"width" : "704"
}
},
"segment" : "%08d.ts"
},
"p70" : {
"dir" : "/tmp/emitron/job.orac_pc.26940.1354847131.904/p70",
"profile" : {
"a" : {
"bitrate" : 96000,
"profile" : "aac_lc",
"rate" : 44100
},
"v" : {
"bitrate" : 2016000,
"height" : "576",
"level" : 3.1,
"profile" : "main",
"rate" : 25,
"width" : "1024"
}
},
"segment" : "%08d.ts"
}
},
"orac_thumbnail" : {
"t10" : {
"dir" : "/tmp/emitron/job.orac_thumbnail.26940.1354847131.890/t10",
"profile" : {
"a" : {
"bitrate" : 96000,
"profile" : "aac_he",
"rate" : 22050
},
"v" : {
"bitrate" : 200000,
"height" : "126",
"level" : 3,
"profile" : "main",
"rate" : 25,
"width" : "224"
}
},
"segment" : "%08d.ts"
}
}
},
"streams" : {
"orac" : {
"INR" : {
"flvplayback" : {
"creationTimestamp" : 1354847127216.72,
"preview" : "rtmp://newstream.fenkle/live/orac",
"rtmp" : "rtmp://newstream.fenkle/live/orac",
"rtsp" : "rtsp://newstream.fenkle:5544/orac"
}
},
"ONP" : {
"flvplayback" : {
"creationTimestamp" : 1354847132009.24,
"preview" : "rtmp://newstream.fenkle/live/orac",
"rtmp" : "rtmp://newstream.fenkle/live/orac",
"rtsp" : "rtsp://newstream.fenkle:5544/orac"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment