Second logo animation trimmed - bug?

HandBrake for Mac support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
zindi
Posts: 12
Joined: Fri Dec 14, 2007 9:33 pm

Second logo animation trimmed - bug?

Post by zindi »

Description of problem or question:
Converting an anime movie Perfect Blue 1997 Blu-ray has three seconds trimmed from second logo animation.
Second logo should start at 4sec and end at 8sec, but converted ones starts 4sec and ends 5sec.
This throws off the srt subtitles.
Tried profile Animation and Film.

Steps to reproduce the problem (If Applicable):
H264, Constant, Same as source, RF20, profile: High, level: 4.1, audio DTS pass through, Denoise HQDN3D Medium

HandBrake version (e.g., 1.0.0):
1.3.3

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

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

Code: Select all

HandBrake Activity Log for Session: 2021-05-22T00:49:04Z
Handbrake Version: 1.3.3 (2020061300)
Perfect Blue 1997 - 1080p.mkv
Preset: HQ high 4.0 film 20 mkv 1080p dts (Modified)
[17:49:04] macgui: QueueCore scanning specifically for title: 1
[17:49:04] CPU: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
[17:49:04]  - Intel microarchitecture Ivy Bridge
[17:49:04]  - logical processor count: 8
[17:49:04] hb_scan: path=/Volumes/NewBlu/box/compress/Perfect Blue 1997 - 1080p.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /Volumes/NewBlu/box/compress/Perfect Blue 1997 - 1080p.mkv
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2585: nav_get_title_list(/Volumes/NewBlu/box/compress/Perfect Blue 1997 - 1080p.mkv/) failed
[17:49:04] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[17:49:04] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/Volumes/NewBlu/box/compress/Perfect Blue 1997 - 1080p.mkv':
  Metadata:
    title           : 
    encoder         : libmakemkv v1.15.4 (1.3.10/1.5.2) darwin(x64-release)
    creation_time   : 2021-02-05T11:40:49.000000Z
  Duration: 01:21:47.28, start: 0.000000, bitrate: 34500 kb/s
    Chapter #0:0: start 0.000000, end 289.414125
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 289.414125, end 538.538000
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 538.538000, end 800.549750
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 800.549750, end 1349.139458
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 1349.139458, end 1668.208208
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 1668.208208, end 2161.450958
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 2161.450958, end 2455.077625
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 2455.077625, end 2663.827833
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 2663.827833, end 2960.707750
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 2960.707750, end 3267.889625
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 3267.889625, end 3453.533417
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 3453.533417, end 4085.623208
    Metadata:
      title           : Chapter 12
    Chapter #0:12: start 4085.623208, end 4592.421167
    Metadata:
      title           : Chapter 13
    Chapter #0:13: start 4592.421167, end 4905.775875
    Metadata:
      title           : Chapter 14
    Chapter #0:14: start 4905.775875, end 4907.277375
    Metadata:
      title           : Chapter 15
    Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Metadata:
      BPS-eng         : 30840814
      DURATION-eng    : 01:21:47.277375000
      NUMBER_OF_FRAMES-eng: 117657
      NUMBER_OF_BYTES-eng: 18918052152
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.4 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-02-05 11:40:49
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(jpn): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s16p (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 2071793
      DURATION-eng    : 01:21:47.012000000
      NUMBER_OF_FRAMES-eng: 459755
      NUMBER_OF_BYTES-eng: 1270789704
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.4 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-02-05 11:40:49
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(jpn): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 1508090
      DURATION-eng    : 01:21:47.012000000
      NUMBER_OF_FRAMES-eng: 459755
      NUMBER_OF_BYTES-eng: 925027060
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.4 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-02-05 11:40:49
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle, 1920x1080
    Metadata:
      BPS-eng         : 30243
      DURATION-eng    : 01:21:03.546187500
      NUMBER_OF_FRAMES-eng: 1840
      NUMBER_OF_BYTES-eng: 18386571
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.4 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-02-05 11:40:49
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle, 1920x1080
    Metadata:
      BPS-eng         : 1853
      DURATION-eng    : 01:21:03.546187500
      NUMBER_OF_FRAMES-eng: 84
      NUMBER_OF_BYTES-eng: 1126914
      SOURCE_ID-eng   : 001201
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.4 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-02-05 11:40:49
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:5(eng): Subtitle: hdmv_pgs_subtitle, 1920x1080
    Metadata:
      BPS-eng         : 44339
      DURATION-eng    : 01:21:09.135104166
      NUMBER_OF_FRAMES-eng: 2988
      NUMBER_OF_BYTES-eng: 26987090
      SOURCE_ID-eng   : 001202
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.4 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-02-05 11:40:49
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[17:49:04] scan: decoding previews for title 1
[17:49:04] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 日本語 (DTS-HD MA) (5.1 ch)
[17:49:04] scan: audio 0x2: dca, rate=48000Hz, bitrate=1536000 日本語 (DTS) (5.1 ch) (1536 kbps)
[17:49:05] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 24/22/2/0, aspect 16:9, PAR 1:1
[17:49:05] libhb: scan thread found 1 valid title(s)
[17:49:05] macgui: QueueCore scan done
[17:49:05] macgui: QueueCore started encoding Perfect Blue 1997 - 1080p.mkv
[17:49:05] macgui: QueueCore with preset HQ high 4.0 film 20 mkv 1080p dts (Modified)
[17:49:05] Starting work at: Fri May 21 17:49:05 2021

[17:49:05] 1 job(s) to process
[17:49:05] Starting Task: Encoding Pass
[17:49:05] job configuration:
[17:49:05]  * source
[17:49:05]    + /Volumes/NewBlu/box/compress/Perfect Blue 1997 - 1080p.mkv
[17:49:05]    + title 1, chapter(s) 1 to 15
[17:49:05]    + container: matroska,webm
[17:49:05]    + data rate: 34500 kbps
[17:49:05]  * destination
[17:49:05]    + /Volumes/Media/box/compressed/Perfect Blue 1997 - 1080p.mkv
[17:49:05]    + container: Matroska (libavformat)
[17:49:05]      + chapter markers
[17:49:05]  * video track
[17:49:05]    + decoder: h264
[17:49:05]    + filters
[17:49:05]      + Framerate Shaper (mode=1:rate=27000000/1126125)
[17:49:05]        + frame rate: 23.976 fps -> constant 23.976 fps
[17:49:05]      + Denoise (hqdn3d) (y-spatial=3:cb-spatial=2:cr-spatial=2:y-temporal=2:cb-temporal=3:cr-temporal=3)
[17:49:05]      + Crop and Scale (width=1920:height=1034:crop-top=24:crop-bottom=22:crop-left=0:crop-right=0)
[17:49:05]        + source: 1920 * 1080, crop (24/22/0/0): 1920 * 1034, scale: 1920 * 1034
[17:49:05]    + Output geometry
[17:49:05]      + storage dimensions: 1920 x 1034
[17:49:05]      + pixel aspect ratio: 1 : 1
[17:49:05]      + display dimensions: 1920 x 1034
[17:49:05]    + encoder: H.264 (libx264)
[17:49:05]      + preset:  slow
[17:49:05]      + tune:    film
[17:49:05]      + profile: high
[17:49:05]      + level:   4.1
[17:49:05]      + quality: 20.00 (RF)
[17:49:05]      + color profile: 1-1-1
[17:49:05]  * audio track 1
[17:49:05]    + name: Surround 5.1
[17:49:05]    + decoder: 日本語 (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[17:49:05]      + samplerate: 48000 Hz
[17:49:05]    + DTS-HD Passthru
[17:49:05]  * audio track 2
[17:49:05]    + name: Surround 5.1
[17:49:05]    + decoder: 日本語 (DTS) (5.1 ch) (1536 kbps) (track 2, id 0x2)
[17:49:05]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[17:49:05]    + DTS Passthru
[17:49:05] sync: expecting 117656 video frames
[17:49:05] encx264: min-keyint: 24, keyint: 240
[17:49:05] encx264: encoding at constant RF 20.000000
[17:49:05] encx264: unparsed options: level=4.1:ref=4:direct=auto:deblock=-1,-1:subme=8:trellis=2:psy-rd=1,0.15:vbv-bufsize=78125:vbv-maxrate=62500:rc-lookahead=50
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile High, level 4.1, 4:2:0, 8-bit
[17:49:05] sync: first pts video is 0
[17:49:05] sync: "Chapter 1" (1) at frame 1 time 0
[17:49:05] sync: first pts audio 0x1 is 0
[17:49:05] sync: first pts audio 0x2 is 0
[17:49:08] sync: video time went backwards 2919 ms, dropped 70 frames. PTS 382882
[17:56:45] sync: "Chapter 2" (2) at frame 6873 time 25795732
[18:03:02] sync: "Chapter 3" (3) at frame 12843 time 48205642
[18:10:35] sync: "Chapter 4" (4) at frame 19125 time 71786722
[18:25:32] sync: "Chapter 5" (5) at frame 32280 time 121167292
[18:33:37] sync: "Chapter 6" (6) at frame 39932 time 149890972
[18:46:34] sync: "Chapter 7" (7) at frame 51754 time 194267812
[18:54:53] sync: "Chapter 8" (8) at frame 58794 time 220694242
[19:00:53] sync: "Chapter 9" (9) at frame 63799 time 239481742
[19:08:56] sync: "Chapter 10" (10) at frame 70917 time 266200942
[19:17:46] sync: "Chapter 11" (11) at frame 78282 time 293847322
[19:23:07] sync: "Chapter 12" (12) at frame 82736 time 310566532
[19:40:54] sync: "Chapter 13" (13) at frame 97891 time 367454542
[19:55:46] sync: "Chapter 14" (14) at frame 110043 time 413070142
[20:01:42] reader: done. 1 scr changes
[20:01:43] sync: "Chapter 15" (15) at frame 117552 time 441257062
[20:01:46] work: average encoding speed for job is 14.769515 fps
[20:01:47] vfr: 117587 frames output, 0 dropped and 0 duped for CFR/PFR
[20:01:47] vfr: lost time: 0 (0 frames)
[20:01:47] vfr: gained time: 0 (0 frames) (0 not accounted for)
[20:01:47] dca-decoder done: 459755 frames, 0 decoder errors
[20:01:47] dca-decoder done: 459755 frames, 0 decoder errors
[20:01:47] h264-decoder done: 117657 frames, 0 decoder errors
[20:01:47] sync: got 117587 frames, 117656 expected
[20:01:47] sync: framerate min 23.810 fps, max 24.390 fps, avg 23.976 fps
x264 [info]: frame I:2329  Avg QP:17.66  size:206205
x264 [info]: frame P:32880 Avg QP:20.01  size: 67254
x264 [info]: frame B:82378 Avg QP:20.61  size: 25862
x264 [info]: consecutive B-frames:  5.3%  2.7%  3.6% 88.4%
x264 [info]: mb I  I16..4:  7.4% 86.9%  5.7%
x264 [info]: mb P  I16..4:  1.3% 11.8%  0.7%  P16..4: 50.5% 17.3%  7.5%  0.0%  0.0%    skip:10.9%
x264 [info]: mb B  I16..4:  0.0%  1.7%  0.0%  B16..8: 51.9%  5.0%  1.0%  direct: 7.1%  skip:33.2%  L0:45.6% L1:49.3% BI: 5.1%
x264 [info]: 8x8 transform intra:87.7% inter:63.3%
x264 [info]: direct mvs  spatial:100.0% temporal:0.0%
x264 [info]: coded y,uvDC,uvAC intra: 90.1% 36.8% 11.7% inter: 24.0% 12.0% 0.3%
x264 [info]: i16 v,h,dc,p: 25% 19% 27% 29%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  6%  6% 27%  9% 11% 10% 10%  9% 11%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 10%  4% 11% 14% 13% 13% 10% 12%
x264 [info]: i8c dc,h,v,p: 59% 17% 20%  4%
x264 [info]: Weighted P-Frames: Y:2.7% UV:1.3%
x264 [info]: ref P L0: 47.6% 11.2% 27.7% 12.9%  0.7%  0.0%
x264 [info]: ref B L0: 85.0% 11.3%  3.7%
x264 [info]: ref B L1: 95.5%  4.5%
x264 [info]: kb/s:7865.68
[20:01:47] mux: track 0, 117587 frames, 4821954182 bytes, 7865.58 kbps, fifo 512
[20:01:47] mux: track 1, 459755 frames, 1270789704 bytes, 2072.92 kbps, fifo 2048
[20:01:47] mux: track 2, 459755 frames, 925027060 bytes, 1508.91 kbps, fifo 2048
[20:01:47] Finished work at: Fri May 21 20:01:47 2021

[20:01:47] libhb: work result = 0

zindi
Posts: 12
Joined: Fri Dec 14, 2007 9:33 pm

Re: Second logo animation trimmed - bug?

Post by zindi »

is there a way to change title to: video time went backwards - bug?
Silent_Strider
Enlightened
Posts: 102
Joined: Tue Dec 17, 2019 9:31 pm

Re: Second logo animation trimmed - bug?

Post by Silent_Strider »

got 117587 frames, 117656 expected
69 frames, around 3 seconds, but might be coincidence
rollin_eng
Veteran User
Posts: 4854
Joined: Wed May 04, 2011 11:06 pm

Re: Second logo animation trimmed - bug?

Post by rollin_eng »

First try ripping your disc again.

If that doesn’t work then try remuxing the mkv.
Post Reply