Support for HandBrake on Linux, Solaris, and other Unix-like platforms
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
--comb-detect[=string] Detect interlace artifacts in frames.
If not accompanied by the decomb or deinterlace
filters, this filter only logs the interlaced
frame count to the activity log.
If accompanied by the decomb or deinterlace
filters, it causes these filters to selectively
deinterlace only those frames where interlacing
is detected.
Presets:
permissive
fast
Custom Format:
mode=m:spatial-metric=s:motion-thresh=m:
spatial-thresh=s:filter-mode=f:block-thresh=b:
block-width=b:block-height=b:disable=d
Default:
mode=3:spatial-metric=2:motion-thresh=1:
spatial-thresh=1:filter-mode=2:block-thresh=40:
block-width=16:block-height=16
but what are the allowed values for these options and what do they mean? What is mode=3?
OR if someone just can tell me how to disable detinterlace detection and keep it always on? I am trying to encode a 1080i50fps MPEG2 .ts file into a 1080p50fps H.264 and no mater what I tried it still won't deinterlace some shots where deinterlacing it is clearly needed.
--comb-detect[=string] Detect interlace artifacts in frames.
If not accompanied by the decomb or deinterlace
filters, this filter only logs the interlaced
frame count to the activity log.
If accompanied by the decomb or deinterlace
filters, it causes these filters to selectively
deinterlace only those frames where interlacing
is detected.
Presets:
permissive
fast
Custom Format:
mode=m:spatial-metric=s:motion-thresh=m:
spatial-thresh=s:filter-mode=f:block-thresh=b:
block-width=b:block-height=b:disable=d
Default:
mode=3:spatial-metric=2:motion-thresh=1:
spatial-thresh=1:filter-mode=2:block-thresh=40:
block-width=16:block-height=16
--no-comb-detect Disable preset comb-detect filter
You didn't look down far enough. The --no-comb-detect option help us right under --comb-detect.
The default block parameters are pretty sensitive to combing and in my testing at least, I have not found a better group of settings. If the OP is sure his content is fully interlaced, disabling interlacing detection while enabling a deinterlacing is a smart move.
BradleyS wrote: ↑Mon Nov 18, 2019 6:26 pm
The default block parameters are pretty sensitive to combing and in my testing at least, I have not found a better group of settings. If the OP is sure his content is fully interlaced, disabling interlacing detection while enabling a deinterlacing is a smart move.
Yes, I never had to adjust the options, but I encountered one (set of) video that remained interlaced and hence tried to increase detection sensitivity. (I missed the --no-decomb-detect option too.)
Although in my case, not all frames are interlaced, so I'll prefer to use --decomb-detect. I just tried --no-decomb-detect and the output is still interlaced.
Anyway, I believe the video is botched. It is transcoded from DVD to 720p H.264. I believe the upscaling made it impossible to decomb? (Since interlacing is no longer on alternate lines.)
Here's a cropped frame from the source at 100%:
interlaced_upscaled.png (77.24 KiB) Viewed 1507 times
--no-comb-detect != --no-decomb-detect (the latter is not a HandBrake option). If you only typed it wrong on the forum but not when invoking HandBrakeCLI, then we need to see an encode log please.
Yikes, that's a lot of unfiltered frames for the defaults, which are pretty sensitive. Are you sure the content isn't mixed interlaced and progressive, or telecined ?
BradleyS wrote: ↑Wed Nov 20, 2019 1:31 am
Yikes, that's a lot of unfiltered frames for the defaults, which are pretty sensitive. Are you sure the content isn't mixed interlaced and progressive, or telecined ?
The original conversion from DVD to H.264 was not deinterlaced. But that's not the stopper. I believe upscaling from 480px to 720px made it impossible for decomb to work? I assume decomb looks purely at alternate lines. That line structure is lost after upscaling.
This is an old TVB TV show. I think it is interlaced. When I get my hands on the original DVDs in a couple of weeks time, I'll see if the source can be decombed nicely. (I would think so.)
Oh wait, you upscaled the source (without deinterlacing) before feeding it to HandBrake and are now attempting to decomb an already-upscaled source? That's a big no-no, indeed.
Just for testing, I encoded the 720p video to 480p at CRF 16, then transcode it again to 480p at CRF 22 with decomb. It works -- the output is deinterlaced.