Skip to content

Commit

Permalink
add -y to ffmpeg command
Browse files Browse the repository at this point in the history
  • Loading branch information
nadermx committed Aug 15, 2023
1 parent 279f453 commit 095ad37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backgroundremover/utilities.py
Expand Up @@ -298,7 +298,7 @@ def transparentvideooverimage(output, overlay, file_path,
framerate)
print("Scale image")
temp_image = os.path.abspath("%s/new.jpg" % tmpdirname)
cmd = "ffmpeg -i '%s' -i '%s' -filter_complex 'scale2ref[img][vid];[img]setsar=1;[vid]nullsink' -q:v 2 '%s'" % (
cmd = "ffmpeg -y -i '%s' -i '%s' -filter_complex 'scale2ref[img][vid];[img]setsar=1;[vid]nullsink' -q:v 2 '%s'" % (
overlay, file_path, temp_image)
sp.run(shlex.split(cmd))
print("Starting alphamerge")
Expand Down

0 comments on commit 095ad37

Please sign in to comment.