INNER CODE UNIT · Python

start_transcode

miztiik/AWS-Demos · how-to-examples/iam-s3-sqs-sns-video-transcoder.py:394

    def start_transcode(self, filename):
        """
        Submit a job to transcode a file by its filename. The
        built-in web system preset is used for the single output.
        """
        self.transcoder.create_job(
            PipelineId=self.pipeline_id,
            Input={
                'Key': filename,
                'FrameRate': 'auto',
                'Resolution': 'auto',
                'AspectRatio': 'auto',
                'Interlaced': 'auto',
                'Container': 'auto'
            },
            Outputs=[{
                'Key': '.'.join(filename.split('.')[:-1]) + '.mp4',
                'PresetId': '1351620000001-100070'

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…