Skip to content

Commit 8628f43

Browse files
committed
- changed the behaviour of deinterlace/denoise for ffmpeg exports so we aren't
deinterlacing twice if both are enabled. - deinterlacing done during denoising stage if enabled, otherwise in ffmpeg command line
1 parent 6cb973d commit 8628f43

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

trunk/export/ffmpeg.pm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@ package export::ffmpeg;
109109
$ffmpeg .= " -r " . $episode->{'finfo'}{'fps'};
110110
$ffmpeg .= " -i /tmp/fifodir_$$/vidout -f yuv4mpegpipe -";
111111
$ffmpeg .= " 2> /dev/null | ";
112-
$ffmpeg .= "$NICE yuvdenoise -F -r 16";
112+
$ffmpeg .= "$NICE yuvdenoise -r 16";
113+
if ($self->{'deinterlace'}) {
114+
$ffmpeg .= " -F";
115+
}
113116
if ($self->{'crop'}) {
114117
$ffmpeg .= " -b $crop_w,$crop_h,-$crop_w,-$crop_h";
115118
}
@@ -135,7 +138,7 @@ package export::ffmpeg;
135138
$ffmpeg .= " -i $videofifo";
136139

137140
# Filters
138-
if ($self->{'deinterlace'}) {
141+
if ($self->{'deinterlace'} && !$self->{'noise_reduction'}) {
139142
$ffmpeg .= " -deinterlace";
140143
}
141144

0 commit comments

Comments
 (0)