In the case of if we're skipping transcoding, we don't need to copy
this file at all!
This commit sponsored by Frank Zambrini III. Thanks!
from . import transcoders
from .util import skip_transcode
-
_log = logging.getLogger(__name__)
_log.setLevel(logging.DEBUG)
# if we can skip it
if skip_transcode(metadata):
_log.debug('Skipping transcoding')
- # Just push the submitted file to the tmp_dst
- open(tmp_dst.name, 'wb').write(open(queued_filename, 'rb').read())
dst_dimensions = metadata['videowidth'], metadata['videoheight']