HandBrake / HandBrake

HandBrake's main development repository
https://handbrake.fr
Other
17.74k stars 1.34k forks source link

Encode crashes at startup with 4K h.265 #4356

Closed f1gwr closed 2 years ago

f1gwr commented 2 years ago

Problem Description

While working properly in h.264, my 4K .mov FCPX generated stops workin after one or two seconds of encoding in h.265. Tried different settings, but still the same within this encoder.

Activity Log, Crash Log or any other details

[12:38:01] macgui: fr.handbrake.HandBrakeXPCService scanning specifically for title: 1
[12:38:01] CPU: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz
[12:38:01]  - logical processor count: 24
[12:38:01] hb_scan: path=/Volumes/mp12c/Movies/HommageRobertCheneau/Hommage Robert Cheneau.mov, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image /Volumes/mp12c/Movies/HommageRobertCheneau/Hommage Robert Cheneau.mov
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(/Volumes/mp12c/Movies/HommageRobertCheneau/Hommage Robert Cheneau.mov/) failed
[12:38:01] 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
[12:38:01] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/mp12c/Movies/HommageRobertCheneau/Hommage Robert Cheneau.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 0
    compatible_brands: qt  
    creation_time   : 2022-05-14T16:27:19.000000Z
    com.apple.quicktime.keywords: photos,Videos
    com.apple.quicktime.description: Cette vidéo traite de Hommage Robert Cheneau
    com.apple.quicktime.author: MP12C
    com.apple.quicktime.displayname: Hommage Robert Cheneau
    com.apple.quicktime.title: Hommage Robert Cheneau
  Duration: 00:18:32.48, start: 0.000000, bitrate: 686775 kb/s
  Stream #0:0(und): Audio: pcm_s24le (lpcm / 0x6D63706C), 48000 Hz, stereo, s32 (24 bit), 2304 kb/s (default)
    Metadata:
      creation_time   : 2022-05-14T16:27:19.000000Z
      handler_name    : Core Media Audio
      vendor_id       : [0][0][0][0]
  Stream #0:1(und): Video: prores (HQ) (apch / 0x68637061), yuv422p10le(tv, bt709, progressive), 3840x2160, 684056 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 2500 tbn, 2500 tbc (default)
    Metadata:
      creation_time   : 2022-05-14T16:27:19.000000Z
      handler_name    : Core Media Video
      vendor_id       : appl
      encoder         : Apple ProRes 422 HQ
      timecode        : 01:00:00:00
  Stream #0:2(und): Data: none (tmcd / 0x64636D74) (default)
    Metadata:
      creation_time   : 2022-05-14T16:27:19.000000Z
      handler_name    : Core Media Time Code
      timecode        : 01:00:00:00
[12:38:01] scan: decoding previews for title 1
[12:38:01] scan: audio 0x0: pcm_s24le, rate=48000Hz, bitrate=2304000 Unknown (pcm_s24le) (2.0 ch) (2304 kbps)
[12:38:05] scan: 10 previews, 3840x2160, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: unspecified
[12:38:05] libhb: scan thread found 1 valid title(s)
[12:38:05] macgui: fr.handbrake.HandBrakeXPCService scan done
[12:38:05] Starting work at: Mon May 16 12:38:05 2022

[12:38:05] macgui: fr.handbrake.HandBrakeXPCService started encoding Hommage Robert Cheneau.mp4
[12:38:05] 1 job(s) to process
[12:38:05] macgui: fr.handbrake.HandBrakeXPCService with preset 4K 25p h.265 (Modifié)
[12:38:05] Starting Task: Encoding Pass
[12:38:05] Skipping vfr filter
[12:38:05] Skipping crop/scale filter
[12:38:05] work: only 1 chapter, disabling chapter markers
[12:38:05] job configuration:
[12:38:05]  * source
[12:38:05]    + /Volumes/mp12c/Movies/HommageRobertCheneau/Hommage Robert Cheneau.mov
[12:38:05]    + title 1, chapter(s) 1 to 1
[12:38:05]    + container: mov,mp4,m4a,3gp,3g2,mj2
[12:38:05]    + data rate: 686775 kbps
[12:38:05]  * destination
[12:38:05]    + /Volumes/video/Hommage Robert Cheneau.mp4
[12:38:05]    + container: MPEG-4 (libavformat)
[12:38:05]  * video track
[12:38:05]    + decoder: prores 8-bit (yuv420p)
[12:38:05]      + bitrate 684056 kbps
[12:38:05]    + filters
[12:38: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)
[12:38:05]      + Deinterlace (mode=35)
[12:38:05]    + Output geometry
[12:38:05]      + storage dimensions: 3840 x 2160
[12:38:05]      + pixel aspect ratio: 1 : 1
[12:38:05]      + display dimensions: 3840 x 2160
[12:38:05]    + encoder: H.265 10-bit (libx265)
[12:38:05]      + preset:  fast
[12:38:05]      + profile: auto
[12:38:05]      + level:   4.0
[12:38:05]      + quality: 22.00 (RF)
[12:38:05]      + color profile: 1-1-1
[12:38:05]      + chroma location: unspecified
[12:38:05]  * audio track 1
[12:38:05]    + decoder: Unknown (pcm_s24le) (2.0 ch) (2304 kbps) (track 1, id 0x0)
[12:38:05]      + bitrate: 2304 kbps, samplerate: 48000 Hz
[12:38:05]    + mixdown: Stereo
[12:38:05]    + encoder: AAC (Apple AudioToolbox)
[12:38:05]      + bitrate: 160 kbps, samplerate: 48000 Hz
[12:38:05] sync: expecting 27812 video frames
x265 [info]: HEVC encoder version 3.5+1-f0c1022b6
x265 [info]: build info [Mac OS X][clang 13.0.0][64 bit] 10bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
x265 [error]: picture dimensions are out of range for specified level
[12:38:05] encx265: x265_encoder_open failed.
[12:38:05] Failure to initialise thread 'H.265/HEVC encoder (libx265)'
[12:38:05] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[12:38:05] pcm_s24le-decoder done: 0 frames, 0 decoder errors
[12:38:05] prores-decoder done: 0 frames, 0 decoder errors
[12:38:05] sync: got 0 frames, 27812 expected
[12:38:05] Finished work at: Mon May 16 12:38:05 2022

[12:38:05] libhb: work result = 3
[12:38:06] macgui: Queue Done, there are no more pending encodes
[12:38:06] macgui: fr.handbrake.HandBrakeXPCService work failed

PLEASE NOTE: the previous errors are, although also reported, not blocking the h.264 job :

[12:39:21] hb_scan: path=/Volumes/mp12c/Movies/HommageRobertCheneau/Hommage Robert Cheneau.mov, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image /Volumes/mp12c/Movies/HommageRobertCheneau/Hommage Robert Cheneau.mov
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(/Volumes/mp12c/Movies/HommageRobertCheneau/Hommage Robert Cheneau.mov/) failed
[12:39:21] 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
[12:39:21] dvd: not a dvd - trying as a stream/file instead

What Operating System are you running?

Mac OS X 10.4.6

What version of HandBrake are you running?

Version 1.5.1 (2022011000)

Where did you download HandBrake from?

https://handbrake.fr/

galad87 commented 2 years ago

HEVC level 4.0 is too low for 4k. Set it to auto or check which level supports 4k.

f1gwr commented 2 years ago

Wow ! Great and superfast answer. It works! Thank you so much!