Пример #1
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     encode = EncodeStream(name=IStreamObject.DEFAULT_STREAM_NAME)
     encode.input = [InputUrl.make_stub()]
     encode.output = [OutputUrl.make_stub()]
     IStreamObject.fill_defaults(encode)
     return cls(encode, settings, client)
Пример #2
0
 def make_encode_stream(self) -> EncodeStream:
     return EncodeStream.make_stream(self._settings)
Пример #3
0
 def update_entry(self, entry: EncodeStream):
     entry.relay_video = self.relay_video.data
     entry.relay_audio = self.relay_audio.data
     entry.deinterlace = self.deinterlace.data
     entry.frame_rate = self.frame_rate.data
     entry.volume = self.volume.data
     entry.video_codec = self.video_codec.data
     entry.audio_codec = self.audio_codec.data
     entry.audio_channels_count = self.audio_channels_count.data
     entry.size = self.size.get_data()
     entry.video_bit_rate = self.video_bit_rate.data
     entry.audio_bit_rate = self.audio_bit_rate.data
     entry.logo = self.logo.get_data()
     entry.rsvg_logo = self.rsvg_logo.get_data()
     entry.aspect_ratio = self.aspect_ratio.get_data()
     return super(EncodeStreamForm, self).update_entry(entry)
Пример #4
0
 def make_entry(self):
     return self.update_entry(EncodeStream())
Пример #5
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     encode = EncodeStream()
     encode.input = [InputUrl(id=InputUrl.generate_id())]
     encode.output = [OutputUrl(id=OutputUrl.generate_id())]
     return cls(encode, settings, client)
Пример #6
0
 def make_stream(cls, settings: ServiceSettings, client: ServiceClient):
     encode = EncodeStream(name=IStreamObject.DEFAULT_STREAM_NAME)
     encode.input = [InputUrl(id=InputUrl.generate_id())]
     encode.output = [OutputUrl(id=OutputUrl.generate_id())]
     return cls(encode, settings, client)