Skip to content

Commit

Permalink
only import qtfs if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Higgins committed Oct 21, 2015
1 parent ac2e255 commit e2dc44a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mkvtomp4.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import logging
from converter import Converter
from extensions import valid_input_extensions, valid_output_extensions, bad_subtitle_codecs, valid_subtitle_extensions, subtitle_codec_extensions
from qtfaststart import processor, exceptions
from babelfish import Language


Expand Down Expand Up @@ -594,6 +593,8 @@ def QTFS(self, inputfile):
temp_ext = '.QTFS'
# Relocate MOOV atom to the very beginning. Can double the time it takes to convert a file but makes streaming faster
if self.parseFile(inputfile)[2] in valid_output_extensions and os.path.isfile(inputfile) and self.relocate_moov:
from qtfaststart import processor, exceptions

self.log.info("Relocating MOOV atom to start of file.")

try:
Expand Down

0 comments on commit e2dc44a

Please sign in to comment.