Skip to content

Commit

Permalink
Fix settings hls settings after checking if video copy is possible
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaserlang committed Dec 10, 2023
1 parent 8291acc commit 02d9584
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions seplis_play_server/transcoders/hls.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from ast import Dict
import asyncio, os
import math
import re
Expand All @@ -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([
Expand Down

0 comments on commit 02d9584

Please sign in to comment.