View Single Post
Old 15th July 2022, 02:13   #3  |  Link
Rojones
Registered User
 
Join Date: Jul 2022
Posts: 9
Quote:
Originally Posted by Emulgator View Post
Incompatible input files I would guess.
A mediainfo log would be helpful to see which source encoding parameters were applied in reality.
Fair enough. I've been doing several more tests since I posted this, none successful, even using the same files I had used to create the 3 discs that authored without re-encoding.

But I also tried to find out how to produce the most compatible files with the 4K Blu-ray format, and I finally did, but BD Rebuilder also wanted to re-encode those files. Not that it makes a difference, because in at least two of those first 3 discs, I had put files coming out of Compressor encoded to Dolby Vision for Apple devices, so those files were pretty far from the 4K Blu-ray standard. And yet it took them in and put them in a BDMV folder along with several others that had several degrees of compatibility, from terrible to barely OK.

But the latest tests that I did were after doing a lot of research and finding the most compatible parameters in Handbrake, because it's impossible to encode a compatible HEVC file out of FCPX or even Compressor, so the process is to export a Prores 422 HQ file out of FCPX from an HDR project.

Then, I opened it in Handbrake and I made a preset with a lot of changes, all the filters off, x265 10 bit, and exported to m4v with these additional options:

Code:
hdr=1:hdr-opt=1:repeat-headers=1:colorprim=bt2020:transfer=smpte2084:colormatrix=bt2020nc:max-cll=1000,800:uhd-bd=1
This is the log after the encoding:

Code:
HandBrake Activity Log for Session: 2022-07-14T14:31:06Z
Handbrake Version: 1.5.1 (2022011000)
(hidden for privacy)HDR_Test_05.m4v

(deleted some things to get the post down in size because it didn't let me post the complete logs)

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/userhiddenforprivacy/Video Editing/Renders/(hidden for privacy)HDR.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 0
    compatible_brands: qt  

2020 PQ

  Duration: 00:22:56.96, start: 0.000000, bitrate: 654025 kb/s


  Stream #0:0(und): Audio: pcm_s24le (lpcm / 0x6D63706C), 48000
Hz, 2 channels, s32 (24 bit), 2304 kb/s (default)
    Metadata:
      creation_time   : 2022-07-12T22:27:07.000000Z
      handler_name    : Core Media Audio
      vendor_id       : [0][0][0][0]
  Stream #0:1(und): Video: prores (HQ) (apch / 0x68637061), yuv422p10le(tv, bt2020nc/bt2020/smpte2084, progressive), 3840x2160, 651315 kb/s, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 24k tbn, 24k tbc (default)
    Metadata:
      creation_time   : 2022-07-12T22:27:07.000000Z
      handler_name    : Core Media Video
      vendor_id       : [0][0][0][0]
      encoder         : Apple ProRes 422 HQ
      timecode        : 00:00:00:00
    Side data:
      Mastering Display Metadata, has_primaries:1 has_luminance:1 r(0.7080,0.2920) g(0.1700,0.7970) b(0.1310 0.0460) wp(0.3127, 0.3290) min_luminance=0.000100, max_luminance=1000.000000
      Content Light Level Metadata, MaxCLL=1000, MaxFALL=800
  Stream #0:2(und): Data: none (tmcd / 0x64636D74) (default)
    Metadata:
      creation_time   : 2022-07-12T22:27:07.000000Z
      handler_name    : Core Media Time Code
      timecode        : 00:00:00:00
  Stream #0:3(und): Data: bin_data (text / 0x74786574), 0 kb/s
    Metadata:
      creation_time   : 2022-07-12T22:27:07.000000Z
      handler_name    : Core Media Text
[10:31:07] Found ffmpeg 9 chapters, container=mov,mp4,m4a,3gp,3g2,mj2
[10:31:07] Added chapter 1, name='Chapter 1', dur=5942186, (00:01:06)
[10:31:07] Added chapter 2, name='Chapter 2', dur=6820564, (00:01:16)
[10:31:07] Added chapter 3, name='Chapter 3', dur=8423415, (00:01:34)
[10:31:07] Added chapter 4, name='Chapter 4', dur=8141883, (00:01:30)
[10:31:07] Added chapter 5, name='Chapter 5', dur=25679404, (00:04:45)
[10:31:07] Added chapter 6, name='Chapter 6', dur=16013498, (00:02:58)
[10:31:07] Added chapter 7, name='Chapter 7', dur=29988708, (00:05:33)
[10:31:07] Added chapter 8, name='Chapter 8', dur=22894122, (00:04:14)
[10:31:07] Added chapter 9, name='Chapter 9', dur=22522, (00:00:00)
[10:31:07] scan: decoding previews for title 1
[10:31:07] scan: preview 1
[10:31:07] fifo_close: trashing 0 buffer(s)
[10:31:07] scan: audio 0x0: pcm_s24le, rate=48000Hz, bitrate=2304000 Unknown (pcm_s24le) (2.0 ch) (2304 kbps)
[10:31:08] scan: preview 2
[10:31:09] scan: preview 3
[10:31:09] scan: preview 4
[10:31:09] scan: preview 5
[10:31:10] scan: preview 6
[10:31:10] scan: preview 7
[10:31:10] scan: preview 8
[10:31:11] scan: preview 9
[10:31:11] scan: preview 10
[10:31:11] scan: 10 previews, 3840x2160, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1, color profile: 9-16-9, chroma location: unspecified
[10:31:11] scan: mastering display metadata: r(0.7080,0.2920) g(0.1700,0.7970) b(0.1310 0.0460) wp(0.3127, 0.3290) min_luminance=0.000100, max_luminance=1000.000000
[10:31:11] scan: content light level: max_cll=1000, max_fall=800
[10:31:11] Freed 1 buffers of size 1024
[10:31:11] Freed 1 buffers of size 4096
[10:31:11] Freed 1 buffers of size 8192
[10:31:11] Freed 1 buffers of size 4194304
[10:31:11] Freed 2 buffers of size 16777216
[10:31:11] Allocated 37762048 bytes of buffers on this pass and Freed 37762048 bytes, 0 bytes leaked
[10:31:11] thread 16f477000 exited ("scan")
[10:31:11] thread 16f477000 joined ("scan")
[10:31:11] libhb: scan thread found 1 valid title(s)
[10:31:11] macgui: fr.handbrake.HandBrakeXPCService scan done
[10:31:11] thread 16f477000 started ("work")
[10:31:11] macgui: fr.handbrake.HandBrakeXPCService started encoding (hidden for privacy)HDR_Test_05.m4v
[10:31:11] macgui: fr.handbrake.HandBrakeXPCService with preset 4K Blu-ray HDR x265 25 Mbps (Modified)
[10:31:11] Starting work at: Thu Jul 14 10:31:11 2022

[10:31:11] 1 job(s) to process
[10:31:11] Starting Task: Encoding Pass
[10:31:11] Skipping crop/scale filter
[10:31:11] job configuration:
[10:31:11]  * source
[10:31:11]    + /Users/userhiddenforprivacy/Video Editing/Renders/(hidden for privacy)HDR.mov
[10:31:11]    + title 1, chapter(s) 1 to 9
[10:31:11]    + container: mov,mp4,m4a,3gp,3g2,mj2
[10:31:11]    + data rate: 654025 kbps
[10:31:11]  * destination
[10:31:11]    + /Users/userhiddenforprivacy/To burn/(hidden for privacy)HDR_Test_05.m4v
[10:31:11]    + container: MPEG-4 (libavformat)
[10:31:11]      + align initial A/V stream timestamps
[10:31:11]      + chapter markers
[10:31:11]  * video track
[10:31:11]    + decoder: prores 10-bit (yuv420p10le)
[10:31:11]      + bitrate 651315 kbps
[10:31:11]    + filter
[10:31:11]      + Framerate Shaper (mode=1:rate=27000000/1126125)
[10:31:11]        + frame rate: 23.976 fps -> constant 23.976 fps
[10:31:11]    + Output geometry
[10:31:11]      + storage dimensions: 3840 x 2160
[10:31:11]      + pixel aspect ratio: 1 : 1
[10:31:11]      + display dimensions: 3840 x 2160
[10:31:11]    + encoder: H.265 10-bit (libx265)
[10:31:11]      + preset:  fast
[10:31:11]      + options: hdr=1:hdr-opt=1:repeat-headers=1:colorprim=bt2020:transfer=smpte2084:colormatrix=bt2020nc:max-cll=1000,800:uhd-bd=1
[10:31:11]      + profile: auto
[10:31:11]      + level:   auto
[10:31:11]      + bitrate: 25000 kbps, pass: 0
[10:31:11]      + color profile: 9-16-9
[10:31:11]      + chroma location: unspecified
[10:31:11]      + mastering display metadata: r(0.7080,0.2920) g(0.1700,0.7970) b(0.1310 0.0460) wp(0.3127, 0.3290) min_luminance=0.000100, max_luminance=1000.000000
[10:31:11]      + content light level: max_cll=1000, max_fall=800
[10:31:11]  * audio track 1
[10:31:11]    + decoder: Unknown (pcm_s24le) (2.0 ch) (2304 kbps) (track 1, id 0x0)
[10:31:11]      + bitrate: 2304 kbps, samplerate: 48000 Hz
[10:31:11]    + mixdown: Stereo
[10:31:11]    + encoder: AC3 (libavcodec)
[10:31:11]      + bitrate: 448 kbps, samplerate: 48000 Hz
[10:31:11] sync: expecting 33013 video frames
[10:31:11] thread 16fd37000 started ("Audio Synchronization")
x265 [info]: HEVC encoder version 3.5+1-f0c1022b6
x265 [info]: build info [Mac OS X][clang 13.0.0][32 bit] 10bit
x265 [info]: using cpu capabilities: NEON
x265 [warning]: uhd-bd: Turning on repeat-headers
x265 [warning]: uhd-bd: Turning off open GOP
x265 [warning]: uhd-bd: keyframeMin is always 1
x265 [warning]: uhd-bd: reducing keyframeMax to 24
x265 [info]: Main 10 profile, Level-5.1 (High tier)
x265 [info]: Thread pool created using 20 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 4 / wpp(34 rows)
x265 [warning]: NAL HRD parameters require VBV parameters, ignored
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 / 2
x265 [info]: Keyframe min / max / scenecut / bias  : 1 / 24 / 40 / 5.00 
x265 [info]: Lookahead / bframes / badapt        : 15 / 4 / 0
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 3 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : ABR-25000 kbps / 0.60
x265 [info]: tools: rd=2 psy-rd=2.00 rskip mode=1 signhide tmvp fast-intra
x265 [info]: tools: strong-intra-smoothing lslices=8 deblock sao
[10:31:11] Writing Metadata to output file...
[10:31:11] thread 170ae3000 started ("Muxer")
[10:31:11] thread 170b6f000 started ("Reader")
[10:31:11] thread 170bfb000 started ("Audio decoder (libavcodec)")
[10:31:11] thread 170c87000 started ("Video decoder (libavcodec)")
[10:31:11] thread 170d13000 started ("Video Synchronization")
[10:31:11] thread 170d9f000 started ("AVCodec Audio encoder (libavcodec)")
[10:31:11] thread 170e2b000 started ("H.265/HEVC encoder (libx265)")
[10:31:11] thread 170eb7000 started ("Muxer")
[10:31:11] thread 170f43000 started ("Framerate Shaper")
[10:31:11] ffmpeg_read starting chapter 1 at 0
[10:31:13] sync: first pts video is 0
[10:31:13] sync: "Chapter 1" (1) at frame 1 time 0
[10:31:13] sync: first pts audio 0x0 is 0
[10:33:37] ffmpeg_read starting chapter 2 at 5942186
[10:33:41] sync: "Chapter 2" (2) at frame 1584 time 5942186
[10:36:27] ffmpeg_read starting chapter 3 at 12762750
[10:36:31] sync: "Chapter 3" (3) at frame 3401 time 12762750
[10:39:57] ffmpeg_read starting chapter 4 at 21186165
[10:40:01] sync: "Chapter 4" (4) at frame 5645 time 21186165
[10:43:17] ffmpeg_read starting chapter 5 at 29328048
[10:43:22] sync: "Chapter 5" (5) at frame 7814 time 29328048
[10:53:51] ffmpeg_read starting chapter 6 at 55007452
[10:53:55] sync: "Chapter 6" (6) at frame 14655 time 55007452
[11:00:23] ffmpeg_read starting chapter 7 at 71020950
[11:00:27] sync: "Chapter 7" (7) at frame 18921 time 71020950
[11:12:37] ffmpeg_read starting chapter 8 at 101009658
[11:12:42] sync: "Chapter 8" (8) at frame 26910 time 101009658
[11:22:00] ffmpeg_read starting chapter 9 at 123903780
[11:22:01] reader: done. 1 scr changes
[11:22:01] thread 170b6f000 exited ("Reader")
[11:22:03] sync: "Chapter 9" (9) at frame 33009 time 123903780
[11:22:08] thread 170eb7000 exited ("Muxer")
[11:22:08] thread 170eb7000 joined ("Muxer")
[11:22:08] work: average encoding speed for job is 10.812052 fps
[11:22:08] thread 16fd37000 exited ("Audio Synchronization")
[11:22:08] thread 170bfb000 exited ("Audio decoder (libavcodec)")
[11:22:08] thread 170d13000 exited ("Video Synchronization")
[11:22:08] thread 170ae3000 exited ("Muxer")
[11:22:08] thread 170d9f000 exited ("AVCodec Audio encoder (libavcodec)")
[11:22:08] thread 170f43000 exited ("Framerate Shaper")
[11:22:08] thread 170f43000 joined ("Framerate Shaper")
[11:22:08] vfr: 33014 frames output, 0 dropped and 0 duped for CFR/PFR
[11:22:08] vfr: lost time: 0 (0 frames)
[11:22:08] vfr: gained time: 0 (0 frames) (0 not accounted for)
[11:22:08] fifo_close: trashing 0 buffer(s)
[11:22:08] thread 170b6f000 joined ("Reader")
[11:22:08] thread 170bfb000 joined ("Audio decoder (libavcodec)")
[11:22:08] thread 170c87000 exited ("Video decoder (libavcodec)")
[11:22:08] thread 170c87000 joined ("Video decoder (libavcodec)")
[11:22:08] thread 170d13000 joined ("Video Synchronization")
[11:22:08] thread 170d9f000 joined ("AVCodec Audio encoder (libavcodec)")
[11:22:08] thread 170e2b000 exited ("H.265/HEVC encoder (libx265)")
[11:22:08] thread 170e2b000 joined ("H.265/HEVC encoder (libx265)")
[11:22:08] pcm_s24le-decoder done: 66027 frames, 0 decoder errors
[11:22:08] prores-decoder done: 33014 frames, 0 decoder errors
[11:22:08] sync: got 33014 frames, 33013 expected
[11:22:08] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
[11:22:08] thread 16fd37000 joined ("Audio Synchronization")
[11:22:08] encavcodecaudio: closing libavcodec
x265 [info]: frame I:   1604, Avg QP:18.68  kb/s: 47900.33
x265 [info]: frame P:   6928, Avg QP:20.23  kb/s: 34189.22
x265 [info]: frame B:  24482, Avg QP:23.29  kb/s: 18857.59
x265 [info]: Weighted P-Frames: Y:8.2% UV:6.7%
x265 [info]: consecutive B-frames: 19.9% 1.3% 14.4% 1.1% 63.4% 

encoded 33014 frames in 3056.98s (10.80 fps), 23485.99 kb/s, Avg QP:22.43
[11:22:08] mux: file size, 4124782103 bytes
[11:22:08] mux: track 0, 33014 frames, 4046603305 bytes, 23510.38 kbps, fifo 256
[11:22:08] mux: video bitrate error, -256393309 bytes
[11:22:08] mux: track 1, 43029 frames, 77107968 bytes, 447.99 kbps, fifo 256
[11:22:08] mux: overhead, 14.08 bytes per frame
[11:22:08] thread 170ae3000 joined ("Muxer")
[11:22:08] fifo_close: trashing 0 buffer(s)
[11:22:08] fifo_close: trashing 0 buffer(s)
[11:22:08] Freed 2 buffers of size 1024
[11:22:08] Freed 32 buffers of size 262144
[11:22:08] Freed 15 buffers of size 524288
[11:22:08] Freed 5 buffers of size 1048576
[11:22:08] Freed 16 buffers of size 2097152
[11:22:08] Freed 18 buffers of size 4194304
[11:22:08] Freed 25 buffers of size 16777216
[11:22:09] Freed 32 buffers of size 33554432
[11:22:09] Allocated 1631934464 bytes of buffers on this pass and Freed 1631934464 bytes, 0 bytes leaked
[11:22:09] Finished work at: Thu Jul 14 11:22:09 2022

[11:22:09] thread 16f477000 exited ("work")
[11:22:09] thread 16f477000 joined ("work")
[11:22:09] libhb: work result = 0
Note: here I had pasted the Mediainfo report from the encoded file, but it went over the character limit for the post.


So this file is the most compatible thing I was able to produce, but BD Rebuilder still wants to re-encode it.

The good thing is that even if it insists in re-encoding everything, even after setting a disc size way bigger than the total file size, and with the FORCE_NOENCODE=1 parameter, at least it builds that "pseudo" Blu-ray structure in the Import folder that I can still burn to a BD-RE with Imgburn and the disc plays in my Oppo and Sony players. But I know that's like an intermediate step and not the full process, otherwise it would just take it from there, and not do any of the rest.

Also, I did something else. I hooked up a PC with Windows 7 that had been off for at least four years. I installed the LAV filters, Avisynth 2.60, and ran BD Rebuilder in it. I transferred this file to that computer, and tried to author the disc with this file only. And it still wanted to re-encode. So now I know it's not my usual PC, and I won't gain anything by reinstalling Windows from scratch.

Now, I wouldn't spend any time at all trying to troubleshoot this over and over if it wasn't for those 3 initial discs that it build without trouble. I mean, I have spent days trying to figure out what's wrong, a lot of trial and error, and I still don't get it.
Rojones is offline   Reply With Quote