Skip to content
Permalink
Browse files

fix denoise_image_sequence

  • Loading branch information...
iperov committed Nov 8, 2019
1 parent d897893 commit 374d8c2388b771dc987d4a1d1bcaa58564347ae7
Showing with 5 additions and 1 deletion.
  1. +5 −1 mainscripts/VideoEd.py
@@ -98,10 +98,14 @@ def denoise_image_sequence( input_dir, ext=None, factor=None ):
if factor is None:
factor = np.clip ( io.input_int ("Denoise factor? (1-20 default:5) : ", 5), 1, 20 )

kwargs = {}
if ext == 'jpg':
kwargs.update ({'q:v':'2'})

job = ( ffmpeg
.input(str ( input_path / ('%5d.'+ext) ) )
.filter("hqdn3d", factor, factor, 5,5)
.output(str ( input_path / ('%5d.'+ext) ) )
.output(str ( input_path / ('%5d.'+ext) ), **kwargs )
)

try:

0 comments on commit 374d8c2

Please sign in to comment.
You can’t perform that action at this time.