Poor performance on Debian Sid / flatpak

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.
Post Reply
any_time
Posts: 2
Joined: Sun Dec 04, 2022 3:52 am

Poor performance on Debian Sid / flatpak

Post by any_time »

Description of problem or question:

Longtime handbrake user and huge fan, encoutering my first trouble with the program. Hope someone can help, espeically if this is an early problem that could eventually impact more Debian users.

I'm running the current Debian sid and have begun to experience very poor transcoding performance coupled with low CPU usage. On my system (an Intel 8700k CPU) I previously would get ~95 FPS rending SD content with x265/medium preset, but now average less than 30, with low CPU usage to match (~50% CPU usage on the most taxed core, ~30% on the remaining cores).

neofetch:
OS: Debian GNU/Linux bookworm/sid x86_64
,$$P' `$$$. Kernel: 6.0.0-4-amd64
',$$P ,ggs. `$$b: Uptime: 6 days, 14 hours, 11 mins
`d$$' ,$P"' . $$$ Packages: 3966 (dpkg), 16 (flatpak)
$$P d$' , $$P Shell: bash 5.2.2
$$: $$. - ,d$$' Resolution: 1920x1080, 1920x1200
$$; Y$b._ _,d$P' DE: Plasma 5.26.4
Y$$. `.`"Y$$$$P"' WM: KWin
`$$b "-.__ Theme: Breeze [Plasma], Breeze [GTK2/3]
`Y$$ Icons: [Plasma], breeze-dark [GTK2/3]
`Y$$. Terminal: konsole
`$$b. CPU: Intel i7-8700K (12) @ 4.700GHz
`Y$$b. GPU: NVIDIA GeForce GTX 1050 Ti
`"Y$b._ Memory: 4963MiB / 32021MiB

Steps to reproduce the problem (If Applicable):

All encodes suffer the same issue.



HandBrake version (e.g., 1.0.0):

1.5.1 (x86_64) (flatpak). I also tried the .deb from the current APT repository and had the same issue.


Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):

Debian sid, kernel 6.0.0-4


HandBrake Activity Log ***required*** (see How-to get an activity log)

One sample encode:

Code: Select all

[10:12:55] gtkgui: HandBrake 1.5.1 (2022112600) - Linux x86_64 - https://handbrake.fr
[10:12:55] Compile-time hardening features are enabled
[10:12:55] hb_init: starting libhb thread
[10:12:55] hb_init: starting libhb thread
[10:12:55] hb_init: starting libhb thread
[10:14:50] CPU: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
[10:14:50]  - Intel microarchitecture Kaby Lake
[10:14:50]  - logical processor count: 12
[10:14:50] Intel Quick Sync Video support: no
[10:14:50] hb_scan: path=/home/[trimmed]/B1_t00.mkv, title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image /home/[trimmed]/B1_t00.mkv
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2646: nav_get_title_list(/home/[trimmed]/B1_t00.mkv/) failed
[10:14:51] bd: not a bd - trying as a stream/file instead
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[10:14:51] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/home/[trimmed]/B1_t00.mkv':
  Metadata:
    encoder         : libmakemkv v1.17.2 (1.3.10/1.5.2) x86_64-unknown-linux-gnu
    creation_time   : 2022-12-03T14:47:21.000000Z
  Duration: 01:25:19.81, start: 0.000000, bitrate: 5698 kb/s
  Chapters:
    Chapter #0:0: start 0.066733, end 11.578233
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 11.578233, end 793.859733
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 793.859733, end 1529.594733
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 1529.594733, end 2071.135733
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 2071.135733, end 2430.494733
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 2430.494733, end 3008.572233
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 3008.572233, end 3966.529233
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 3966.529233, end 4310.372733
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 4310.372733, end 5078.139733
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 5078.139733, end 5119.814700
      Metadata:
        title           : Chapter 10
  Stream #0:0(eng): Video: mpeg2video (Main), yuv420p(tv, top first), 720x480 [SAR 8:9 DAR 4:3], 5500 kb/s, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc
    Metadata:
      BPS-eng         : 5499973
      DURATION-eng    : 01:25:19.814700000
      NUMBER_OF_FRAMES-eng: 153441
      NUMBER_OF_BYTES-eng: 3519855172
      SOURCE_ID-eng   : 0100E0
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.2 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-12-03 14:47:21
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Side data:
      cpb: bitrate max/min/avg: 5500000/0/0 buffer size: 1835008 vbv_delay: N/A
  Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 01:25:19.808000000
      NUMBER_OF_FRAMES-eng: 159994
      NUMBER_OF_BYTES-eng: 122875392
      SOURCE_ID-eng   : 0180BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.2 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-12-03 14:47:21
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[10:14:51] scan: decoding previews for title 1
[10:14:51] scan: audio 0x1: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
[10:14:51] scan: 10 previews, 720x480, 29.970 fps, autocrop = 6/6/0/20, aspect 4:3, PAR 8:9, color profile: 6-1-6, chroma location: left
[10:14:51] libhb: scan thread found 1 valid title(s)
[10:15:57] Starting work at: Sat Dec  3 10:15:57 2022

[10:15:57] 1 job(s) to process
[10:15:57] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "av_aac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "Name": "Stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 0,
                    "Seconds": 12,
                    "Ticks": 1042040
                },
                "Name": "Chapter 1"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 13,
                    "Seconds": 2,
                    "Ticks": 70405335
                },
                "Name": "Chapter 2"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 12,
                    "Seconds": 16,
                    "Ticks": 66216150
                },
                "Name": "Chapter 3"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 9,
                    "Seconds": 2,
                    "Ticks": 48738690
                },
                "Name": "Chapter 4"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 59,
                    "Ticks": 32342310
                },
                "Name": "Chapter 5"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 9,
                    "Seconds": 38,
                    "Ticks": 52026975
                },
                "Name": "Chapter 6"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 15,
                    "Seconds": 58,
                    "Ticks": 86216130
                },
                "Name": "Chapter 7"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 44,
                    "Ticks": 30945915
                },
                "Name": "Chapter 8"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 12,
                    "Seconds": 48,
                    "Ticks": 69099030
                },
                "Name": "Chapter 9"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 0,
                    "Seconds": 42,
                    "Ticks": 3750685
                },
                "Name": "Chapter 10"
            }
        ],
        "ChapterMarkers": true,
        "File": "/tmp/hb.2/live01",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "mkv"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 1
                }
            },
            {
                "ID": 13,
                "Settings": {
                    "crop-bottom": 6,
                    "crop-left": 0,
                    "crop-right": 20,
                    "crop-top": 4,
                    "height": 470,
                    "width": 700
                }
            }
        ]
    },
    "Metadata": {
        "Name": "[trimmed]",
        "ReleaseDate": "1978"
    },
    "PAR": {
        "Den": 9,
        "Num": 8
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "/home/[trimmed]/B1_t00.mkv",
        "Range": {
            "End": 1350000,
            "SeekPoints": 10,
            "Start": 2,
            "Type": "preview"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ChromaLocation": 1,
        "ColorInputFormat": 0,
        "ColorMatrix": 6,
        "ColorOutputFormat": 0,
        "ColorPrimaries": 6,
        "ColorRange": 1,
        "ColorTransfer": 1,
        "Encoder": "x265_10bit",
        "Level": "auto",
        "Options": "",
        "Preset": "medium",
        "Profile": "auto",
        "QSV": {
            "AdapterIndex": 0,
            "AsyncDepth": 0,
            "Decode": false
        },
        "Quality": 17.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[10:15:57] CPU: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
[10:15:57]  - Intel microarchitecture Kaby Lake
[10:15:57]  - logical processor count: 12
[10:15:57] Intel Quick Sync Video support: no
[10:15:57] hb_scan: path=/home/[trimmed]/B1_t00.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image /home/[trimmed]/B1_t00.mkv
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2646: nav_get_title_list(/home/[trimmed]/B1_t00.mkv/) failed
[10:15:57] bd: not a bd - trying as a stream/file instead
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[10:15:57] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/home/[trimmed]/B1_t00.mkv':
  Metadata:
    encoder         : libmakemkv v1.17.2 (1.3.10/1.5.2) x86_64-unknown-linux-gnu
    creation_time   : 2022-12-03T14:47:21.000000Z
  Duration: 01:25:19.81, start: 0.000000, bitrate: 5698 kb/s
  Chapters:
    Chapter #0:0: start 0.066733, end 11.578233
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 11.578233, end 793.859733
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 793.859733, end 1529.594733
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 1529.594733, end 2071.135733
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 2071.135733, end 2430.494733
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 2430.494733, end 3008.572233
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 3008.572233, end 3966.529233
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 3966.529233, end 4310.372733
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 4310.372733, end 5078.139733
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 5078.139733, end 5119.814700
      Metadata:
        title           : Chapter 10
  Stream #0:0(eng): Video: mpeg2video (Main), yuv420p(tv, top first), 720x480 [SAR 8:9 DAR 4:3], 5500 kb/s, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc
    Metadata:
      BPS-eng         : 5499973
      DURATION-eng    : 01:25:19.814700000
      NUMBER_OF_FRAMES-eng: 153441
      NUMBER_OF_BYTES-eng: 3519855172
      SOURCE_ID-eng   : 0100E0
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.2 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-12-03 14:47:21
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Side data:
      cpb: bitrate max/min/avg: 5500000/0/0 buffer size: 1835008 vbv_delay: N/A
  Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 01:25:19.808000000
      NUMBER_OF_FRAMES-eng: 159994
      NUMBER_OF_BYTES-eng: 122875392
      SOURCE_ID-eng   : 0180BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.2 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-12-03 14:47:21
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[10:15:57] scan: decoding previews for title 1
[10:15:57] scan: audio 0x1: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
[10:15:57] scan: 10 previews, 720x480, 29.970 fps, autocrop = 6/6/0/20, aspect 4:3, PAR 8:9, color profile: 6-1-6, chroma location: left
[10:15:57] libhb: scan thread found 1 valid title(s)
[10:15:57] Starting Task: Encoding Pass
[10:15:57] job configuration:
[10:15:57]  * source
[10:15:57]    + /home/[trimmed]/B1_t00.mkv
[10:15:57]    + title 1, start 00:00:0.00 stop 00:00:15.00
[10:15:57]    + container: matroska,webm
[10:15:57]    + data rate: 5698 kbps
[10:15:57]  * destination
[10:15:57]    + /tmp/hb.2/live01
[10:15:57]    + container: Matroska (libavformat)
[10:15:57]      + chapter markers
[10:15:57]  * video track
[10:15:57]    + decoder: mpeg2video 8-bit (yuv420p)
[10:15:57]      + bitrate 5500 kbps
[10:15:57]    + filters
[10:15:57]      + Framerate Shaper (mode=1)
[10:15:57]        + frame rate: 29.970 fps -> constant 29.970 fps
[10:15:57]      + Crop and Scale (width=700:height=470:crop-top=4:crop-bottom=6:crop-left=0:crop-right=20)
[10:15:57]        + source: 720 * 480, crop (4/6/0/20): 700 * 470, scale: 700 * 470
[10:15:57]    + Output geometry
[10:15:57]      + storage dimensions: 700 x 470
[10:15:57]      + pixel aspect ratio: 8 : 9
[10:15:57]      + display dimensions: 622 x 470
[10:15:57]    + encoder: H.265 10-bit (libx265)
[10:15:57]      + preset:  medium
[10:15:57]      + profile: auto
[10:15:57]      + level:   auto
[10:15:57]      + quality: 17.00 (RF)
[10:15:57]      + color profile: 6-1-6
[10:15:57]      + chroma location: left
[10:15:57]  * audio track 1
[10:15:57]    + name: Stereo
[10:15:57]    + decoder: English (AC3) (2.0 ch) (192 kbps) (track 1, id 0x1)
[10:15:57]      + bitrate: 192 kbps, samplerate: 48000 Hz
[10:15:57]    + mixdown: Stereo
[10:15:57]    + encoder: AAC (libavcodec)
[10:15:57]      + bitrate: 160 kbps, samplerate: 48000 Hz
[10:15:57] sync: expecting 479 video frames
x265 [info]: HEVC encoder version 3.5+1-f0c1022b6
x265 [info]: build info [Linux][GCC 12.1.0][64 bit] 10bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [info]: Main 10 profile, Level-3 (Main tier)
x265 [info]: Thread pool created using 12 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 3 / wpp(8 rows)
x265 [warning]: Source height < 720p; disabling lookahead-slices
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 3
x265 [info]: Keyframe min / max / scenecut / bias  : 30 / 300 / 40 / 5.00 
x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 3 / off / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-17.0 / 0.60
x265 [info]: tools: rd=3 psy-rd=2.00 early-skip rskip mode=1 signhide tmvp
x265 [info]: tools: b-intra strong-intra-smoothing deblock sao
[10:15:57] sync: first pts video is 0
[10:15:57] sync: "Chapter 2" (2) at frame 3 time 6006
[10:15:57] sync: first pts audio 0x1 is 8190
[10:16:11] sync: reached audio 0x1 pts 1350270, exiting early
[10:16:11] sync: reached video pts 1351350, exiting early
[10:16:14] work: average encoding speed for job is 30.815109 fps
[10:16:14] vfr: 450 frames output, 0 dropped and 0 duped for CFR/PFR
[10:16:14] vfr: lost time: 0 (0 frames)
[10:16:14] vfr: gained time: 0 (0 frames) (0 not accounted for)
[10:16:14] ac3-decoder done: 8457 frames, 0 decoder errors
[10:16:14] mpeg2video-decoder done: 8099 frames, 0 decoder errors
[10:16:14] sync: got 450 frames, 479 expected
[10:16:14] sync: framerate min 29.970 fps, max 29.970 fps, avg 29.970 fps
x265 [info]: frame I:      3, Avg QP:18.17  kb/s: 8465.69 
x265 [info]: frame P:     90, Avg QP:18.48  kb/s: 6121.86 
x265 [info]: frame B:    357, Avg QP:22.55  kb/s: 2060.72 
x265 [info]: Weighted P-Frames: Y:28.9% UV:17.8%
x265 [info]: consecutive B-frames: 3.2% 0.0% 1.1% 1.1% 94.6% 

encoded 450 frames in 17.22s (26.13 fps), 2915.65 kb/s, Avg QP:21.70
[10:16:14] mux: track 0, 450 frames, 5474103 bytes, 2910.14 kbps, fifo 512
[10:16:14] mux: track 1, 700 frames, 299369 bytes, 159.15 kbps, fifo 1024
[10:16:14] Finished work at: Sat Dec  3 10:16:14 2022

rollin_eng
Veteran User
Posts: 4836
Joined: Wed May 04, 2011 11:06 pm

Re: Poor performance on Debian Sid / flatpak

Post by rollin_eng »

Do you have any logs from your fast encode?

Without them it’s hard to see what has changed.
sqwuade
Posts: 2
Joined: Fri Nov 27, 2015 12:17 pm

Re: Poor performance on Debian Sid / flatpak

Post by sqwuade »

Did you made any changes to the system before the issue arose? Even updates could affect it. Any changes made at all to the system?
mduell
Veteran User
Posts: 8182
Joined: Sat Apr 21, 2007 8:54 pm

Re: Poor performance on Debian Sid / flatpak

Post by mduell »

A log from the prior, faster, encodes would be very useful to see what settings you may have changed.
Deleted User 11865

Re: Poor performance on Debian Sid / flatpak

Post by Deleted User 11865 »

FWIW, given the resolution and settings used, less than 30 fps is indeed too slow for something like a 8700K (quick tests gave me 95 fps on a laptop with i7-9750H). The main issue with the provided log is, it's only 450 frames, too short to know if it's really a fluke or not.
any_time
Posts: 2
Joined: Sun Dec 04, 2022 3:52 am

Re: Poor performance on Debian Sid / flatpak

Post by any_time »

Sorry for the delayed reply.

Unfortunately I do not have any activity logs saved from when performance was normal. I encode movies regularly, so I've done several hundred on this system before this issue started and a few dozen after. Copied below is a log from a longer encode, as well as a partial htop (had to trim some of it for privacy). ghb starts all 12 expected threads, but each sticks at around 50% CPU usage.

https://freeimage.host/i/HoytQXs

Code: Select all

[21:05:13] gtkgui: HandBrake 1.5.1 (2022112600) - Linux x86_64 - https://handbrake.fr
[21:05:13] Compile-time hardening features are enabled
[21:05:13] hb_init: starting libhb thread
[21:05:13] hb_init: starting libhb thread
[21:05:13] hb_init: starting libhb thread
[21:05:24] CPU: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
[21:05:24]  - Intel microarchitecture Kaby Lake
[21:05:24]  - logical processor count: 12
[21:05:24] Intel Quick Sync Video support: no
[21:05:24] hb_scan: path=/home/[path] title_index=0
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2646: nav_get_title_list(/home/[path] failed
[21:05:24] bd: not a bd - trying as a stream/file instead
libdvdread: Couldn't find device name.
libdvdread: DVDOpenFilePath:findDVDFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[21:05:24] dvd: not a dvd - trying as a stream/file instead
[21:05:24] batch: scanning /home/[path]/A1_t00.mkv
Input #0, matroska,webm, from '/home/[path]/A1_t00.mkv':
  Metadata:
    encoder         : libmakemkv v1.17.2 (1.3.10/1.5.2) x86_64-unknown-linux-gnu
    creation_time   : 2022-12-17T02:02:50.000000Z
  Duration: 01:20:31.16, start: 0.000000, bitrate: 6497 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 1048.047000
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 1048.047000, end 2114.112000
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 2114.112000, end 2782.780000
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 2782.780000, end 3415.412000
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 3415.412000, end 4064.060000
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 4064.060000, end 4576.572000
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 4576.572000, end 4831.159667
      Metadata:
        title           : Chapter 07
  Stream #0:0(eng): Video: mpeg2video (Main), yuv420p(tv, bt470bg/bt470m/bt470m, bottom first), 720x480 [SAR 8:9 DAR 4:3], 6300 kb/s, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc
    Metadata:
      BPS-eng         : 6299953
      DURATION-eng    : 01:20:31.159666666
      NUMBER_OF_FRAMES-eng: 144790
      NUMBER_OF_BYTES-eng: 3804509619
      SOURCE_ID-eng   : 0100E0
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.2 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-12-17 02:02:50
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Side data:
      cpb: bitrate max/min/avg: 6300000/0/0 buffer size: 1835008 vbv_delay: N/A
  Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 01:20:31.104000000
      NUMBER_OF_FRAMES-eng: 150972
      NUMBER_OF_BYTES-eng: 115946496
      SOURCE_ID-eng   : 0180BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.2 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-12-17 02:02:50
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[21:05:24] scan: decoding previews for title 1 (/home/[path]/A1_t00.mkv)
[21:05:24] scan: audio 0x1: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
[21:05:24] scan: 10 previews, 720x480, 29.970 fps, autocrop = 0/2/4/8, aspect 4:3, PAR 8:9, color profile: 4-4-5, chroma location: left
[21:05:24] libhb: scan thread found 1 valid title(s)
[21:05:24] decomb: deinterlaced 1 | blended 0 | unfiltered 0 | total 1
[21:05:24] decomb: deinterlaced 1 | blended 0 | unfiltered 0 | total 1
[21:05:47] decomb: deinterlaced 1 | blended 0 | unfiltered 0 | total 1
[21:05:50] decomb: deinterlaced 1 | blended 0 | unfiltered 0 | total 1
[21:06:05] gtkgui: Modified Custom Preset: /Matroska/H265 10-bit
[21:06:05] Starting work at: Fri Dec 16 21:06:05 2022

[21:06:05] 1 job(s) to process
[21:06:05] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "av_aac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "Name": "Stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 17,
                    "Seconds": 28,
                    "Ticks": 94324230
                },
                "Name": "Chapter 1"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 17,
                    "Seconds": 46,
                    "Ticks": 95945850
                },
                "Name": "Chapter 2"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 11,
                    "Seconds": 9,
                    "Ticks": 60180120
                },
                "Name": "Chapter 3"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 10,
                    "Seconds": 33,
                    "Ticks": 56936880
                },
                "Name": "Chapter 4"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 10,
                    "Seconds": 49,
                    "Ticks": 58378320
                },
                "Name": "Chapter 5"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 8,
                    "Seconds": 33,
                    "Ticks": 46126080
                },
                "Name": "Chapter 6"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 15,
                    "Ticks": 22912830
                },
                "Name": "Chapter 7"
            }
        ],
        "ChapterMarkers": true,
        "File": "/home/[path].mkv",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "mkv"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 3,
                "Settings": {
                    "block-height": "16",
                    "block-thresh": "40",
                    "block-width": "16",
                    "filter-mode": "2",
                    "mode": "3",
                    "motion-thresh": "1",
                    "spatial-metric": "2",
                    "spatial-thresh": "1"
                }
            },
            {
                "ID": 4,
                "Settings": {
                    "mode": "15"
                }
            },
            {
                "ID": 6,
                "Settings": {
                    "mode": 1
                }
            },
            {
                "ID": 13,
                "Settings": {
                    "crop-bottom": 2,
                    "crop-left": 4,
                    "crop-right": 8,
                    "crop-top": 0,
                    "height": 478,
                    "width": 708
                }
            }
        ]
    },
    "Metadata": {
        "Name": "[name]",
        "ReleaseDate": "1985"
    },
    "PAR": {
        "Den": 9,
        "Num": 8
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "/home/[path]/A1_t00.mkv",
        "Range": {
            "End": 7,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ChromaLocation": 1,
        "ColorInputFormat": 0,
        "ColorMatrix": 5,
        "ColorOutputFormat": 0,
        "ColorPrimaries": 4,
        "ColorRange": 1,
        "ColorTransfer": 4,
        "Encoder": "x265_10bit",
        "Level": "auto",
        "Options": "",
        "Preset": "medium",
        "Profile": "auto",
        "QSV": {
            "AdapterIndex": 0,
            "AsyncDepth": 0,
            "Decode": false
        },
        "Quality": 18.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[21:06:05] CPU: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
[21:06:05]  - Intel microarchitecture Kaby Lake
[21:06:05]  - logical processor count: 12
[21:06:05] Intel Quick Sync Video support: no
[21:06:05] hb_scan: path=/home/[path]/A1_t00.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image /home/[path]/A1_t00.mkv
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2646: nav_get_title_list(/home/[path]/A1_t00.mkv/) failed
[21:06:05] bd: not a bd - trying as a stream/file instead
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[21:06:05] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/home/[path]/A1_t00.mkv':
  Metadata:
    encoder         : libmakemkv v1.17.2 (1.3.10/1.5.2) x86_64-unknown-linux-gnu
    creation_time   : 2022-12-17T02:02:50.000000Z
  Duration: 01:20:31.16, start: 0.000000, bitrate: 6497 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 1048.047000
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 1048.047000, end 2114.112000
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 2114.112000, end 2782.780000
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 2782.780000, end 3415.412000
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 3415.412000, end 4064.060000
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 4064.060000, end 4576.572000
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 4576.572000, end 4831.159667
      Metadata:
        title           : Chapter 07
  Stream #0:0(eng): Video: mpeg2video (Main), yuv420p(tv, bt470bg/bt470m/bt470m, bottom first), 720x480 [SAR 8:9 DAR 4:3], 6300 kb/s, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc
    Metadata:
      BPS-eng         : 6299953
      DURATION-eng    : 01:20:31.159666666
      NUMBER_OF_FRAMES-eng: 144790
      NUMBER_OF_BYTES-eng: 3804509619
      SOURCE_ID-eng   : 0100E0
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.2 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-12-17 02:02:50
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Side data:
      cpb: bitrate max/min/avg: 6300000/0/0 buffer size: 1835008 vbv_delay: N/A
  Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 01:20:31.104000000
      NUMBER_OF_FRAMES-eng: 150972
      NUMBER_OF_BYTES-eng: 115946496
      SOURCE_ID-eng   : 0180BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.2 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2022-12-17 02:02:50
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[21:06:05] scan: decoding previews for title 1
[21:06:05] scan: audio 0x1: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
[21:06:05] scan: 10 previews, 720x480, 29.970 fps, autocrop = 0/2/4/8, aspect 4:3, PAR 8:9, color profile: 4-4-5, chroma location: left
[21:06:05] libhb: scan thread found 1 valid title(s)
[21:06:05] Starting Task: Encoding Pass
[21:06:05] job configuration:
[21:06:05]  * source
[21:06:05]    + /home/[path]/A1_t00.mkv
[21:06:05]    + title 1, chapter(s) 1 to 7
[21:06:05]    + container: matroska,webm
[21:06:05]    + data rate: 6497 kbps
[21:06:05]  * destination
[21:06:05]    + /home/[path].mkv
[21:06:05]    + container: Matroska (libavformat)
[21:06:05]      + chapter markers
[21:06:05]  * video track
[21:06:05]    + decoder: mpeg2video 8-bit (yuv420p)
[21:06:05]      + bitrate 6300 kbps
[21:06:05]    + filters
[21:06:05]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[21:06:05]      + Decomb (mode=47)
[21:06:05]      + Framerate Shaper (mode=1)
[21:06:05]        + frame rate: 29.970 fps -> constant 29.970 fps
[21:06:05]      + Crop and Scale (width=708:height=478:crop-top=0:crop-bottom=2:crop-left=4:crop-right=8)
[21:06:05]        + source: 720 * 480, crop (0/2/4/8): 708 * 478, scale: 708 * 478
[21:06:05]    + Output geometry
[21:06:05]      + storage dimensions: 708 x 478
[21:06:05]      + pixel aspect ratio: 8 : 9
[21:06:05]      + display dimensions: 629 x 478
[21:06:05]    + encoder: H.265 10-bit (libx265)
[21:06:05]      + preset:  medium
[21:06:05]      + profile: auto
[21:06:05]      + level:   auto
[21:06:05]      + quality: 18.00 (RF)
[21:06:05]      + color profile: 4-4-5
[21:06:05]      + chroma location: left
[21:06:05]  * audio track 1
[21:06:05]    + name: Stereo
[21:06:05]    + decoder: English (AC3) (2.0 ch) (192 kbps) (track 1, id 0x1)
[21:06:05]      + bitrate: 192 kbps, samplerate: 48000 Hz
[21:06:05]    + mixdown: Stereo
[21:06:05]    + encoder: AAC (libavcodec)
[21:06:05]      + bitrate: 160 kbps, samplerate: 48000 Hz
[21:06:05] sync: expecting 144789 video frames
x265 [info]: HEVC encoder version 3.5+1-f0c1022b6
x265 [info]: build info [Linux][GCC 12.1.0][64 bit] 10bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [info]: Main 10 profile, Level-3 (Main tier)
x265 [info]: Thread pool created using 12 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 3 / wpp(8 rows)
x265 [warning]: Source height < 720p; disabling lookahead-slices
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 3
x265 [info]: Keyframe min / max / scenecut / bias  : 30 / 300 / 40 / 5.00 
x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 3 / off / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-18.0 / 0.60
x265 [info]: tools: rd=3 psy-rd=2.00 early-skip rskip mode=1 signhide tmvp
x265 [info]: tools: b-intra strong-intra-smoothing deblock sao
[21:06:05] sync: first pts video is 0
[21:06:05] sync: "Chapter 1" (1) at frame 1 time 0
[21:06:05] sync: first pts audio 0x1 is 0
[21:35:54] sync: "Chapter 2" (2) at frame 31411 time 94324230
[22:05:35] sync: "Chapter 3" (3) at frame 63361 time 190270080
[22:27:27] sync: "Chapter 4" (4) at frame 83401 time 250450200
[22:48:21] sync: "Chapter 5" (5) at frame 102361 time 307387080
[23:09:07] sync: "Chapter 6" (6) at frame 121801 time 365765400
[23:25:01] sync: "Chapter 7" (7) at frame 137161 time 411891480
[23:33:53] reader: done. 1 scr changes
[23:33:54] work: average encoding speed for job is 16.319006 fps
[23:33:54] comb detect: heavy 66742 | light 24459 | uncombed 53589 | total 144790
[23:33:54] decomb: deinterlaced 66742 | blended 24459 | unfiltered 53589 | total 144790
[23:33:54] vfr: 144790 frames output, 0 dropped and 0 duped for CFR/PFR
[23:33:54] vfr: lost time: 0 (0 frames)
[23:33:54] vfr: gained time: 0 (0 frames) (0 not accounted for)
[23:33:54] ac3-decoder done: 150972 frames, 0 decoder errors
[23:33:54] mpeg2video-decoder done: 144790 frames, 0 decoder errors
[23:33:54] sync: got 144790 frames, 144789 expected
[23:33:54] sync: framerate min 29.970 fps, max 29.970 fps, avg 29.970 fps
x265 [info]: frame I:    832, Avg QP:17.32  kb/s: 6778.64 
x265 [info]: frame P:  29703, Avg QP:18.94  kb/s: 3730.86 
x265 [info]: frame B: 114255, Avg QP:23.83  kb/s: 882.66  
x265 [info]: Weighted P-Frames: Y:14.0% UV:6.7%
x265 [info]: consecutive B-frames: 3.0% 1.1% 2.3% 5.9% 87.7% 

encoded 144790 frames in 8869.31s (16.32 fps), 1500.84 kb/s, Avg QP:22.79
[23:33:55] mux: track 0, 144790 frames, 906927119 bytes, 1501.79 kbps, fifo 4096
[23:33:55] mux: track 1, 226459 frames, 96881324 bytes, 160.43 kbps, fifo 8192
[23:33:55] Finished work at: Fri Dec 16 23:33:55 2022

[23:33:55] libhb: work result = 0
Deleted User 11865

Re: Poor performance on Debian Sid / flatpak

Post by Deleted User 11865 »

Your previous example did not have Comb Detect and Decomb enabled. Given the results, they are clearly required for your source, but they do have a performance impact that's not insignificant and could be a bottleneck here. Then again you got an average 16 fps, so we're not around 30 which I gather is what you'd get without Decomb.

TBH I don't know what could be causing this (it does seem like it's not heat-related). Are you maybe encoding to/from a slow network drive or something? Just guessing here, really.
Post Reply