mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
integrating proxy with rest of the application, added transcoding to ts proxy
This commit is contained in:
parent
3a0df9c6cd
commit
0607957f67
5 changed files with 541 additions and 415 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue