BOB deinterlace gives anomaly high bitrate with HB 1.3.0

HandBrake for Windows support
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.
Post Reply
selen
Posts: 11
Joined: Fri Nov 22, 2019 8:32 pm

BOB deinterlace gives anomaly high bitrate with HB 1.3.0

Post by selen »

Description of problem or question:
With new HB 1.3.0 I have anomaly high bitrate when doing BOB deinterlace comparing to regular deinterlace and any deinterlace used in HB 1.2.2

Steps to reproduce the problem:
Load interlaced sample. Here's one 30sec sample 576i: https://megaupload.is/f7xf09B7n6/handbrakebobtest_rar
Shared settings for all tests:
Codec H265 / Framerate SameAsSource Variable / RF20 / medium / tune none / profile&level auto
Extra settings: no-sao:aq-mode=1

I did 2 encodes with HB 1.3.0 with deinterlaces yadif/default/detectionOff and yadif/bob/detectionOff
And 2 encodes with HB 1.2.2 with the same deinterlace pair.

Resulted bitrate:
HB 1.3.0 yadif/default/off: 2341.35 kbps - 25fps
HB 1.3.0 yadif/bob/off: 3847.63 kbps - this is anomaly, should be ~2700. 50fps
HB 1.2.2 yadif/default/off: 2406.34 kbps - 25fps
HB 1.2.2 yadif/bob/off: 2715.37 kbps - 50fps

HandBrake version: 1.3.0

Operating system and version: Windows 10 x64

Parts of logs:

HB 1.3.0 yadif/default/off:

Code: Select all

h264-decoder done: 756 frames, 0 decoder errors
sync: got 756 frames, 759 expected
sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
x265 [info]: frame I:      4, Avg QP:20.70  kb/s: 10245.20
x265 [info]: frame P:    185, Avg QP:21.65  kb/s: 6021.63
x265 [info]: frame B:    567, Avg QP:27.76  kb/s: 1087.86
x265 [info]: Weighted P-Frames: Y:2.7% UV:2.7%
x265 [info]: consecutive B-frames: 0.5% 2.6% 3.2% 83.6% 10.1%
encoded 756 frames, 2343.65 kb/s, Avg QP:26.23
mux: track 0, 756 frames, 8862022 bytes, 2341.35 kbps, fifo 1024
HB 1.3.0 yadif/bob/off:

Code: Select all

h264-decoder done: 756 frames, 0 decoder errors
sync: got 756 frames, 759 expected
sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
x265 [info]: frame I:      7, Avg QP:19.96  kb/s: 10860.71
x265 [info]: frame P:    344, Avg QP:21.03  kb/s: 5521.85
x265 [info]: frame B:   1161, Avg QP:28.12  kb/s: 806.12
x265 [info]: Weighted P-Frames: Y:1.7% UV:0.9%
x265 [info]: consecutive B-frames: 0.3% 1.7% 4.0% 55.0% 39.0%
encoded 1512 frames, 1925.56 kb/s, Avg QP:26.47
mux: track 0, 1512 frames, 14563289 bytes, 3847.63 kbps, fifo 2048
HB 1.2.2 yadif/default/off:

Code: Select all

h264-decoder done: 756 frames, 0 decoder errors
sync: got 756 frames, 759 expected
sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
x265 [info]: frame I:      4, Avg QP:20.70  kb/s: 10245.20
x265 [info]: frame P:    185, Avg QP:21.65  kb/s: 6013.82
x265 [info]: frame B:    567, Avg QP:27.73  kb/s: 1177.18
x265 [info]: Weighted P-Frames: Y:2.7% UV:2.7%
x265 [info]: consecutive B-frames: 0.5% 2.6% 3.2% 83.6% 10.1%
encoded 756 frames, 2408.72 kb/s, Avg QP:26.21
mux: track 0, 756 frames, 9108002 bytes, 2406.34 kbps, fifo 1024
HB 1.2.2 yadif/bob/off:

Code: Select all

h264-decoder done: 756 frames, 0 decoder errors
sync: got 756 frames, 759 expected
sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
x265 [info]: frame I:      4, Avg QP:22.20  kb/s: 17684.90
x265 [info]: frame P:    349, Avg QP:23.43  kb/s: 7864.19
x265 [info]: frame B:   1159, Avg QP:30.45  kb/s: 1113.54
x265 [info]: Weighted P-Frames: Y:1.7% UV:0.9%
x265 [info]: consecutive B-frames: 0.3% 1.7% 4.2% 56.9% 36.8%
encoded 1512 frames, 2715.57 kb/s, Avg QP:28.81
mux: track 0, 1512 frames, 10270892 bytes, 2715.37 kbps, fifo 2048
selen
Posts: 11
Joined: Fri Nov 22, 2019 8:32 pm

Re: BOB deinterlace gives anomaly high bitrate with HB 1.3.0

Post by selen »

No one kind soul wanna help me to shed a light to the bob deinterlace problem? :(

I want to point out at this particular lines:

> HB 1.3.0 yadif/bob/detectionOff:
encoded 1512 frames, 1925.56 kb/s, Avg QP:26.47
mux: track 0, 1512 frames, 14563289 bytes, 3847.63 kbps, fifo 2048

At muxing stage there is strange doubling the bitrate, this not happens in all other 3 cases.
Deleted User 11865

Re: BOB deinterlace gives anomaly high bitrate with HB 1.3.0

Post by Deleted User 11865 »

Did you try with x264 as well?
selen
Posts: 11
Joined: Fri Nov 22, 2019 8:32 pm

Re: BOB deinterlace gives anomaly high bitrate with HB 1.3.0

Post by selen »

No, just x265. Should i check x264 too?

Perhaps it doesn't matter but in new 1.3.0 syntax of deinterlace filter is changed, now:

HB 1.3.0 yadif/default/off:
+ filters
+ Deinterlace (mode=3)

HB 1.3.0 yadif/bob/off:
+ filters
+ Deinterlace (mode=7)

In previous version was:

HB 1.2.2 yadif/default/off:
+ filters
+ avfilter (yadif='mode=send_frame')
+ yadif: mode=send_frame

HB 1.2.2 yadif/bob/off:
+ filters
+ avfilter (yadif='mode=send_field')
+ yadif: mode=send_field
Post Reply