enigma2  2.6
Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
Components.StreamServerControl.StreamServerControl Class Reference
Inheritance diagram for Components.StreamServerControl.StreamServerControl:

Public Member Functions

def __init__ (self)
 
def setupConfig (self)
 
def loadConfig (self)
 
def start (self)
 
def setEncoderService (self, service)
 
def getEncoderService (self)
 
def isAnyEnabled (self)
 
def stopEncoderService (self)
 
def enableRTSP (self, enabled, path, port, user, password)
 
def enableHLS (self, enabled, path, port, user, password)
 
def isEnabled (self)
 
def getInputMode (self)
 
def setInputMode (self, mode)
 
def getAudioBitrate (self)
 
def setAudioBitrate (self, bitrate)
 
def getVideoBitrate (self)
 
def setVideoBitrate (self, bitrate)
 
def getAutoBitrate (self)
 
def setAutoBitrate (self, auto)
 
def getGopLength (self)
 
def setGopLength (self, length)
 
def getGopOnSceneChange (self)
 
def setGopOnSceneChange (self, enabled)
 
def getOpenGop (self)
 
def setOpenGop (self, enabled)
 
def getBFrames (self)
 
def setBFrames (self, bFrames)
 
def getPFrames (self)
 
def setPFrames (self, pFrames)
 
def getSlices (self)
 
def setSlices (self, slices)
 
def getLevel (self)
 
def setLevel (self, level)
 
def getProfile (self)
 
def setProfile (self, profile)
 
def getFramerate (self)
 
def setFramerate (self, rate)
 
def getResolution (self)
 
def setResolution (self, res)
 
def setUpstream (self, state, host, port, token)
 
def getUpstreamState (self)
 
def getSourceState (self)
 
def getRtspClientcount (self)
 
def zapNext (self)
 
def zapPrev (self)
 

Public Attributes

 onAvailabilityChanged
 
 onSourceStateChanged
 
 onUpstreamStateChanged
 
 onUpstreamBitrateChanged
 
 onRtspClientCountChanged
 
 onUriParametersChanged
 
 config
 

Static Public Attributes

 FEATURE_SCENE_DETECTION = HardwareInfo().get_device_name() in ["dm900", "dm920"]
 
 FEATURE_SLICES = HardwareInfo().get_device_name() in ["dm900", "dm920"]
 
string FRAME_RATE_25 = "25"
 
string FRAME_RATE_30 = "30"
 
string FRAME_RATE_50 = "50"
 
string FRAME_RATE_60 = "60"
 
string FRAME_RATE_23_976 = "23.976"
 
string FRAME_RATE_24 = "24"
 
string FRAME_RATE_29_97 = "29.97"
 
string FRAME_RATE_59_94 = "59.94"
 
list FRAME_RATES
 
dictionary FRAME_RATE_LUT
 
dictionary FRAME_RATE_LUT_REVERSE = {v: k for k, v in six.iteritems(FRAME_RATE_LUT)}
 
list LEVELS
 
list PROFILES
 
tuple RES_1080 = (1920, 1080)
 
tuple RES_720 = (1280, 720)
 
tuple RES_PAL = (720, 576)
 
string RES_KEY_1080P = "1080p"
 
string RES_KEY_720P = "720p"
 
string RES_KEY_PAL = "576p"
 
dictionary RESOLUTIONS
 
dictionary RESOLUTION_KEY
 
list AUDIO_BITRATE_LIMITS = [32, 448]
 
list VIDEO_BITRATE_LIMITS = [256, 20000]
 
list PORT_LIMITS = [1, 65535]
 
dictionary INPUT_MODES
 
int ENCODER_TARGET = 2
 
int RTSP_STATE_DISABLED = 0
 
int RTSP_STATE_IDLE = 1
 
int RTSP_STATE_RUNNING = 2
 
 UPSTREAM_STATE_DISABLED = eStreamServer.UPSTREAM_STATE_DISABLED
 
 UPSTREAM_STATE_CONNECTING = eStreamServer.UPSTREAM_STATE_CONNECTING
 
 UPSTREAM_STATE_WAITING = eStreamServer.UPSTREAM_STATE_WAITING
 
 UPSTREAM_STATE_TRANSMITTING = eStreamServer.UPSTREAM_STATE_TRANSMITTING
 
 UPSTREAM_STATE_OVERLOAD = eStreamServer.UPSTREAM_STATE_OVERLOAD
 
 UPSTREAM_STATE_ADJUSTING = eStreamServer.UPSTREAM_STATE_ADJUSTING
 
dictionary READABLE_UPSTREAM_STATE
 
string URI_PARAM_REF = "ref"
 
string URI_PARAM_VIDEO_BITRATE = "video_bitrate"
 
string URI_PARAM_AUDIO_BITRATE = "audio_bitrate"
 
int ENCODER_SERVICE_SET = 0
 
int ENCODER_SERVICE_ALREADY_ACTIVE = 1
 
int ENCODER_SERVICE_INVALID_MODE = -1
 
int ENCODER_SERVICE_INVALID = -2
 
int ENCODER_SERVICE_INSUFFICIENT_RESOURCES = -3
 

Properties

 encoderService = property(getEncoderService, setEncoderService)
 
 enabled = property(isEnabled)
 
 inputMode = property(getInputMode, setInputMode)
 
 audioBitrate = property(getAudioBitrate, setAudioBitrate)
 
 videoBitrate = property(getVideoBitrate, setVideoBitrate)
 
 autoBitrate = property(getAutoBitrate, setAutoBitrate)
 
 gopLength = property(getGopLength, setGopLength)
 
 gopOnSceneChange = property(getGopOnSceneChange, setGopOnSceneChange)
 
 openGop = property(getOpenGop, setOpenGop)
 
 bFrames = property(getBFrames, setBFrames)
 
 pFrames = property(getPFrames, setPFrames)
 
 slices = property(getSlices, setSlices)
 
 level = property(getLevel, setLevel)
 
 profile = property(getProfile, setProfile)
 
 framerate = property(getFramerate, setFramerate)
 
 resolution = property(getResolution, setResolution)
 
 upstreamState = property(getUpstreamState)
 
 sourceState = property(getSourceState)
 
 rtspClientCount = property(getRtspClientcount)
 

Constructor & Destructor Documentation

◆ __init__()

def Components.StreamServerControl.StreamServerControl.__init__ (   self)

Member Function Documentation

◆ enableHLS()

def Components.StreamServerControl.StreamServerControl.enableHLS (   self,
  enabled,
  path,
  port,
  user,
  password 
)

◆ enableRTSP()

def Components.StreamServerControl.StreamServerControl.enableRTSP (   self,
  enabled,
  path,
  port,
  user,
  password 
)

◆ getAudioBitrate()

def Components.StreamServerControl.StreamServerControl.getAudioBitrate (   self)

◆ getAutoBitrate()

def Components.StreamServerControl.StreamServerControl.getAutoBitrate (   self)

◆ getBFrames()

def Components.StreamServerControl.StreamServerControl.getBFrames (   self)

◆ getEncoderService()

def Components.StreamServerControl.StreamServerControl.getEncoderService (   self)

◆ getFramerate()

def Components.StreamServerControl.StreamServerControl.getFramerate (   self)

◆ getGopLength()

def Components.StreamServerControl.StreamServerControl.getGopLength (   self)

◆ getGopOnSceneChange()

def Components.StreamServerControl.StreamServerControl.getGopOnSceneChange (   self)

◆ getInputMode()

def Components.StreamServerControl.StreamServerControl.getInputMode (   self)

◆ getLevel()

def Components.StreamServerControl.StreamServerControl.getLevel (   self)

◆ getOpenGop()

def Components.StreamServerControl.StreamServerControl.getOpenGop (   self)

◆ getPFrames()

def Components.StreamServerControl.StreamServerControl.getPFrames (   self)

◆ getProfile()

def Components.StreamServerControl.StreamServerControl.getProfile (   self)

◆ getResolution()

def Components.StreamServerControl.StreamServerControl.getResolution (   self)

◆ getRtspClientcount()

def Components.StreamServerControl.StreamServerControl.getRtspClientcount (   self)

◆ getSlices()

def Components.StreamServerControl.StreamServerControl.getSlices (   self)

◆ getSourceState()

def Components.StreamServerControl.StreamServerControl.getSourceState (   self)

◆ getUpstreamState()

def Components.StreamServerControl.StreamServerControl.getUpstreamState (   self)

◆ getVideoBitrate()

def Components.StreamServerControl.StreamServerControl.getVideoBitrate (   self)

◆ isAnyEnabled()

def Components.StreamServerControl.StreamServerControl.isAnyEnabled (   self)

◆ isEnabled()

def Components.StreamServerControl.StreamServerControl.isEnabled (   self)

◆ loadConfig()

def Components.StreamServerControl.StreamServerControl.loadConfig (   self)

◆ setAudioBitrate()

def Components.StreamServerControl.StreamServerControl.setAudioBitrate (   self,
  bitrate 
)

◆ setAutoBitrate()

def Components.StreamServerControl.StreamServerControl.setAutoBitrate (   self,
  auto 
)

◆ setBFrames()

def Components.StreamServerControl.StreamServerControl.setBFrames (   self,
  bFrames 
)

◆ setEncoderService()

def Components.StreamServerControl.StreamServerControl.setEncoderService (   self,
  service 
)

◆ setFramerate()

def Components.StreamServerControl.StreamServerControl.setFramerate (   self,
  rate 
)

◆ setGopLength()

def Components.StreamServerControl.StreamServerControl.setGopLength (   self,
  length 
)

◆ setGopOnSceneChange()

def Components.StreamServerControl.StreamServerControl.setGopOnSceneChange (   self,
  enabled 
)

◆ setInputMode()

def Components.StreamServerControl.StreamServerControl.setInputMode (   self,
  mode 
)

◆ setLevel()

def Components.StreamServerControl.StreamServerControl.setLevel (   self,
  level 
)

◆ setOpenGop()

def Components.StreamServerControl.StreamServerControl.setOpenGop (   self,
  enabled 
)

◆ setPFrames()

def Components.StreamServerControl.StreamServerControl.setPFrames (   self,
  pFrames 
)

◆ setProfile()

def Components.StreamServerControl.StreamServerControl.setProfile (   self,
  profile 
)

◆ setResolution()

def Components.StreamServerControl.StreamServerControl.setResolution (   self,
  res 
)

◆ setSlices()

def Components.StreamServerControl.StreamServerControl.setSlices (   self,
  slices 
)

◆ setupConfig()

def Components.StreamServerControl.StreamServerControl.setupConfig (   self)

◆ setUpstream()

def Components.StreamServerControl.StreamServerControl.setUpstream (   self,
  state,
  host,
  port,
  token 
)

◆ setVideoBitrate()

def Components.StreamServerControl.StreamServerControl.setVideoBitrate (   self,
  bitrate 
)

◆ start()

def Components.StreamServerControl.StreamServerControl.start (   self)

◆ stopEncoderService()

def Components.StreamServerControl.StreamServerControl.stopEncoderService (   self)

◆ zapNext()

def Components.StreamServerControl.StreamServerControl.zapNext (   self)

◆ zapPrev()

def Components.StreamServerControl.StreamServerControl.zapPrev (   self)

Member Data Documentation

◆ AUDIO_BITRATE_LIMITS

list Components.StreamServerControl.StreamServerControl.AUDIO_BITRATE_LIMITS = [32, 448]
static

◆ config

Components.StreamServerControl.StreamServerControl.config

◆ ENCODER_SERVICE_ALREADY_ACTIVE

int Components.StreamServerControl.StreamServerControl.ENCODER_SERVICE_ALREADY_ACTIVE = 1
static

◆ ENCODER_SERVICE_INSUFFICIENT_RESOURCES

int Components.StreamServerControl.StreamServerControl.ENCODER_SERVICE_INSUFFICIENT_RESOURCES = -3
static

◆ ENCODER_SERVICE_INVALID

int Components.StreamServerControl.StreamServerControl.ENCODER_SERVICE_INVALID = -2
static

◆ ENCODER_SERVICE_INVALID_MODE

int Components.StreamServerControl.StreamServerControl.ENCODER_SERVICE_INVALID_MODE = -1
static

◆ ENCODER_SERVICE_SET

int Components.StreamServerControl.StreamServerControl.ENCODER_SERVICE_SET = 0
static

◆ ENCODER_TARGET

int Components.StreamServerControl.StreamServerControl.ENCODER_TARGET = 2
static

◆ FEATURE_SCENE_DETECTION

Components.StreamServerControl.StreamServerControl.FEATURE_SCENE_DETECTION = HardwareInfo().get_device_name() in ["dm900", "dm920"]
static

◆ FEATURE_SLICES

Components.StreamServerControl.StreamServerControl.FEATURE_SLICES = HardwareInfo().get_device_name() in ["dm900", "dm920"]
static

◆ FRAME_RATE_23_976

string Components.StreamServerControl.StreamServerControl.FRAME_RATE_23_976 = "23.976"
static

◆ FRAME_RATE_24

string Components.StreamServerControl.StreamServerControl.FRAME_RATE_24 = "24"
static

◆ FRAME_RATE_25

string Components.StreamServerControl.StreamServerControl.FRAME_RATE_25 = "25"
static

◆ FRAME_RATE_29_97

string Components.StreamServerControl.StreamServerControl.FRAME_RATE_29_97 = "29.97"
static

◆ FRAME_RATE_30

string Components.StreamServerControl.StreamServerControl.FRAME_RATE_30 = "30"
static

◆ FRAME_RATE_50

string Components.StreamServerControl.StreamServerControl.FRAME_RATE_50 = "50"
static

◆ FRAME_RATE_59_94

string Components.StreamServerControl.StreamServerControl.FRAME_RATE_59_94 = "59.94"
static

◆ FRAME_RATE_60

string Components.StreamServerControl.StreamServerControl.FRAME_RATE_60 = "60"
static

◆ FRAME_RATE_LUT

dictionary Components.StreamServerControl.StreamServerControl.FRAME_RATE_LUT
static
Initial value:
= {
FRAME_RATE_23_976 : "23",
FRAME_RATE_24 : "24",
FRAME_RATE_25 : "25",
FRAME_RATE_29_97 : "29",
FRAME_RATE_30 : "30",
FRAME_RATE_50 : "50",
FRAME_RATE_59_94 : "59",
FRAME_RATE_60 : "60"
}

◆ FRAME_RATE_LUT_REVERSE

dictionary Components.StreamServerControl.StreamServerControl.FRAME_RATE_LUT_REVERSE = {v: k for k, v in six.iteritems(FRAME_RATE_LUT)}
static

◆ FRAME_RATES

list Components.StreamServerControl.StreamServerControl.FRAME_RATES
static
Initial value:
= [
FRAME_RATE_23_976,
FRAME_RATE_24,
FRAME_RATE_25,
FRAME_RATE_29_97,
FRAME_RATE_30,
FRAME_RATE_50,
FRAME_RATE_59_94,
FRAME_RATE_60
]

◆ INPUT_MODES

dictionary Components.StreamServerControl.StreamServerControl.INPUT_MODES
static
Initial value:
= {
str(eStreamServer.INPUT_MODE_LIVE) : _("Follow Live"),
str(eStreamServer.INPUT_MODE_HDMI_IN) : _("HDMI Input"),
str(eStreamServer.INPUT_MODE_BACKGROUND) : _("TV Services")
}

◆ LEVELS

list Components.StreamServerControl.StreamServerControl.LEVELS
static
Initial value:
= [
(str(eStreamServer.LEVEL1_1) , _("1.1")),
(str(eStreamServer.LEVEL1_2) , _("1.2")),
(str(eStreamServer.LEVEL1_3) , _("1.3")),
(str(eStreamServer.LEVEL2_0) , _("2.0")),
(str(eStreamServer.LEVEL2_1) , _("2.1")),
(str(eStreamServer.LEVEL2_2) , _("2.2")),
(str(eStreamServer.LEVEL3_0) , _("3.0")),
(str(eStreamServer.LEVEL3_1) , _("3.1")), #default
(str(eStreamServer.LEVEL3_2) , _("3.2")),
(str(eStreamServer.LEVEL4_0) , _("4.0")),
(str(eStreamServer.LEVEL4_1) , _("4.1")),
(str(eStreamServer.LEVEL4_2) , _("4.2")),
]

◆ onAvailabilityChanged

Components.StreamServerControl.StreamServerControl.onAvailabilityChanged

◆ onRtspClientCountChanged

Components.StreamServerControl.StreamServerControl.onRtspClientCountChanged

◆ onSourceStateChanged

Components.StreamServerControl.StreamServerControl.onSourceStateChanged

◆ onUpstreamBitrateChanged

Components.StreamServerControl.StreamServerControl.onUpstreamBitrateChanged

◆ onUpstreamStateChanged

Components.StreamServerControl.StreamServerControl.onUpstreamStateChanged

◆ onUriParametersChanged

Components.StreamServerControl.StreamServerControl.onUriParametersChanged

◆ PORT_LIMITS

list Components.StreamServerControl.StreamServerControl.PORT_LIMITS = [1, 65535]
static

◆ PROFILES

list Components.StreamServerControl.StreamServerControl.PROFILES
static
Initial value:
= [
(str(eStreamServer.PROFILE_MAIN) , _("main")),
(str(eStreamServer.PROFILE_HIGH) , _("high")),
]

◆ READABLE_UPSTREAM_STATE

dictionary Components.StreamServerControl.StreamServerControl.READABLE_UPSTREAM_STATE
static
Initial value:
= {
UPSTREAM_STATE_DISABLED : _("Disabled"),
UPSTREAM_STATE_CONNECTING : _("Connecting"),
UPSTREAM_STATE_WAITING : _("Waiting for clients"),
UPSTREAM_STATE_TRANSMITTING : _("Transmitting"),
UPSTREAM_STATE_OVERLOAD : _("Overload"),
UPSTREAM_STATE_ADJUSTING : _("Adjusting Bitrate")
}

◆ RES_1080

tuple Components.StreamServerControl.StreamServerControl.RES_1080 = (1920, 1080)
static

◆ RES_720

tuple Components.StreamServerControl.StreamServerControl.RES_720 = (1280, 720)
static

◆ RES_KEY_1080P

string Components.StreamServerControl.StreamServerControl.RES_KEY_1080P = "1080p"
static

◆ RES_KEY_720P

string Components.StreamServerControl.StreamServerControl.RES_KEY_720P = "720p"
static

◆ RES_KEY_PAL

string Components.StreamServerControl.StreamServerControl.RES_KEY_PAL = "576p"
static

◆ RES_PAL

tuple Components.StreamServerControl.StreamServerControl.RES_PAL = (720, 576)
static

◆ RESOLUTION_KEY

dictionary Components.StreamServerControl.StreamServerControl.RESOLUTION_KEY
static
Initial value:
= {
RES_1080: "1080p",
RES_720 : "720p",
RES_PAL : "576p",
}

◆ RESOLUTIONS

dictionary Components.StreamServerControl.StreamServerControl.RESOLUTIONS
static
Initial value:
= {
"1080p" : RES_1080,
"720p" : RES_720,
"576p" : RES_PAL,
}

◆ RTSP_STATE_DISABLED

int Components.StreamServerControl.StreamServerControl.RTSP_STATE_DISABLED = 0
static

◆ RTSP_STATE_IDLE

int Components.StreamServerControl.StreamServerControl.RTSP_STATE_IDLE = 1
static

◆ RTSP_STATE_RUNNING

int Components.StreamServerControl.StreamServerControl.RTSP_STATE_RUNNING = 2
static

◆ UPSTREAM_STATE_ADJUSTING

Components.StreamServerControl.StreamServerControl.UPSTREAM_STATE_ADJUSTING = eStreamServer.UPSTREAM_STATE_ADJUSTING
static

◆ UPSTREAM_STATE_CONNECTING

Components.StreamServerControl.StreamServerControl.UPSTREAM_STATE_CONNECTING = eStreamServer.UPSTREAM_STATE_CONNECTING
static

◆ UPSTREAM_STATE_DISABLED

Components.StreamServerControl.StreamServerControl.UPSTREAM_STATE_DISABLED = eStreamServer.UPSTREAM_STATE_DISABLED
static

◆ UPSTREAM_STATE_OVERLOAD

Components.StreamServerControl.StreamServerControl.UPSTREAM_STATE_OVERLOAD = eStreamServer.UPSTREAM_STATE_OVERLOAD
static

◆ UPSTREAM_STATE_TRANSMITTING

Components.StreamServerControl.StreamServerControl.UPSTREAM_STATE_TRANSMITTING = eStreamServer.UPSTREAM_STATE_TRANSMITTING
static

◆ UPSTREAM_STATE_WAITING

Components.StreamServerControl.StreamServerControl.UPSTREAM_STATE_WAITING = eStreamServer.UPSTREAM_STATE_WAITING
static

◆ URI_PARAM_AUDIO_BITRATE

string Components.StreamServerControl.StreamServerControl.URI_PARAM_AUDIO_BITRATE = "audio_bitrate"
static

◆ URI_PARAM_REF

string Components.StreamServerControl.StreamServerControl.URI_PARAM_REF = "ref"
static

◆ URI_PARAM_VIDEO_BITRATE

string Components.StreamServerControl.StreamServerControl.URI_PARAM_VIDEO_BITRATE = "video_bitrate"
static

◆ VIDEO_BITRATE_LIMITS

list Components.StreamServerControl.StreamServerControl.VIDEO_BITRATE_LIMITS = [256, 20000]
static

Property Documentation

◆ audioBitrate

Components.StreamServerControl.StreamServerControl.audioBitrate = property(getAudioBitrate, setAudioBitrate)
static

◆ autoBitrate

Components.StreamServerControl.StreamServerControl.autoBitrate = property(getAutoBitrate, setAutoBitrate)
static

◆ bFrames

Components.StreamServerControl.StreamServerControl.bFrames = property(getBFrames, setBFrames)
static

◆ enabled

Components.StreamServerControl.StreamServerControl.enabled = property(isEnabled)
static

◆ encoderService

Components.StreamServerControl.StreamServerControl.encoderService = property(getEncoderService, setEncoderService)
static

◆ framerate

Components.StreamServerControl.StreamServerControl.framerate = property(getFramerate, setFramerate)
static

◆ gopLength

Components.StreamServerControl.StreamServerControl.gopLength = property(getGopLength, setGopLength)
static

◆ gopOnSceneChange

Components.StreamServerControl.StreamServerControl.gopOnSceneChange = property(getGopOnSceneChange, setGopOnSceneChange)
static

◆ inputMode

Components.StreamServerControl.StreamServerControl.inputMode = property(getInputMode, setInputMode)
static

◆ level

Components.StreamServerControl.StreamServerControl.level = property(getLevel, setLevel)
static

◆ openGop

Components.StreamServerControl.StreamServerControl.openGop = property(getOpenGop, setOpenGop)
static

◆ pFrames

Components.StreamServerControl.StreamServerControl.pFrames = property(getPFrames, setPFrames)
static

◆ profile

Components.StreamServerControl.StreamServerControl.profile = property(getProfile, setProfile)
static

◆ resolution

Components.StreamServerControl.StreamServerControl.resolution = property(getResolution, setResolution)
static

◆ rtspClientCount

Components.StreamServerControl.StreamServerControl.rtspClientCount = property(getRtspClientcount)
static

◆ slices

Components.StreamServerControl.StreamServerControl.slices = property(getSlices, setSlices)
static

◆ sourceState

Components.StreamServerControl.StreamServerControl.sourceState = property(getSourceState)
static

◆ upstreamState

Components.StreamServerControl.StreamServerControl.upstreamState = property(getUpstreamState)
static

◆ videoBitrate

Components.StreamServerControl.StreamServerControl.videoBitrate = property(getVideoBitrate, setVideoBitrate)
static

The documentation for this class was generated from the following file: