From a6704fd7324c257f1217734b1d49029b54ac7fee Mon Sep 17 00:00:00 2001 From: Jonathan Baecker Date: Fri, 18 Oct 2024 08:36:09 +0200 Subject: [PATCH] fetch advanced config on every channel change --- frontend/components/ConfigAdvanced.vue | 100 +++++++++++++++++-------- frontend/components/ConfigChannel.vue | 2 + frontend/components/HeaderMenu.vue | 1 + 3 files changed, 71 insertions(+), 32 deletions(-) diff --git a/frontend/components/ConfigAdvanced.vue b/frontend/components/ConfigAdvanced.vue index d0d483ff..e54b452c 100644 --- a/frontend/components/ConfigAdvanced.vue +++ b/frontend/components/ConfigAdvanced.vue @@ -36,10 +36,12 @@ class="input input-sm input-bordered w-full" />
- - Default: -c:v mpeg2video -g 1 -b:v 57600k -minrate 57600k -maxrate 57600k -bufsize 28800k - -mpegts_flags initial_discontinuity -c:a s302m -strict -2 -sample_fmt s16 -ar 48000 -ac 2 -f - mpegts + + Default: + + -c:v mpeg2video -g 1 -b:v 57600k -minrate 57600k -maxrate 57600k -bufsize 28800k + -mpegts_flags initial_discontinuity +
@@ -87,7 +89,9 @@ class="input input-sm input-bordered w-full" />
- Default: yadif=0:-1:0 + Default: yadif=0:-1:0
@@ -145,7 +156,9 @@ class="input input-sm input-bordered w-full" />
- Default: fps={} + + Default: fps={}
@@ -245,8 +268,8 @@ class="input input-sm input-bordered w-full" />
- - Default: fade=out:st={}:d=1.0:alpha=1 + + Default: fade=out:st={}:d=1.0:alpha=1
@@ -261,8 +284,8 @@ class="input input-sm input-bordered w-full" />
- - Default: null[l];[v][l]overlay={}:shortest=1 + + Default: null[l];[v][l]overlay={}:shortest=1
@@ -277,8 +300,8 @@ class="input input-sm input-bordered w-full" />
- - Default: tpad=stop_mode=add:stop_duration={} + + Default: tpad=stop_mode=add:stop_duration={}
@@ -293,7 +316,9 @@ class="input input-sm input-bordered w-full" />
- Default: drawtext=text='{}':{}{} + + Default: drawtext=text='{}':{}{}
@@ -323,7 +349,7 @@ class="input input-sm input-bordered w-full" />
- + Default: aevalsrc=0:channel_layout=stereo:duration={}:sample_rate=48000
@@ -339,7 +365,9 @@ class="input input-sm input-bordered w-full" />
- Default: afade=in:st=0:d=0.5 + + Default: afade=in:st=0:d=0.5
diff --git a/frontend/components/ConfigChannel.vue b/frontend/components/ConfigChannel.vue index 996428f5..5061b7b6 100644 --- a/frontend/components/ConfigChannel.vue +++ b/frontend/components/ConfigChannel.vue @@ -217,6 +217,7 @@ async function addUpdateChannel() { await updateChannel() } + await configStore.getAdvancedConfig() await configStore.getPlayoutConfig() await configStore.getUserConfig() } @@ -240,6 +241,7 @@ async function deleteChannel() { i.value = configStore.i - 1 await configStore.getChannelConfig() + await configStore.getAdvancedConfig() await configStore.getPlayoutConfig() await configStore.getUserConfig() diff --git a/frontend/components/HeaderMenu.vue b/frontend/components/HeaderMenu.vue index ae9781f5..740eadac 100644 --- a/frontend/components/HeaderMenu.vue +++ b/frontend/components/HeaderMenu.vue @@ -162,6 +162,7 @@ function logout() { function selectChannel(index: number) { configStore.i = index + configStore.getAdvancedConfig() configStore.getPlayoutConfig() }