integrating proxy with rest of the application, added transcoding to ts proxy

This commit is contained in:
dekzter 2025-03-13 19:22:35 -04:00
parent 3a0df9c6cd
commit 0607957f67
5 changed files with 541 additions and 415 deletions

View file

@ -47,6 +47,14 @@ class StreamProfile(models.Model):
def __str__(self):
return self.profile_name
def build_command(self, stream_url):
cmd = []
if self.command == "ffmpeg":
cmd = ["ffmpeg", "-i", stream_url] + self.parameters.split() + ["pipe:1"]
elif self.command == "streamlink":
cmd = ["streamlink", stream_url] + self.parameters.split()
return cmd
class CoreSettings(models.Model):
key = models.CharField(