From 02d958416ade8faa11e8a039a702d18a88fffe54 Mon Sep 17 00:00:00 2001 From: Thomas Erlang Date: Sun, 10 Dec 2023 13:48:05 +0100 Subject: [PATCH] Fix settings hls settings after checking if video copy is possible --- seplis_play_server/transcoders/hls.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/seplis_play_server/transcoders/hls.py b/seplis_play_server/transcoders/hls.py index 9dd7823..6891f9c 100644 --- a/seplis_play_server/transcoders/hls.py +++ b/seplis_play_server/transcoders/hls.py @@ -1,3 +1,4 @@ +from ast import Dict import asyncio, os import math import re @@ -13,11 +14,11 @@ class Hls_transcoder(video.Transcoder): media_name: str = 'media.m3u8' - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) + def __init__(self, settings: video.Transcode_settings, metadata: Dict): # For now force h264 since hls hevc breaks in safari for some reason - self.settings.transcode_video_codec = 'h264' - self.settings.supported_video_codecs = ['h264'] + settings.transcode_video_codec = 'h264' + settings.supported_video_codecs = ['h264'] + super().__init__(settings, metadata) def ffmpeg_extend_args(self) -> None: self.ffmpeg_args.extend([