Fixes Issue #2 #4
@ -66,9 +66,9 @@ class Mediasite:
|
||||
demux_file = os.path.join(slides_path, 'demux.txt')
|
||||
with open(demux_file, 'w') as f:
|
||||
for slide in data['slides']:
|
||||
self.logger.info('Slide: {}'.format(slide))
|
||||
myslide = { 'url': os.path.join(slides_path, self._download(slides_path, slide['url'], session)),
|
||||
'duration': slide['duration'] }
|
||||
self.logger.info('Slide: {}'.format(myslide))
|
||||
f.write('file \'{}\'\n'.format(myslide['url']))
|
||||
f.write('duration {}\n'.format(slide['duration']))
|
||||
mypackage['slides'].append(myslide)
|
||||
|
@ -184,7 +184,7 @@ class _Worker:
|
||||
start = time.time()
|
||||
(ffmpeg
|
||||
.input(demux_file, framerate=25)
|
||||
.filter('scale', height='min(in_h, {}'.format(maxheight), width=-2)
|
||||
.filter('scale', height='min(in_h, {})'.format(maxheight), width=-2)
|
||||
.output(outpath, vcodec='libx264', crf=crf, preset=preset, vsync='vfr', movflags='+faststart', pix_fmt='yuv420p')
|
||||
.run(quiet=quiet))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user