Fixes Issue #2 #4

Merged
dafo5502 merged 59 commits from developer into master 2021-10-25 14:41:37 +02:00
Showing only changes of commit b04ee56cb9 - Show all commits

View File

@ -176,16 +176,16 @@ class _Worker:
outpath = os.path.join(outdir, outstream) outpath = os.path.join(outdir, outstream)
self.logger.debug("%s - Building slide video from demux.txt", package_id) self.logger.debug("%s - Building slide video from demux.txt", package_id)
quiet = True quiet = False
if self.logger.getEffectiveLevel() < logging.INFO: # if self.logger.getEffectiveLevel() < logging.INFO:
quiet = False # quiet = False
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, framerate=25) .input(demux_file, framerate=25)
.filter('scale', height='min(in_h, {}'.format(maxheight), width=-2) .filter('scale', height='min(in_h, {}'.format(maxheight), width=-2)
.output(outpath, crf=crf, preset=preset, vsync='vfr', movflags='faststart', pix_fmt='yuv420p') .output(outpath, vcodec='libx264', crf=crf, preset=preset, vsync='vfr', movflags='+faststart', pix_fmt='yuv420p')
.run(quiet=quiet)) .run(quiet=quiet))
runtime = time.time() - start runtime = time.time() - start