(self, info, target_modcod)
Set the DVB-S2 and MPEG TS parameters of the target stream
Set the DVB-S2 and MPEG TS parameters of the target stream
Set the DVB - S2 and MPEG TS parameters of the target stream
def set_dvbs2_params(self, info, target_modcod):
        """Set the DVB-S2 and MPEG TS parameters of the target stream"""
        modcod = _parse_modcod(target_modcod)
        pilots = 'on' if defs.pilots else 'off'
        sym_rate = defs.sym_rate[info['sat']['alias']]
        self.params = {
            'src': 1,
            'freq': info['sat']['dl_freq'],
            'pol': info['sat']['pol'].lower(),
            'ro': defs.rolloff,
            'msys': 'dvbs2',
            'mtype': modcod['mtype'],
            'plts': pilots,
            'sr': int(sym_rate / 1e3),
            'fec': modcod['fec'].replace('/', ''),
            'pids': ",".join([str(pid) for pid in defs.pids])
        }
def set_dvbs2_params ( self , info , target_modcod ) : modcod = _parse_modcod ( target_modcod ) pilots = 'on' if defs . pilots else 'off' sym_rate = defs . sym_rate [ info [ 'sat' ] [ 'alias' ] ] self . params = { 'src' : 1 , 'freq' : info [ 'sat' ] [ 'dl_freq' ] , 'pol' : info [ 'sat' ] [ 'pol' ] . lower ( ) , 'ro' : defs . rolloff , 'msys' : 'dvbs2' , 'mtype' : modcod [ 'mtype' ] , 'plts' : pilots , 'sr' : int ( sym_rate / 1e3 ) , 'fec' : modcod [ 'fec' ] . replace ( '/' , '' ) , 'pids' : "," . join ( [ str ( pid ) for pid in defs . pids ] ) }