source/controlplaneapi/infrastructure/lambda/Replay/shared/HlsGenerator.py [290:324]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            jobSettings["OutputGroups"][1]['OutputGroupSettings']['FileGroupSettings']['Destination'] = thumbnail_destination
            jobSettings["OutputGroups"][1]['Outputs'][0]["VideoDescription"]["Width"] = video_res_width
            jobSettings["OutputGroups"][1]['Outputs'][0]["VideoDescription"]["Height"] = video_res_height
            resolution_thumbnail_mapping.append({
                resolution: thumbnail_destination
            })     
            jobSettings['Inputs'] = inputSettings

            # Convert the video using AWS Elemental MediaConvert
            jobMetadata = { 'BatchId': batch_id }

            return self.__create_job(jobMetadata, jobSettings), job_output_destination

        except Exception as e:
            print ('Exception: %s' % e)
            raise

    def __create_job(self, jobMetadata, jobSettings):

        # get the account-specific mediaconvert endpoint for this region
        endpoint = ssm.get_parameter(Name='/MRE/ClipGen/MediaConvertEndpoint', WithDecryption=False)['Parameter']['Value'] 

        # Customizing Exponential backoff
        # Retries with additional client side throttling.
        boto_config = Config(
            retries = {
                'max_attempts': 10,
                'mode': 'adaptive'
            }
        )
        
        # add the account-specific endpoint to the client session 
        client = boto3.client('mediaconvert', config=boto_config, endpoint_url=endpoint, verify=False)

        mediaConvertRole = os.environ['MediaConvertRole']
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



source/controlplaneapi/infrastructure/lambda/Replay/shared/Mp4Generator.py [276:311]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            jobSettings["OutputGroups"][1]['OutputGroupSettings']['FileGroupSettings']['Destination'] = thumbnail_destination
            jobSettings["OutputGroups"][1]['Outputs'][0]["VideoDescription"]["Width"] = video_res_width
            jobSettings["OutputGroups"][1]['Outputs'][0]["VideoDescription"]["Height"] = video_res_height

            resolution_thumbnail_mapping.append({
                resolution: thumbnail_destination
            })     
            jobSettings['Inputs'] = inputSettings

            # Convert the video using AWS Elemental MediaConvert
            jobMetadata = { 'BatchId': batch_id }

            return self.__create_job(jobMetadata, jobSettings), job_output_destination

        except Exception as e:
            print ('Exception: %s' % e)
            raise

    def __create_job(self, jobMetadata, jobSettings):

        # get the account-specific mediaconvert endpoint for this region
        endpoint = ssm.get_parameter(Name='/MRE/ClipGen/MediaConvertEndpoint', WithDecryption=False)['Parameter']['Value'] 

        # Customizing Exponential backoff
        # Retries with additional client side throttling.
        boto_config = Config(
            retries = {
                'max_attempts': 10,
                'mode': 'adaptive'
            }
        )
        
        # add the account-specific endpoint to the client session 
        client = boto3.client('mediaconvert', config=boto_config, endpoint_url=endpoint, verify=False)

        mediaConvertRole = os.environ['MediaConvertRole']
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



