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 5 additions and 1 deletions
Showing only changes of commit b6217985f2 - Show all commits

View File

@ -87,7 +87,9 @@ class Mediasite:
else:
myslide['duration'] = '{}ms'.format(int(data['slides'][i+1]['duration']) - int(data['slides'][i]['duration']))
# Commit to the demuxfile
# Commit to the demuxfile. Duration is assumed to be seconds unless staded otherwise
# https://ffmpeg.org/ffmpeg-utils.html#Time-duration
# https://trac.ffmpeg.org/wiki/Slideshow
f.write('file \'{}\'\n'.format(myslide['url']))
f.write('duration {}\n'.format(myslide['duration']))
slides.append(myslide)

View File

@ -193,6 +193,8 @@ class _Worker:
self.logger.debug("%s - Calling ffmpeg", package_id)
start = time.time()
# https://ffmpeg.org/ffmpeg-formats.html#toc-concat-1
# https://github.com/kkroening/ffmpeg-python/tree/master/examples
(ffmpeg
.input(demux_file, safe=0)
.filter('scale', height='min(in_h, {})'.format(maxheight), width=-2)