Fixes Issue #2 #4
@ -68,6 +68,7 @@ class Mediasite:
|
|||||||
with open(demux_file, 'w') as f:
|
with open(demux_file, 'w') as f:
|
||||||
elapsed = 0 + int(offset)
|
elapsed = 0 + int(offset)
|
||||||
myslide = {}
|
myslide = {}
|
||||||
|
f.write('ffconcat version 1.0\n')
|
||||||
for i in range(len(data['slides'])):
|
for i in range(len(data['slides'])):
|
||||||
myslide['url'] = os.path.join(slides_path, self._download(slides_path, data['slides'][i]['url'], session))
|
myslide['url'] = os.path.join(slides_path, self._download(slides_path, data['slides'][i]['url'], session))
|
||||||
if i == 0:
|
if i == 0:
|
||||||
|
@ -176,7 +176,7 @@ class _Worker:
|
|||||||
self.logger.debug("%s - Calling ffmpeg", package_id)
|
self.logger.debug("%s - Calling ffmpeg", package_id)
|
||||||
start = time.time()
|
start = time.time()
|
||||||
(ffmpeg
|
(ffmpeg
|
||||||
.input(demux_file, format='concat', safe=0, segment_time_metadata=1)
|
.input(demux_file, safe=0)
|
||||||
.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', c='copy')
|
.output(outpath, vcodec='libx264', crf=crf, preset=preset, vsync='vfr', movflags='+faststart', pix_fmt='yuv420p', c='copy')
|
||||||
.overwrite_output()
|
.overwrite_output()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user