Fixes Issue #2 #4

Merged
dafo5502 merged 59 commits from developer into master 2021-10-25 14:41:37 +02:00
2 changed files with 2 additions and 3 deletions
Showing only changes of commit 336b378d47 - Show all commits

View File

@ -67,9 +67,9 @@ class Mediasite:
with open(demux_file, 'w') as f: with open(demux_file, 'w') as f:
for slide in data['slides']: for slide in data['slides']:
myslide = { 'url': os.path.join(slides_path, self._download(slides_path, slide['url'], session)), myslide = { 'url': os.path.join(slides_path, self._download(slides_path, slide['url'], session)),
'duration': int(slide['duration']) / 1000} 'duration': '{}ms'.format(slide['duration'])}
f.write('file \'{}\'\n'.format(myslide['url'])) f.write('file \'{}\'\n'.format(myslide['url']))
f.write('duration {}\n'.format(int(slide['duration']) / 1000)) f.write('duration {}ms\n'.format(slide['duration']))
mypackage['slides'].append(myslide) mypackage['slides'].append(myslide)
# to accomodate for an ffmpeg quirk that needs the last slide twice # to accomodate for an ffmpeg quirk that needs the last slide twice

View File

@ -185,7 +185,6 @@ class _Worker:
(ffmpeg (ffmpeg
.input(demux_file, format='concat', safe=0) .input(demux_file, format='concat', safe=0)
.filter('scale', height='min(in_h, {})'.format(maxheight), width=-2) .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') .output(outpath, vcodec='libx264', crf=crf, preset=preset, vsync='vfr', movflags='+faststart', pix_fmt='yuv420p', c='copy')
.overwrite_output() .overwrite_output()
.run(quiet=quiet)) .run(quiet=quiet))