Skip to content

Commit

Permalink
disable skip_high_layer_encoding:
Browse files Browse the repository at this point in the history
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 ...
  • Loading branch information
DerouineauNicolas committed Jun 28, 2024
1 parent f25954f commit 35440f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/StreamServerApp/media_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 35440f4

Please sign in to comment.