From 35440f48c2346649455aa5d8308417fbf4a6ee90 Mon Sep 17 00:00:00 2001 From: Nicolas DEROUINEAU Date: Fri, 28 Jun 2024 14:38:49 +0200 Subject: [PATCH] disable skip_high_layer_encoding: The GoP analysis is only performed on the first minute of the video. This is not working if the variable GoP length is used and done later in the video. The fix could be to performe analysis on the whole video, but this is highly cpu consuming. TBD later ... --- backend/StreamServerApp/media_processing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/StreamServerApp/media_processing.py b/backend/StreamServerApp/media_processing.py index 1713d67..ca8600b 100644 --- a/backend/StreamServerApp/media_processing.py +++ b/backend/StreamServerApp/media_processing.py @@ -194,13 +194,13 @@ def prepare_video(video_full_path, output_fps_denum = video_framerate_denum logger.debug("dash_fragment_duration = {}".format(str(dash_fragment_duration))) - if "h264" in video_codec_type: + '''if "h264" in video_codec_type: analysis_result = keyframe_analysis(video_full_path) if analysis_result[0]: logger.debug("Regular GoP Structure was detected, we are going to use the input without reecoding it") skip_high_layer_encoding = True dash_fragment_duration = float(analysis_result[1]) * (float(video_framerate_num)/float(video_framerate_denum)) - logger.debug("Gop Duration = {}".format(dash_fragment_duration)) + logger.debug("Gop Duration = {}".format(dash_fragment_duration))''' video_elementary_stream_path_high_layer = "{}_{}.264".format( os.path.splitext(video_full_path)[0], video_height)