Fixes Issue #2 #4
@ -67,9 +67,9 @@ class Mediasite:
|
||||
with open(demux_file, 'w') as f:
|
||||
for slide in data['slides']:
|
||||
myslide = { 'url': os.path.join(slides_path, self._download(slides_path, slide['url'], session)),
|
||||
'duration': int(slide['duration']) / 1024}
|
||||
'duration': int(slide['duration']) / 1000}
|
||||
f.write('file \'{}\'\n'.format(myslide['url']))
|
||||
f.write('duration {}\n'.format(int(slide['duration']) / 1024))
|
||||
f.write('duration {}\n'.format(int(slide['duration']) / 1000))
|
||||
mypackage['slides'].append(myslide)
|
||||
|
||||
# to accomodate for an ffmpeg quirk that needs the last slide twice
|
||||
|
@ -185,6 +185,7 @@ class _Worker:
|
||||
(ffmpeg
|
||||
.input(demux_file, format='concat', safe=0)
|
||||
.filter('scale', height='min(in_h, {})'.format(maxheight), width=-2)
|
||||
.filter('fps', fps=10)
|
||||
.output(outpath, vcodec='libx264', crf=crf, preset=preset, vsync='vfr', movflags='+faststart', pix_fmt='yuv420p', c='copy')
|
||||
.overwrite_output()
|
||||
.run(quiet=quiet))
|
||||
|
Loading…
x
Reference in New Issue
Block a user