Repository navigation
Open
Labels
Description
Problem Description
When I encode a some source video to H.265 (HEVC) in MP4 container using HandBrake, the output file has two issues:
- DaVinci Resolve: The first 2 frames of the original video are missing on the timeline (total duration remains the same, but the beginning is shifted)
- macOS QuickLook: The first frame renders as black
Encoding the same source file with FFmpeg using equivalent parameters does not have either issue.
Does anyone know what the reason is, or is this a problem with the HandBrake muxer?
Source file (ProRes, tbn=600)
pts=0 pts_time=0.000000 pict_type=I
pts=10 pts_time=0.016667 pict_type=I
pts=20 pts_time=0.033333 pict_type=I
detail Log
jeffrey.deng@jeffreys-mini ~ % ffprobe -i source_video.mov -select_streams v:0 -show_frames -of compact=p=0 | head -n 3
ffprobe version 7.1.1 Copyright (c) 2007-2025 the FFmpeg developers
built with Apple clang version 13.1.6 (clang-1316.0.21.2.5)
configuration: --prefix=/Volumes/tempdisk/sw --extra-cflags=-fno-stack-check --arch=arm64 --cc=/usr/bin/clang --enable-gpl --enable-libvmaf --enable-libopenjpeg --enable-libopus --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libvpx --enable-libwebp --enable-libass --enable-libfreetype --enable-fontconfig --enable-libtheora --enable-libvorbis --enable-libsnappy --enable-libaom --enable-libvidstab --enable-libzimg --enable-libsvtav1 --enable-libharfbuzz --enable-libkvazaar --pkg-config-flags=--static --enable-ffplay --enable-postproc --enable-neon --enable-runtime-cpudetect --disable-indev=qtkit --disable-indev=x11grab_xcb
libavutil 59. 39.100 / 59. 39.100
libavcodec 61. 19.101 / 61. 19.101
libavformat 61. 7.100 / 61. 7.100
libavdevice 61. 3.100 / 61. 3.100
libavfilter 10. 4.100 / 10. 4.100
libswscale 8. 3.100 / 8. 3.100
libswresample 5. 3.100 / 5. 3.100
libpostproc 58. 3.100 / 58. 3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x147704490] Unknown cover type: 0x1.
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/jeffrey.deng/Downloads/source_video.mov':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2026-07-19T21:42:41.000000Z
Duration: 00:00:03.50, start: 0.000000, bitrate: 735295 kb/s
Stream #0:0[0x1](und): Video: prores (HQ) (apch / 0x68637061), yuv422p10le(bt709), 1440x2560, 735102 kb/s, 60 fps, 60 tbr, 600 tbn (default)
Metadata:
creation_time : 2026-07-19T21:42:41.000000Z
handler_name : Core Media Video
vendor_id : appl
encoder : Apple ProRes 422 HQ
Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 179 kb/s (default)
Metadata:
creation_time : 2026-07-19T21:42:41.000000Z
handler_name : Core Media Audio
vendor_id : [0][0][0][0]
media_type=video|stream_index=0|key_frame=1|pts=0|pts_time=0.000000|pkt_dts=0|pkt_dts_time=0.000000|best_effort_timestamp=0|best_effort_timestamp_time=0.000000|duration=10|duration_time=0.016667|pkt_pos=43992|pkt_size=1235184|width=1440|height=2560|crop_top=0|crop_bottom=0|crop_left=0|crop_right=0|pix_fmt=yuv422p10le|sample_aspect_ratio=N/A|pict_type=I|interlaced_frame=0|top_field_first=0|repeat_pict=0|color_range=tv|color_space=bt709|color_primaries=bt709|color_transfer=bt709|chroma_location=unspecified
media_type=video|stream_index=0|key_frame=1|pts=10|pts_time=0.016667|pkt_dts=10|pkt_dts_time=0.016667|best_effort_timestamp=10|best_effort_timestamp_time=0.016667|duration=10|duration_time=0.016667|pkt_pos=1279176|pkt_size=1441568|width=1440|height=2560|crop_top=0|crop_bottom=0|crop_left=0|crop_right=0|pix_fmt=yuv422p10le|sample_aspect_ratio=N/A|pict_type=I|interlaced_frame=0|top_field_first=0|repeat_pict=0|color_range=tv|color_space=bt709|color_primaries=bt709|color_transfer=bt709|chroma_location=unspecified
media_type=video|stream_index=0|key_frame=1|pts=20|pts_time=0.033333|pkt_dts=20|pkt_dts_time=0.033333|best_effort_timestamp=20|best_effort_timestamp_time=0.033333|duration=10|duration_time=0.016667|pkt_pos=2720744|pkt_size=1501600|width=1440|height=2560|crop_top=0|crop_bottom=0|crop_left=0|crop_right=0|pix_fmt=yuv422p10le|sample_aspect_ratio=N/A|pict_type=I|interlaced_frame=0|top_field_first=0|repeat_pict=0|color_range=tv|color_space=bt709|color_primaries=bt709|color_transfer=bt709|chroma_location=unspecified
HandBrake output (HEVC Main, tbn=90000)
pts=90 pts_time=0.001000 pict_type=I ← first frame offset
pts=1590 pts_time=0.017667 pict_type=B
pts=3090 pts_time=0.034333 pict_type=B
detail Log
jeffrey.deng@jeffreys-mini ~ % ffprobe -i /Users/jeffrey.deng/Downloads/handbrake_encode_video.mp4 -select_streams v:0 -show_frames -of compact=p=0 | head -n 3
ffprobe version 7.1.1 Copyright (c) 2007-2025 the FFmpeg developers
built with Apple clang version 13.1.6 (clang-1316.0.21.2.5)
configuration: --prefix=/Volumes/tempdisk/sw --extra-cflags=-fno-stack-check --arch=arm64 --cc=/usr/bin/clang --enable-gpl --enable-libvmaf --enable-libopenjpeg --enable-libopus --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libvpx --enable-libwebp --enable-libass --enable-libfreetype --enable-fontconfig --enable-libtheora --enable-libvorbis --enable-libsnappy --enable-libaom --enable-libvidstab --enable-libzimg --enable-libsvtav1 --enable-libharfbuzz --enable-libkvazaar --pkg-config-flags=--static --enable-ffplay --enable-postproc --enable-neon --enable-runtime-cpudetect --disable-indev=qtkit --disable-indev=x11grab_xcb
libavutil 59. 39.100 / 59. 39.100
libavcodec 61. 19.101 / 61. 19.101
libavformat 61. 7.100 / 61. 7.100
libavdevice 61. 3.100 / 61. 3.100
libavfilter 10. 4.100 / 10. 4.100
libswscale 8. 3.100 / 8. 3.100
libswresample 5. 3.100 / 5. 3.100
libpostproc 58. 3.100 / 58. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/jeffrey.deng/Downloads/handbrake_encode_video.mp4':
Metadata:
major_brand : mp42
minor_version : 512
compatible_brands: mp42iso2mp41
creation_time : 2026-07-19T21:42:41.000000Z
encoder : HandBrake 1.11.1 2026032200
Duration: 00:00:03.52, start: 0.000000, bitrate: 11030 kb/s
Stream #0:0[0x1](und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709), 1440x2560 [SAR 1:1 DAR 9:16], 10889 kb/s, 60 fps, 60 tbr, 90k tbn (default)
Metadata:
creation_time : 2026-07-19T21:42:41.000000Z
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 180 kb/s (default)
Metadata:
creation_time : 2026-07-19T21:42:41.000000Z
handler_name : Stereo
vendor_id : [0][0][0][0]
media_type=video|stream_index=0|key_frame=1|pts=90|pts_time=0.001000|pkt_dts=90|pkt_dts_time=0.001000|best_effort_timestamp=90|best_effort_timestamp_time=0.001000|duration=1500|duration_time=0.016667|pkt_pos=9641|pkt_size=42018|width=1440|height=2560|crop_top=0|crop_bottom=0|crop_left=0|crop_right=0|pix_fmt=yuv420p|sample_aspect_ratio=1:1|pict_type=I|interlaced_frame=0|top_field_first=0|repeat_pict=0|color_range=tv|color_space=bt709|color_primaries=bt709|color_transfer=bt709|chroma_location=left
media_type=video|stream_index=0|key_frame=0|pts=1590|pts_time=0.017667|pkt_dts=1590|pkt_dts_time=0.017667|best_effort_timestamp=1590|best_effort_timestamp_time=0.017667|duration=1500|duration_time=0.016667|pkt_pos=121841|pkt_size=14797|width=1440|height=2560|crop_top=0|crop_bottom=0|crop_left=0|crop_right=0|pix_fmt=yuv420p|sample_aspect_ratio=1:1|pict_type=B|interlaced_frame=0|top_field_first=0|repeat_pict=0|color_range=tv|color_space=bt709|color_primaries=bt709|color_transfer=bt709|chroma_location=left
media_type=video|stream_index=0|key_frame=0|pts=3090|pts_time=0.034333|pkt_dts=3090|pkt_dts_time=0.034333|best_effort_timestamp=3090|best_effort_timestamp_time=0.034333|duration=1500|duration_time=0.016667|pkt_pos=98107|pkt_size=23734|width=1440|height=2560|crop_top=0|crop_bottom=0|crop_left=0|crop_right=0|pix_fmt=yuv420p|sample_aspect_ratio=1:1|pict_type=B|interlaced_frame=0|top_field_first=0|repeat_pict=0|color_range=tv|color_space=bt709|color_primaries=bt709|color_transfer=bt709|chroma_location=left
FFmpeg output (HEVC Rext 10-bit, tbn=15360)
pts=0 pts_time=0.000000 pict_type=I ← correct, starts at 0
pts=256 pts_time=0.016667 pict_type=B
pts=512 pts_time=0.033333 pict_type=B
detail Log
jeffrey.deng@jeffreys-mini ~ % ffprobe -i /Users/jeffrey.deng/Downloads/ffmpeg_encode_video.mp4 -select_streams v:0 -show_frames -of compact=p=0 | head -n 3
ffprobe version 7.1.1 Copyright (c) 2007-2025 the FFmpeg developers
built with Apple clang version 13.1.6 (clang-1316.0.21.2.5)
configuration: --prefix=/Volumes/tempdisk/sw --extra-cflags=-fno-stack-check --arch=arm64 --cc=/usr/bin/clang --enable-gpl --enable-libvmaf --enable-libopenjpeg --enable-libopus --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libvpx --enable-libwebp --enable-libass --enable-libfreetype --enable-fontconfig --enable-libtheora --enable-libvorbis --enable-libsnappy --enable-libaom --enable-libvidstab --enable-libzimg --enable-libsvtav1 --enable-libharfbuzz --enable-libkvazaar --pkg-config-flags=--static --enable-ffplay --enable-postproc --enable-neon --enable-runtime-cpudetect --disable-indev=qtkit --disable-indev=x11grab_xcb
libavutil 59. 39.100 / 59. 39.100
libavcodec 61. 19.101 / 61. 19.101
libavformat 61. 7.100 / 61. 7.100
libavdevice 61. 3.100 / 61. 3.100
libavfilter 10. 4.100 / 10. 4.100
libswscale 8. 3.100 / 8. 3.100
libswresample 5. 3.100 / 5. 3.100
libpostproc 58. 3.100 / 58. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/jeffrey.deng/Downloads/ffmpeg_encode_video.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf61.7.100
Duration: 00:00:03.50, start: 0.000000, bitrate: 12766 kb/s
Stream #0:0[0x1](und): Video: hevc (Rext) (hvc1 / 0x31637668), yuv422p10le(tv, bt709, progressive), 1440x2560, 12562 kb/s, 60 fps, 60 tbr, 15360 tbn (default)
Metadata:
handler_name : Core Media Video
vendor_id : [0][0][0][0]
encoder : Lavc61.19.101 libx265
Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 180 kb/s (default)
Metadata:
handler_name : Core Media Audio
vendor_id : [0][0][0][0]
media_type=video|stream_index=0|key_frame=1|pts=0|pts_time=0.000000|pkt_dts=0|pkt_dts_time=0.000000|best_effort_timestamp=0|best_effort_timestamp_time=0.000000|duration=256|duration_time=0.016667|pkt_pos=9572|pkt_size=46467|width=1440|height=2560|crop_top=0|crop_bottom=0|crop_left=0|crop_right=0|pix_fmt=yuv422p10le|sample_aspect_ratio=N/A|pict_type=I|interlaced_frame=0|top_field_first=0|repeat_pict=0|color_range=tv|color_space=bt709|color_primaries=bt709|color_transfer=bt709|chroma_location=unspecified
media_type=video|stream_index=0|key_frame=0|pts=256|pts_time=0.016667|pkt_dts=256|pkt_dts_time=0.016667|best_effort_timestamp=256|best_effort_timestamp_time=0.016667|duration=256|duration_time=0.016667|pkt_pos=140764|pkt_size=19919|width=1440|height=2560|crop_top=0|crop_bottom=0|crop_left=0|crop_right=0|pix_fmt=yuv422p10le|sample_aspect_ratio=N/A|pict_type=B|interlaced_frame=0|top_field_first=0|repeat_pict=0|color_range=tv|color_space=bt709|color_primaries=bt709|color_transfer=bt709|chroma_location=unspecified
media_type=video|stream_index=0|key_frame=0|pts=512|pts_time=0.033333|pkt_dts=512|pkt_dts_time=0.033333|best_effort_timestamp=512|best_effort_timestamp_time=0.033333|duration=256|duration_time=0.016667|pkt_pos=161227|pkt_size=15838|width=1440|height=2560|crop_top=0|crop_bottom=0|crop_left=0|crop_right=0|pix_fmt=yuv422p10le|sample_aspect_ratio=N/A|pict_type=B|interlaced_frame=0|top_field_first=0|repeat_pict=0|color_range=tv|color_space=bt709|color_primaries=bt709|color_transfer=bt709|chroma_location=unspecified
HandBrake Encode Settings
- Encoder: H.265 (libx265)
- Quality: CRF 41
- Audio: AAC passthrough
- Framerate: same as source (CFR 60 fps)
- Container: MP4 (fast start enabled)
- Filter: no
FFmpeg Command for Comparison
This produces a file with first frame PTS=0 and no issues in DaVinci Resolve or QuickLook.
jeffrey.deng@jeffreys-mini Movies % ffmpeg -i /Users/jeffrey.deng/Downloads/source_video.mov -c:v libx265 -c:a copy -crf 18 -preset slow -movflags +faststart -tag:v hvc1 ffmpeg_encode_video.mp4
ffmpeg version 7.1.1 Copyright (c) 2000-2025 the FFmpeg developers
built with Apple clang version 13.1.6 (clang-1316.0.21.2.5)
configuration: --prefix=/Volumes/tempdisk/sw --extra-cflags=-fno-stack-check --arch=arm64 --cc=/usr/bin/clang --enable-gpl --enable-libvmaf --enable-libopenjpeg --enable-libopus --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libvpx --enable-libwebp --enable-libass --enable-libfreetype --enable-fontconfig --enable-libtheora --enable-libvorbis --enable-libsnappy --enable-libaom --enable-libvidstab --enable-libzimg --enable-libsvtav1 --enable-libharfbuzz --enable-libkvazaar --pkg-config-flags=--static --enable-ffplay --enable-postproc --enable-neon --enable-runtime-cpudetect --disable-indev=qtkit --disable-indev=x11grab_xcb
libavutil 59. 39.100 / 59. 39.100
libavcodec 61. 19.101 / 61. 19.101
libavformat 61. 7.100 / 61. 7.100
libavdevice 61. 3.100 / 61. 3.100
libavfilter 10. 4.100 / 10. 4.100
libswscale 8. 3.100 / 8. 3.100
libswresample 5. 3.100 / 5. 3.100
libpostproc 58. 3.100 / 58. 3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x157f04650] Unknown cover type: 0x1.
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/jeffrey.deng/Downloads/source_video.mov':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2026-07-19T21:42:41.000000Z
Duration: 00:00:03.50, start: 0.000000, bitrate: 735295 kb/s
Stream #0:0[0x1](und): Video: prores (HQ) (apch / 0x68637061), yuv422p10le(bt709), 1440x2560, 735102 kb/s, 60 fps, 60 tbr, 600 tbn (default)
Metadata:
creation_time : 2026-07-19T21:42:41.000000Z
handler_name : Core Media Video
vendor_id : appl
encoder : Apple ProRes 422 HQ
Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 179 kb/s (default)
Metadata:
creation_time : 2026-07-19T21:42:41.000000Z
handler_name : Core Media Audio
vendor_id : [0][0][0][0]
Stream mapping:
Stream #0:0 -> #0:0 (prores (native) -> hevc (libx265))
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
x265 [info]: HEVC encoder version 4.1+1-1d117be
x265 [info]: build info [Mac OS X][clang 13.1.6][64 bit] 10bit
x265 [info]: using cpu capabilities: NEON Neon_DotProd
x265 [info]: Main 4:2:2 10 profile, Level-5 (Main tier)
x265 [info]: Thread pool created using 8 threads
x265 [info]: Slices : 1
x265 [info]: frame threads / pool features : 3 / wpp(40 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 : 25 / 250 / 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-18.0 / 0.60
x265 [info]: tools: rect limit-modes rd=4 psy-rd=2.00 rdoq=2 psy-rdoq=1.00
x265 [info]: tools: rskip mode=1 signhide tmvp strong-intra-smoothing lslices=4
x265 [info]: tools: deblock sao dhdr10-info
Output #0, mp4, to 'ffmpeg_encode_video.mp4':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
encoder : Lavf61.7.100
Stream #0:0(und): Video: hevc (hvc1 / 0x31637668), yuv422p10le(tv, bt709, progressive), 1440x2560, q=2-31, 60 fps, 15360 tbn (default)
Metadata:
creation_time : 2026-07-19T21:42:41.000000Z
handler_name : Core Media Video
vendor_id : appl
encoder : Lavc61.19.101 libx265
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 179 kb/s (default)
Metadata:
creation_time : 2026-07-19T21:42:41.000000Z
handler_name : Core Media Audio
vendor_id : [0][0][0][0]
[mp4 @ 0x157f06270] Starting second pass: moving the moov atom to the beginning of the file.0443x
[out#0/mp4 @ 0x600003864000] video:5367KiB audio:78KiB subtitle:0KiB other streams:0KiB global headers:2KiB muxing overhead: 0.171561%
frame= 210 fps=2.7 q=28.9 Lsize= 5455KiB time=00:00:03.46 bitrate=12889.5kbits/s speed=0.0452x
x265 [info]: frame I: 1, Avg QP:20.48 kb/s: 22302.24
x265 [info]: frame P: 50, Avg QP:20.30 kb/s: 32469.05
x265 [info]: frame B: 159, Avg QP:25.53 kb/s: 6238.28
x265 [info]: Weighted P-Frames: Y:24.0% UV:0.0%
encoded 210 frames in 76.56s (2.74 fps), 12560.20 kb/s, Avg QP:24.26
Activity Log, Crash Log or any other details
HandBrake Activity Log for Session: 2026-07-20T01:12:11Z
Handbrake Version: 1.11.2 (2026060700)
[09:12:11] macgui: Handbrake Version: 1.11.2 (2026060700)
[09:12:11] Compile-time hardening features are enabled
[09:12:11] hb_init: starting libhb thread
[09:12:34] macgui: ScanCore scanning titles with a duration of 10 seconds or more
[09:12:34] OS: macOS 15.7.2 (24G325)
[09:12:34] CPU: Apple M1
[09:12:34] - logical processor count: 8
[09:12:34] hb_scan: path=/Users/jeffrey.deng/Downloads/source_video.mov, title_index=0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/jeffrey.deng/Downloads/source_video.mov':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2026-07-19T21:42:41.000000Z
Duration: 00:00:03.50, start: 0.000000, bitrate: 735295 kb/s
Stream #0:0[0x1](und): Video: prores (HQ) (apch / 0x68637061), yuv422p10le(bt709), 1440x2560, 735102 kb/s, 60 fps, 60 tbr, 600 tbn (default)
Metadata:
creation_time : 2026-07-19T21:42:41.000000Z
handler_name : Core Media Video
vendor_id : appl
encoder : Apple ProRes 422 HQ
Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 179 kb/s (default)
Metadata:
creation_time : 2026-07-19T21:42:41.000000Z
handler_name : Core Media Audio
vendor_id : [0][0][0][0]
[09:12:34] scan: decoding previews for title 1
[09:12:34] scan: audio 0x1: aac, rate=48000Hz, bitrate=179510 Unknown (AAC LC, 2.0 ch, 179 kbps)
[09:12:35] scan: 10 previews, 1440x2560, 60.000 fps, autocrop = 0/0/0/0, aspect 1:1.78, PAR 1:1, color profile: 1-1-1, chroma location: unspecified
[09:12:35] libhb: scan thread found 1 valid title(s)
[09:12:35] macgui: ScanCore scan done
[09:13:57] Compile-time hardening features are enabled
[09:13:57] hb_init: starting libhb thread
[09:13:57] macgui: fr.handbrake.HandBrakeXPCService scanning specifically for title: 1
[09:13:57] OS: macOS 15.7.2 (24G325)
[09:13:57] CPU: Apple M1
[09:13:57] - logical processor count: 8
[09:13:57] hb_scan: path=/Users/jeffrey.deng/Downloads/source_video.mov, title_index=1
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/jeffrey.deng/Downloads/source_video.mov':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2026-07-19T21:42:41.000000Z
Duration: 00:00:03.50, start: 0.000000, bitrate: 735295 kb/s
Stream #0:0[0x1](und): Video: prores (HQ) (apch / 0x68637061), yuv422p10le(bt709), 1440x2560, 735102 kb/s, 60 fps, 60 tbr, 600 tbn (default)
Metadata:
creation_time : 2026-07-19T21:42:41.000000Z
handler_name : Core Media Video
vendor_id : appl
encoder : Apple ProRes 422 HQ
Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 179 kb/s (default)
Metadata:
creation_time : 2026-07-19T21:42:41.000000Z
handler_name : Core Media Audio
vendor_id : [0][0][0][0]
[09:13:57] scan: decoding previews for title 1
[09:13:57] scan: audio 0x1: aac, rate=48000Hz, bitrate=179510 Unknown (AAC LC, 2.0 ch, 179 kbps)
[09:13:59] scan: 10 previews, 1440x2560, 60.000 fps, autocrop = 0/0/0/0, aspect 1:1.78, PAR 1:1, color profile: 1-1-1, chroma location: unspecified
[09:13:59] libhb: scan thread found 1 valid title(s)
[09:13:59] macgui: fr.handbrake.HandBrakeXPCService scan done
[09:13:59] macgui: fr.handbrake.HandBrakeXPCService started encoding source_video_41.00.mp4
[09:13:59] Starting work at: Mon Jul 20 09:13:59 2026
[09:13:59] macgui: fr.handbrake.HandBrakeXPCService with preset H.265 硬件编码 (已修改)
[09:13:59] 1 job(s) to process
[09:13:59] Starting Task: Encoding Pass
[09:13:59] work: skipping crop/scale filter
[09:13:59] work: only 1 chapter, disabling chapter markers
[09:13:59] job configuration:
[09:13:59] * source
[09:13:59] + /Users/jeffrey.deng/Downloads/source_video.mov
[09:13:59] + title 1, chapter(s) 1 to 1
[09:13:59] + container: mov,mp4,m4a,3gp,3g2,mj2
[09:13:59] + data rate: 735295 kbps
[09:13:59] * destination
[09:13:59] + /Users/jeffrey.deng/Downloads/source_video_41.00.mp4
[09:13:59] + container: MPEG-4 (libavformat)
[09:13:59] + optimized for HTTP streaming (fast start)
[09:13:59] * video track
[09:13:59] + decoder: prores 10-bit (yuv422p10le)
[09:13:59] + bitrate 735102 kbps
[09:13:59] + filters
[09:13:59] + Framerate Shaper (mode=1:rate=27000000/450000)
[09:13:59] + frame rate: 60.000 fps -> constant 60.000 fps
[09:13:59] + Format (format=p210le)
[09:13:59] + Output geometry
[09:13:59] + storage dimensions: 1440 x 2560
[09:13:59] + pixel aspect ratio: 1 : 1
[09:13:59] + display dimensions: 1440 x 2560
[09:13:59] + encoder: H.265 (VideoToolbox)
[09:13:59] + preset: quality
[09:13:59] + profile: auto
[09:13:59] + level: auto
[09:13:59] + quality: 41.00 (CQ)
[09:13:59] + color profile: 1-1-1
[09:13:59] + color range: tv
[09:13:59] + chroma location: unspecified
[09:13:59] * audio track 1
[09:13:59] + name: Stereo
[09:13:59] + decoder: Unknown (AAC LC, 2.0 ch, 179 kbps) (track 1, id 0x1)
[09:13:59] + bitrate: 179 kbps, samplerate: 48000 Hz
[09:13:59] + AAC Passthru
[09:13:59] sync: expecting 210 video frames
[09:13:59] encvt_Init: encoding with constant quality 41.000000
[09:13:59] encvt_Init: com.apple.videotoolbox.videoencoder.ave.hevc
[09:13:59] sync: first pts audio 0x1 is 0
[09:13:59] sync: first pts video is 120
[09:13:59] sync: "章节 1" (1) at frame 1 time 120
[09:14:01] reader: done. 1 scr changes
[09:14:02] work: average encoding speed for job is 0.000000 fps
[09:14:02] vfr: 210 frames output, 0 dropped and 0 duped for CFR/PFR
[09:14:02] vfr: lost time: 0 (0 frames)
[09:14:02] vfr: gained time: 0 (0 frames) (0 not accounted for)
[09:14:02] aac-decoder done: 165 frames, 0 decoder errors
[09:14:02] prores-decoder done: 210 frames, 0 decoder errors
[09:14:02] sync: got 210 frames, 210 expected
[09:14:02] sync: framerate min 60.000 fps, max 60.000 fps, avg 60.000 fps
[09:14:02] mux: track 0, 210 frames, 1845386 bytes, 4198.03 kbps, fifo 256
[09:14:02] mux: track 1, 165 frames, 79465 bytes, 180.77 kbps, fifo 256
[09:14:02] Finished work at: Mon Jul 20 09:14:02 2026
[09:14:02] libhb: work result = 0
[09:14:02] macgui: Queue Done, there are no more pending encodes
[09:14:02] macgui: fr.handbrake.HandBrakeXPCService work done
What Operating System are you running?
macOS15
What version of HandBrake are you running?
1.11.2
Where did you download HandBrake from?
brew
Activity
galad87 commentedon Jul 20, 2026
That's because the AAC audio priming delay is a bit of a mess in the demuxer, and it's trying to compensate (in a wrong way) for that. Disabling the audio passthru should fix it.
jeffrey-deng commentedon Jul 21, 2026
Thank you!
That's exactly the reason
I just tested and found out:
The issue is resolved after I simultaneously enabled "Align A/V Start" and switched to audio re-encoding (disabling Audio Passthrough).
Then I opened the issue page and found that you were also talking about this reason, hahaha
I just don't know why using ffmpeg is also using audio pass through works fine.
Is it because ffmpeg using
c:a copyautomatically trims the beginning of the audio?jeffrey-deng commentedon Jul 21, 2026
Is there an issue with HandBrake using the edit list?
DaVinci Resolve discards the first two frames when reading the file, indicating that the values written in the edit list actually mean to discard the preceding frames.
However, what HandBrake actually wants to do is to delay the entire video by 2 frames.
galad87 commentedon Jul 21, 2026
It's a collection of different issues, the main one is that HandBrake can't know if the part before the start of the edit list is a priming delay or not, and that part has got a negative pts, so pts are adjusted, and the sync code down the line adds some initial black frames to compensate for, but things might still be slightly out of sync.
jeffrey-deng commentedon Jul 21, 2026
Thank you, I roughly understand the reason now.
github-actions commentedon Aug 20, 2026
Hello,
Warning
This issue appears to be inactive and will be automatically closed within 5 days if no further activity is detected.
If you wish this issue to remain open, please request the stale label to be removed and an appropriate label assigned.
Tip
If this ticket is awaiting feedback, please make sure the requested information is provided. This may be a sample file, log files etc.
Thank You,
The HandBrake Bot