Handbrake doesn't start to encode.

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
unknown User
Posts: 33
Joined: Sat Mar 18, 2017 10:28 am

Handbrake doesn't start to encode.

Post by unknown User »

That is what's shown in the activity window. Error appears since I've updated to Handbrake 1.3.0.

encx265: bad argument 'level-idc=5.1'
Failure to initialise thread 'H.265/HEVC encoder (libx265)'
sync: got 0 frames, 140106 expected

Switching level to "auto" and the encoding starts as usual. But why not with level 5.1 choosen? How can I ensure that compatibility is given for playback via raspberry pi 4?
User avatar
Ritsuka
HandBrake Team
Posts: 1650
Joined: Fri Jan 12, 2007 11:29 am

Re: Handbrake doesn't start to encode.

Post by Ritsuka »

Because your other settings were incompatible with level 5.1
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: Handbrake doesn't start to encode.

Post by BradleyS »

HandBrake will not automatically sanitize your x265 settings to be compatible with a chosen level. If you provide the full activity log perhaps we can recommend what settings to adjust.
unknown User
Posts: 33
Joined: Sat Mar 18, 2017 10:28 am

Re: Handbrake doesn't start to encode.

Post by unknown User »

Ritsuka wrote: Mon Nov 18, 2019 3:43 pm Because your other settings were incompatible with level 5.1
Suddenly without any change of my settings? :shock:
BradleyS wrote: Mon Nov 18, 2019 6:16 pm HandBrake will not automatically sanitize your x265 settings to be compatible with a chosen level. If you provide the full activity log perhaps we can recommend what settings to adjust.
That's very kind. I hope you can find the wrong adjustment. Here is the log:
https://pastebin.com/HHr6cMsy

Thanks in advance.
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: Handbrake doesn't start to encode.

Post by BradleyS »

Level was always auto in 1.2.x. Setting to auto here should resolve your issue.

There may be an additional bug; I'll contact our Linux developer.
unknown User
Posts: 33
Joined: Sat Mar 18, 2017 10:28 am

Re: Handbrake doesn't start to encode.

Post by unknown User »

Ok, lets see what they say. Thank you so far.
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: Handbrake doesn't start to encode.

Post by BradleyS »

Seems to work fine here, not sure whether something's being set incorrectly or not. It looks like your settings should be compliant.

Anyway, unlike for H.264, pretty much all H.265 decoders we've tested handle any content up to 4K with level set to auto, so use auto unless you run into a specific issue.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: Handbrake doesn't start to encode.

Post by JohnAStebbins »

I attempted to reproduce the failure using the same x265 settings and same resolution video. I did not get the error you are seeing. So I'm not sure what is causing the problem. Here's my log in case someone else can spot something I'm missing.

Code: Select all

Handbrake Version: 1.3.0 (2019111800)
[13:41:26] gtkgui: Modified Custom Preset: /My Presets/My Fast
[13:41:26] thread 7f8077fff700 started ("work")
[13:41:26] Starting work at: Mon Nov 18 13:41:26 2019

[13:41:26] 1 job(s) to process
[13:41:26] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 0,
                "DRC": 0.0,
                "Encoder": "copy:dts",
                "Mixdown": "none",
                "PresetEncoder": "copy",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:mp3",
            "copy:aac",
            "copy:ac3",
            "copy:dts",
            "copy:dtshd",
            "copy:eac3",
            "copy:flac",
            "copy:truehd"
        ],
        "FallbackEncoder": "ac3"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 45,
                    "Ticks": 20213942
                },
                "Name": "Chapter 1"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 4,
                    "Ticks": 16520254
                },
                "Name": "Chapter 2"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 40,
                    "Ticks": 14410646
                },
                "Name": "Chapter 3"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 1,
                    "Ticks": 16280014
                },
                "Name": "Chapter 4"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 7,
                    "Ticks": 22240970
                },
                "Name": "Chapter 5"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 33,
                    "Ticks": 19196676
                },
                "Name": "Chapter 6"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 24,
                    "Ticks": 23802530
                },
                "Name": "Chapter 7"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 35,
                    "Ticks": 24748474
                },
                "Name": "Chapter 8"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 0,
                    "Ticks": 27004476
                },
                "Name": "Chapter 9"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 21,
                    "Ticks": 18096830
                },
                "Name": "Chapter 10"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 19,
                    "Ticks": 17912894
                },
                "Name": "Chapter 11"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 23,
                    "Ticks": 23633610
                },
                "Name": "Chapter 12"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 51,
                    "Ticks": 31632852
                },
                "Name": "Chapter 13"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 7,
                    "Ticks": 22248476
                },
                "Name": "Chapter 14"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 35,
                    "Ticks": 24733458
                },
                "Name": "Chapter 15"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 33,
                    "Ticks": 24602078
                },
                "Name": "Chapter 16"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 15,
                    "Ticks": 12192180
                },
                "Name": "Chapter 17"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 35,
                    "Ticks": 13967704
                },
                "Name": "Chapter 18"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 53,
                    "Ticks": 15544278
                },
                "Name": "Chapter 19"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 44,
                    "Ticks": 25578054
                },
                "Name": "Chapter 20"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 32,
                    "Ticks": 13659896
                },
                "Name": "Chapter 21"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 30,
                    "Ticks": 13524760
                },
                "Name": "Chapter 22"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 30,
                    "Ticks": 24343070
                },
                "Name": "Chapter 23"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 48,
                    "Ticks": 20548028
                },
                "Name": "Chapter 24"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 38,
                    "Ticks": 14226712
                },
                "Name": "Chapter 25"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 19,
                    "Ticks": 23340818
                },
                "Name": "Chapter 26"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 24,
                    "Ticks": 23749976
                },
                "Name": "Chapter 27"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 0,
                    "Seconds": 0,
                    "Ticks": 22522
                },
                "Name": "Chapter 28"
            }
        ],
        "ChapterMarkers": true,
        "File": "/home/jstebbins/Videos/QUEEN_OF_THE_DAMMED (3).mkv",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "mkv"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 12,
                "Settings": {
                    "crop-bottom": 20,
                    "crop-left": 2,
                    "crop-right": 0,
                    "crop-top": 20,
                    "height": 1040,
                    "width": 1918
                }
            }
        ]
    },
    "Metadata": {
        "Name": "Queen of the Damned"
    },
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "/home/jstebbins/Videos/Samples/BD/QUEEN_OF_THE_DAMMED",
        "Range": {
            "End": 28,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 28
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorFormat": 0,
        "ColorMatrix": 1,
        "ColorPrimaries": 1,
        "ColorRange": 0,
        "ColorTransfer": 1,
        "Encoder": "x265",
        "Level": "5.1",
        "Options": "",
        "Preset": "slow",
        "Profile": "main",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 20.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[13:41:26] CPU: Intel(R) Core(TM) i7-3630QM CPU @ 2.40GHz
[13:41:26]  - Intel microarchitecture Ivy Bridge
[13:41:26]  - logical processor count: 8
[13:41:26] hb_scan: path=/home/jstebbins/Videos/Samples/BD/QUEEN_OF_THE_DAMMED, title_index=28
[13:41:26] thread 7f8096447700 started ("scan")
[13:41:26] scan: BD has 79 title(s)
[13:41:26] bd: scanning title 28
[13:41:26] bd: playlist 00100.MPLS
[13:41:26] bd: duration is 01:41:28 (6088624 ms)
[13:41:26] bd:		00093.M2TS -- Duration: 01:41:28
[13:41:26] bd: video id=0x1011, stream type=H.264, format 1080p
[13:41:26] bd: aspect = 16:9
[13:41:26] bd: audio id=0x711100, lang=English (DTS), 3cc=eng
[13:41:26] bd: audio id=0x1100, lang=English (DTS-HD MA), 3cc=eng
[13:41:26] bd: audio id=0x1101, lang=Francais (AC3), 3cc=fra
[13:41:26] bd: audio id=0x1102, lang=Deutsch (AC3), 3cc=deu
[13:41:26] bd: audio id=0x1103, lang=italiano (AC3), 3cc=ita
[13:41:26] bd: audio id=0x1104, lang=español (AC3), 3cc=spa
[13:41:26] bd: audio id=0x1105, lang=español (AC3), 3cc=spa
[13:41:26] bd: audio id=0x1107, lang=English (AC3), 3cc=eng
[13:41:26] bd: subtitle id=0x1201, lang=English [PGS], 3cc=eng
[13:41:26] bd: subtitle id=0x1202, lang=Francais [PGS], 3cc=fra
[13:41:26] bd: subtitle id=0x1203, lang=Deutsch [PGS], 3cc=deu
[13:41:26] bd: subtitle id=0x1204, lang=italiano [PGS], 3cc=ita
[13:41:26] bd: subtitle id=0x1205, lang=español [PGS], 3cc=spa
[13:41:26] bd: subtitle id=0x1206, lang=Nederlands [PGS], 3cc=nld
[13:41:26] bd: subtitle id=0x1207, lang=español [PGS], 3cc=spa
[13:41:26] bd: subtitle id=0x1208, lang=dansk [PGS], 3cc=dan
[13:41:26] bd: subtitle id=0x1209, lang=suomi [PGS], 3cc=fin
[13:41:26] bd: subtitle id=0x120a, lang=norsk [PGS], 3cc=nor
[13:41:26] bd: subtitle id=0x120b, lang=svenska [PGS], 3cc=swe
[13:41:26] bd: chap 1, 224599 ms
[13:41:26] bd: chap 2, 183558 ms
[13:41:26] bd: chap 3, 160118 ms
[13:41:26] bd: chap 4, 180889 ms
[13:41:26] bd: chap 5, 247121 ms
[13:41:26] bd: chap 6, 213296 ms
[13:41:26] bd: chap 7, 264472 ms
[13:41:26] bd: chap 8, 274983 ms
[13:41:26] bd: chap 9, 300049 ms
[13:41:26] bd: chap 10, 201075 ms
[13:41:26] bd: chap 11, 199032 ms
[13:41:26] bd: chap 12, 262595 ms
[13:41:26] bd: chap 13, 351476 ms
[13:41:26] bd: chap 14, 247205 ms
[13:41:26] bd: chap 15, 274816 ms
[13:41:26] bd: chap 16, 273356 ms
[13:41:26] bd: chap 17, 135468 ms
[13:41:26] bd: chap 18, 155196 ms
[13:41:26] bd: chap 19, 172714 ms
[13:41:26] bd: chap 20, 284200 ms
[13:41:26] bd: chap 21, 151776 ms
[13:41:26] bd: chap 22, 150275 ms
[13:41:26] bd: chap 23, 270478 ms
[13:41:26] bd: chap 24, 228311 ms
[13:41:26] bd: chap 25, 158074 ms
[13:41:26] bd: chap 26, 259342 ms
[13:41:26] bd: chap 27, 263888 ms
[13:41:26] bd: chap 28, 250 ms
[13:41:26] bd: title 28 has 28 chapters
[13:41:26] scan: decoding previews for title 28
[13:41:26] scan: title angle(s) 1
[13:41:26] scan: preview 1
[13:41:26] fifo_close: trashing 0 buffer(s)
[13:41:26] scan: audio 0x711100: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)
[13:41:26] fifo_close: trashing 0 buffer(s)
[13:41:26] scan: audio 0x1100: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[13:41:26] fifo_close: trashing 0 buffer(s)
[13:41:26] scan: audio 0x1105: ac3, rate=48000Hz, bitrate=192000 español (AC3) (2.0 ch) (Dolby Surround) (192 kbps)
[13:41:26] fifo_close: trashing 0 buffer(s)
[13:41:26] scan: audio 0x1107: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (Dolby Surround) (192 kbps)
[13:41:26] fifo_close: trashing 0 buffer(s)
[13:41:26] scan: audio 0x1101: ac3, rate=48000Hz, bitrate=640000 Francais (AC3) (5.1 ch) (640 kbps)
[13:41:26] fifo_close: trashing 0 buffer(s)
[13:41:26] scan: audio 0x1102: ac3, rate=48000Hz, bitrate=640000 Deutsch (AC3) (5.1 ch) (640 kbps)
[13:41:26] fifo_close: trashing 0 buffer(s)
[13:41:26] scan: audio 0x1103: ac3, rate=48000Hz, bitrate=640000 italiano (AC3) (5.1 ch) (640 kbps)
[13:41:26] fifo_close: trashing 0 buffer(s)
[13:41:26] scan: audio 0x1104: ac3, rate=48000Hz, bitrate=640000 español (AC3) (5.1 ch) (640 kbps)
[13:41:26] scan: preview 2
[13:41:26] scan: preview 3
[13:41:26] scan: preview 4
[13:41:26] scan: preview 5
[13:41:26] scan: preview 6
[13:41:26] scan: preview 7
[13:41:26] scan: preview 8
[13:41:27] scan: preview 9
[13:41:27] scan: preview 10
[13:41:27] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 140/140/0/0, aspect 16:9, PAR 1:1
[13:41:27] stream: 6 good frames, 0 errors (0%)
[13:41:27] Freed 6 buffers of size 1024
[13:41:27] Freed 13 buffers of size 4096
[13:41:27] Freed 7 buffers of size 8192
[13:41:27] Freed 6 buffers of size 16384
[13:41:27] Freed 1 buffers of size 131072
[13:41:27] Freed 1 buffers of size 262144
[13:41:27] Freed 2 buffers of size 524288
[13:41:27] Freed 2 buffers of size 4194304
[13:41:27] Freed 1 buffers of size 8388608
[13:41:27] Allocated 18434048 bytes of buffers on this pass and Freed 18434048 bytes, 0 bytes leaked
[13:41:27] thread 7f8096447700 exited ("scan")
[13:41:27] thread 7f8096447700 joined ("scan")
[13:41:27] libhb: scan thread found 1 valid title(s)
[13:41:27] Starting Task: Encoding Pass
[13:41:27] Skipping vfr filter
[13:41:27] job configuration:
[13:41:27]  * source
[13:41:27]    + /home/jstebbins/Videos/Samples/BD/QUEEN_OF_THE_DAMMED
[13:41:27]    + title 28, chapter(s) 1 to 28
[13:41:27]  * destination
[13:41:27]    + /home/jstebbins/Videos/QUEEN_OF_THE_DAMMED (3).mkv
[13:41:27]    + container: Matroska (libavformat)
[13:41:27]      + chapter markers
[13:41:27]  * video track
[13:41:27]    + decoder: h264
[13:41:27]      + bitrate 200 kbps
[13:41:27]    + filters
[13:41:27]      + AVFilter (crop='x=2:y=20:w=1918:h=1040',scale='width=1918:height=1040:flags=lanczos+accurate_rnd:in_color_matrix=bt709:out_color_matrix=bt709:in_range=limited:out_range=limited',format='pix_fmts=yuv420p')
[13:41:27]        + crop: x=2, y=20, w=1918, h=1040
[13:41:27]        + scale: width=1918, height=1040, flags=lanczos+accurate_rnd, in_color_matrix=bt709, out_color_matrix=bt709, in_range=limited, out_range=limited
[13:41:27]        + format: pix_fmts=yuv420p
[13:41:27]      + Crop and Scale (width=1918:height=1040:crop-top=20:crop-bottom=20:crop-left=2:crop-right=0)
[13:41:27]        + source: 1920 * 1080, crop (20/20/2/0): 1918 * 1040, scale: 1918 * 1040
[13:41:27]    + Output geometry
[13:41:27]      + storage dimensions: 1918 x 1040
[13:41:27]      + pixel aspect ratio: 1 : 1
[13:41:27]      + display dimensions: 1918 x 1040
[13:41:27]    + encoder: H.265 (libx265)
[13:41:27]      + preset:  slow
[13:41:27]      + profile: main
[13:41:27]      + level:   5.1
[13:41:27]      + quality: 20.00 (RF)
[13:41:27]      + color profile: 1-1-1
[13:41:27]  * audio track 1
[13:41:27]    + decoder: English (DTS) (5.1 ch) (1536 kbps) (track 1, id 0x711100)
[13:41:27]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[13:41:27]    + DTS Passthru
[13:41:27] sync: expecting 145980 video frames
[13:41:27] thread 7f8059c99700 started ("Audio Synchronization")
x265 [info]: HEVC encoder version 3.2.1+1-b5c86a64bbbe
x265 [info]: build info [Linux][GCC 9.2.1][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x265 [warning]: Specifying a decoder level with constant rate factor rate-control requires
x265 [warning]: enabling VBV with vbv-bufsize=160000kb vbv-maxrate=160000kbps. VBV outputs are non-deterministic!
x265 [info]: Main profile, Level-5.1 (High tier)
x265 [info]: Thread pool created using 8 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 3 / wpp(17 rows)
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         : star / 57 / 3 / 3
x265 [info]: Keyframe min / max / scenecut / bias: 24 / 240 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt        : 25 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 4 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-20.0 / 0.60
x265 [info]: VBV/HRD buffer / max-rate / init    : 160000 / 160000 / 0.900
x265 [info]: tools: rect limit-modes rd=4 psy-rd=2.00 rdoq=2 psy-rdoq=1.00
x265 [info]: tools: rskip signhide tmvp strong-intra-smoothing lslices=4
x265 [info]: tools: deblock sao
[13:41:27] Writing Metadata to output file...
[13:41:27] thread 7f804f7f6700 started ("Muxer")
[13:41:27] thread 7f804eff5700 started ("Reader")
[13:41:27] thread 7f804e7f4700 started ("Audio decoder (libavcodec)")
[13:41:27] thread 7f804dff3700 started ("Video decoder (libavcodec)")
[13:41:27] thread 7f804d7f2700 started ("Video Synchronization")
[13:41:27] thread 7f804cff1700 started ("H.265/HEVC encoder (libx265)")
[13:41:27] thread 7f8047fff700 started ("Muxer")
[13:41:27] thread 7f80477fe700 started ("AVFilter")
[13:41:27] sync: first pts video is 0
[13:41:27] sync: "Chapter 1" (1) at frame 1 time 0
[13:41:27] sync: first pts audio 0x711100 is 0
[13:42:05] thread 7f8047fff700 exited ("Muxer")
[13:42:05] thread 7f8047fff700 joined ("Muxer")
[13:42:05] work: average encoding speed for job is 5.302451 fps
[13:42:05] thread 7f804eff5700 exited ("Reader")
[13:42:05] thread 7f804dff3700 exited ("Video decoder (libavcodec)")
[13:42:05] thread 7f804d7f2700 exited ("Video Synchronization")
[13:42:05] thread 7f804f7f6700 exited ("Muxer")
[13:42:05] thread 7f80477fe700 exited ("AVFilter")
[13:42:05] thread 7f80477fe700 joined ("AVFilter")
[13:42:05] thread 7f804eff5700 joined ("Reader")
[13:42:05] thread 7f804e7f4700 exited ("Audio decoder (libavcodec)")
[13:42:05] thread 7f8059c99700 exited ("Audio Synchronization")
[13:42:05] thread 7f804e7f4700 joined ("Audio decoder (libavcodec)")
[13:42:05] thread 7f804dff3700 joined ("Video decoder (libavcodec)")
[13:42:05] thread 7f804d7f2700 joined ("Video Synchronization")
[13:42:06] thread 7f804cff1700 exited ("H.265/HEVC encoder (libx265)")
[13:42:06] thread 7f804cff1700 joined ("H.265/HEVC encoder (libx265)")
[13:42:06] stream: 393 good frames, 0 errors (0%)
[13:42:06] dca-decoder done: 941 frames, 0 decoder errors
[13:42:06] h264-decoder done: 242 frames, 0 decoder errors
[13:42:06] sync: got 202 frames, 145980 expected
[13:42:06] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
[13:42:06] thread 7f8059c99700 joined ("Audio Synchronization")
x265 [info]: frame I:      1, Avg QP:24.12  kb/s: 103.77  
x265 [info]: frame P:     53, Avg QP:23.61  kb/s: 5359.43 
x265 [info]: frame B:     93, Avg QP:26.39  kb/s: 2846.96 
x265 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x265 [info]: consecutive B-frames: 24.1% 31.0% 12.1% 13.8% 19.0% 

encoded 147 frames in 39.69s (3.70 fps), 3734.15 kb/s, Avg QP:25.37
[13:42:07] mux: file size, 4424543 bytes
[13:42:07] mux: track 0, 146 frames, 2833391 bytes, 2690.43 kbps, fifo 256
[13:42:07] mux: track 1, 786 frames, 1581432 bytes, 1501.64 kbps, fifo 1024
[13:42:07] mux: overhead, 10.43 bytes per frame
[13:42:07] thread 7f804f7f6700 joined ("Muxer")
[13:42:07] fifo_close: trashing 14 buffer(s)
[13:42:07] fifo_close: trashing 16 buffer(s)
[13:42:07] fifo_close: trashing 15 buffer(s)
[13:42:07] fifo_close: trashing 0 buffer(s)
[13:42:07] fifo_close: trashing 0 buffer(s)
[13:42:07] fifo_close: trashing 0 buffer(s)
[13:42:07] fifo_close: trashing 0 buffer(s)
[13:42:07] fifo_close: trashing 0 buffer(s)
[13:42:07] fifo_close: trashing 4 buffer(s)
[13:42:07] Freed 97 buffers of size 1024
[13:42:07] Freed 4 buffers of size 2048
[13:42:07] Freed 32 buffers of size 4096
[13:42:07] Freed 3 buffers of size 8192
[13:42:07] Freed 3 buffers of size 16384
[13:42:07] Freed 24 buffers of size 32768
[13:42:07] Freed 32 buffers of size 65536
[13:42:07] Freed 14 buffers of size 131072
[13:42:07] Freed 12 buffers of size 262144
[13:42:07] Freed 2 buffers of size 524288
[13:42:07] Freed 32 buffers of size 4194304
[13:42:07] Allocated 143442944 bytes of buffers on this pass and Freed 143442944 bytes, 0 bytes leaked
[13:42:07] Finished work at: Mon Nov 18 13:42:07 2019

[13:42:07] thread 7f8077fff700 exited ("work")
[13:42:07] thread 7f8077fff700 joined ("work")
[13:42:07] libhb: work result = 1
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: Handbrake doesn't start to encode.

Post by JohnAStebbins »

Just to clarify, where did you get HandBrake from? Is it one of our official release builds? Or did you build from source?
unknown User
Posts: 33
Joined: Sat Mar 18, 2017 10:28 am

Re: Handbrake doesn't start to encode.

Post by unknown User »

JohnAStebbins wrote: Mon Nov 18, 2019 9:44 pm Just to clarify, where did you get HandBrake from? Is it one of our official release builds? Or did you build from source?
I just installed it from the official Manjaro repo.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: Handbrake doesn't start to encode.

Post by JohnAStebbins »

I just installed it from the official Manjaro repo.
Well, that's likely the problem right there. Distros pretty much universally build HandBrake wrong and end up breaking it in one way or another. If I had to guess, they've built it against an incompatible version of libx265.

Does Manjaro support flatpak? https://flathub.org/apps/details/fr.handbrake.ghb
unknown User
Posts: 33
Joined: Sat Mar 18, 2017 10:28 am

Re: Handbrake doesn't start to encode.

Post by unknown User »

Yes, I'll try it via flatpak. Bye for now!
unknown User
Posts: 33
Joined: Sat Mar 18, 2017 10:28 am

Re: Handbrake doesn't start to encode.

Post by unknown User »

Same Error via flatpak.
unknown User
Posts: 33
Joined: Sat Mar 18, 2017 10:28 am

Re: Handbrake doesn't start to encode.

Post by unknown User »

Just tested my settings under Windows via VBox and there are not such issues. Under Linux I cannot choose any level. It doesn't matter which one. The only setting that works is level "auto". If I can give you further informations that may be helpful, let me know.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: Handbrake doesn't start to encode.

Post by JohnAStebbins »

This is a stumper. I don't see anything that should trigger this particular failure. It's not even checking to see if the level is compatible with other settings at this point in the code. It's only checking that the string is formatted properly. I.e.

Code: Select all

        if (atof(value) < 10)
            p->levelIdc = (int)(10 * atof(value) + .5);
        else if (atoi(value) < 100)
            p->levelIdc = atoi(value);
        else
            bError = true;
It should only generate the error seen if it gets to the final else.
unknown User
Posts: 33
Joined: Sat Mar 18, 2017 10:28 am

Re: Handbrake doesn't start to encode.

Post by unknown User »

So what do you want me exactly to do?
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: Handbrake doesn't start to encode.

Post by JohnAStebbins »

I don't have any suggestions that don't involve compiling the code from source with debugging info and using gdb. This doesn't make any sense.
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: Handbrake doesn't start to encode.

Post by BradleyS »

Could this be a localization issue?
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: Handbrake doesn't start to encode.

Post by JohnAStebbins »

Hehe, was just thinking the same thing. If it is, I'm surprised nobody's stumbled on it before. x265 is using strtod to convert the value. And strtod is "locale-dependent" according to the man page. So I'll bet that's the problem. It sees the '.' and fails to convert the string to a valid value.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: Handbrake doesn't start to encode.

Post by JohnAStebbins »

I've applied a fix that should be in the next nightly flatpak build if you want to give that a try. The builds don't always happen "nightly" so keep an eye out for a build with a date after today's date. The date is in the filename of the download.

https://handbrake.fr/nightly.php
Woodstock
Veteran User
Posts: 4614
Joined: Tue Aug 27, 2013 6:39 am

Re: Handbrake doesn't start to encode.

Post by Woodstock »

With the increasing number of languages handbrake supports, maybe it's time that the locale settings be included in the log?
unknown User
Posts: 33
Joined: Sat Mar 18, 2017 10:28 am

Re: Handbrake doesn't start to encode.

Post by unknown User »

JohnAStebbins wrote: Tue Nov 19, 2019 12:27 am I've applied a fix that should be in the next nightly flatpak build if you want to give that a try. The builds don't always happen "nightly" so keep an eye out for a build with a date after today's date. The date is in the filename of the download.

https://handbrake.fr/nightly.php
Of course I'll give it a try. Will reply then. So long!
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: Handbrake doesn't start to encode.

Post by JohnAStebbins »

Woodstock wrote: Tue Nov 19, 2019 12:58 am With the increasing number of languages handbrake supports, maybe it's time that the locale settings be included in the log?
Yes. It would be a helpful reminder during log analysis.
unknown User
Posts: 33
Joined: Sat Mar 18, 2017 10:28 am

Re: Handbrake doesn't start to encode.

Post by unknown User »

JohnAStebbins wrote: Tue Nov 19, 2019 12:27 am I've applied a fix that should be in the next nightly flatpak build if you want to give that a try. The builds don't always happen "nightly" so keep an eye out for a build with a date after today's date. The date is in the filename of the download.

https://handbrake.fr/nightly.php
Yes, the fix you applied solved this issue. Encoding process starts immediately and completed successful.
Thank you very much!
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: Handbrake doesn't start to encode.

Post by JohnAStebbins »

unknown User wrote: Mon Nov 25, 2019 12:00 am Yes, the fix you applied solved this issue. Encoding process starts immediately and completed successful.
Thank you very much!
Thanks for testing and reporting back the result :wink:
Post Reply