Fixes Issue #2 #4
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user