Skip to content

Commit

Permalink
revert bad changes
Browse files Browse the repository at this point in the history
  • Loading branch information
TNTwise committed Sep 7, 2024
1 parent 131602c commit 4cd0291
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion backend/src/FFmpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def getFFmpegWriteCommand(self):
"-",
"-i",
f"{self.inputFile}",
["-i" + subtitle for subtitle in self.subtitleFiles],
#"""["-i" + subtitle for subtitle in self.subtitleFiles],"""
"-r",
f"{self.fps * self.interpolateFactor}",
f"-crf",
Expand Down
8 changes: 4 additions & 4 deletions backend/src/RenderVideo.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,11 @@ def renderUpscale(self):
log("Starting Upscale")
for i in range(self.totalInputFrames - 1):
frame = self.readQueue.get()
if self.skipUpscaleIfSameFrame(frame=frame):
self.writeQueue.put(self.f0)
else:
self.f0 = self.upscale(self.frameSetupFunction(self.frame))
'''if self.skipUpscaleIfSameFrame(frame=frame):
self.writeQueue.put(self.f0)
else:'''
self.f0 = self.upscale(self.frameSetupFunction(frame))
self.writeQueue.put(self.f0)
self.writeQueue.put(None)
log("Finished Upscale")

Expand Down
2 changes: 1 addition & 1 deletion backend/src/Util.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def currentDirectory():
return cwd

def ffmpegPath() -> str:
return os.path.join(currentDirectory(),'bin','ffmpeg')
return str(os.path.join(currentDirectory(),'bin','ffmpeg'))

def modelsDirectory():
return os.path.join(cwd, "models")
Expand Down

0 comments on commit 4cd0291

Please sign in to comment.