Skip to content

A crash when opening AV1 file that was converted earlier with HandBrake #8243

Open

Description

@DmitryScaletta

Problem Description

Steps to reproduce

Download this sample and open it in the app
Sample:
https://github.com/user-attachments/assets/4474d9b3-e8ad-4355-a239-85d7a4b1fc2d

Original file:
https://www.pexels.com/video/siberian-husky-relaxing-in-garden-closeup-39086749/

Additional info

This sample was converted using HandBrake and SVT-AV1.
I only noticed it recently, not sure how long this bug has been around.

MediaInfo

General
Complete name               : F:\16632547_3840_2160_30fps_.mp4
Format                      : MPEG-4
Format profile              : Base Media / Version 2
Codec ID                    : mp42 (mp42/av01/iso2/mp41)
File size                   : 1.81 MiB
Duration                    : 14 s 748 ms
Overall bit rate            : 1 027 kb/s
Frame rate                  : 29.970 FPS
Encoded date                : 2026-11-07 12:35:14 UTC
Tagged date                 : 2026-11-07 12:35:14 UTC
Writing application         : HandBrake 20261105231520-238f82455-master 2026110601

Video
ID                          : 1
Format                      : AV1
Format/Info                 : AOMedia Video 1
Codec ID                    : av01
Duration                    : 14 s 748 ms
Bit rate                    : 1 026 kb/s
Width                       : 3 840 pixels
Height                      : 2 160 pixels
Display aspect ratio        : 16:9
Frame rate mode             : Constant
Frame rate                  : 29.970 (30000/1001) FPS
Color space                 : YUV
Bits/(Pixel*Frame)          : 0.004
Stream size                 : 1.80 MiB (100%)
Encoded date                : 2026-11-07 12:35:14 UTC
Tagged date                 : 2026-11-07 12:35:14 UTC
Color range                 : Limited
Color primaries             : BT.709
Transfer characteristics    : BT.709
Matrix coefficients         : BT.709
Codec configuration box     : av1C

Activity Log, Crash Log or any other details

HandBrake Nightly 20261105231520-238f82455-master (2026110601)
OS: Microsoft Windows NT 10.0.19045.0
CPU: AMD Ryzen 7 5700X 8-Core Processor             
Ram: 32693 MB, 
GPU Information:
  AMD Radeon RX 5700 XT - 32.0.21045.1000
Screen: 2560x1440
Temp Dir: C:\Users\User\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake Nightly\
Data Dir: C:\Users\User\AppData\Roaming\HandBrake\Nightly

-------------------------------------------
[15:35:58] hb_init: starting libhb thread

 # Starting Scan ...

[15:35:58] OS: Windows 10.0 (19045)
[15:35:58] CPU: AMD Ryzen 7 5700X 8-Core Processor
[15:35:58]  - logical processor count: 16
[15:35:58] Intel Quick Sync Video support: no
[15:35:58] hb_scan: path=F:\16632547_3840_2160_30fps_.mp4, title_index=0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'F:\16632547_3840_2160_30fps_.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 512
    compatible_brands: mp42av01iso2mp41
    creation_time   : 2026-11-07T12:35:14.000000Z
    encoder         : HandBrake 20261105231520-238f82455-master 2026110601
  Duration: 00:00:14.75, start: 0.000000, bitrate: 1027 kb/s
  Stream #0:0[0x1](und): Video: av1 (libdav1d) (Main) (av01 / 0x31307661), yuv420p(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 1025 kb/s, 29.97 fps, 29.97 tbr, 90k tbn (default)
    Metadata:
      creation_time   : 2026-11-07T12:35:14.000000Z
      handler_name    : VideoHandler
[15:35:58] scan: decoding previews for title 1

What Operating System are you running?

Windows 10

What version of HandBrake are you running?

HandBrake-20261105-238f82455-x86_64-Win_GUI.exe

Where did you download HandBrake from?

https://github.com/HandBrake/HandBrake-snapshots/releases/tag/win

Activity

  1. galad87 commented on Nov 7, 2026

    @galad87
    Contributor

    Try to disable the hardware AMD decoders in the settings.

  2. DmitryScaletta commented on Nov 7, 2026

    @DmitryScaletta
    Author

    Try to disable the hardware AMD decoders in the settings.

    Yeah, looks like that's the issue.
    When I disabled this checkbox, the app doesn't crash anymore.
    Image

  3. galad87 commented on Nov 7, 2026

    @galad87
    Contributor

    It's disabled by default now, but if you run a previous snapshot it was already set to on. The actual crash might be fixed by #8241

  4. DmitryScaletta commented on Nov 7, 2026

    @DmitryScaletta
    Author

    It's disabled by default now, but if you run a previous snapshot it was already set to on. The actual crash might be fixed by #8241

    I had this bug on a previous snapshot (Nightly 20261102170642-b48c2e982) and just updated to the latest one to make sure it's still occurs.

  5. sr55 commented on Nov 7, 2026

    @sr55
    Contributor

    That change hasn't made it into the snapshot yet.

  6. DmitryScaletta commented on Nov 11, 2026

    @DmitryScaletta
    Author

    FYI: latest snapshot HandBrake-20261109-55980d8b3, I still have the same issue. Looks like #8241 didn't fix it for me.

  7. galad87 commented on Nov 11, 2026

    @galad87
    Contributor

    @Hotactioncop another one for you if you have time.

  8. Hotactioncop commented on Nov 16, 2026

    @Hotactioncop
    Contributor

    @DmitryScaletta

    I've tested this issue on the following configurations using the AV1 video sample you provided:

    • Master branch with AMD Radeon RX 6800 and RX 9070.
    • Nightly build from November 13, 2026 with AMD Radeon 5800H, which does not support AV1 hardware decoding, as this feature was not yet available on the 5000 series.

    In my tests, error handling works correctly, and I haven't been able to reproduce the crash, even on the GPU without AV1 hardware decoding support.
    It's possible that a fix merged three days ago has already resolved the issue.

    Could you please try reproducing the crash with the latest nightly build and let us know if the issue still persists?

    Also, could you please share your AMD graphics driver version?

    Short activity log below:

    ...
    [15:41:49] scan: decoding previews for title 1
    [15:41:49] vcn decoder: is available
    [av1_amf @ 000001bf9482e180] Decoder initialization failed with error 1
    [15:41:49] decavcodecvInit: avcodec_open failed
    Decoder init failed!
    [15:41:49] scan: decoding previews for title 1
    [15:41:50] using container PAR 1:1
    [15:41:50] scan: 10 previews, 3840x2160, 29.970 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
    [15:41:50] libhb: scan thread found 1 valid title(s)
    [15:41:50] Skipping subtitle scan.  No suitable subtitle tracks.
    [15:41:50] Starting Task: Encoding Pass
    [15:41:50] work: only 1 chapter, disabling chapter markers
    ...
     # Job Completed!
    

    Detailed activity log attached.

    HandBrake Nightly 20261111210657-Activity Log.txt

  9. DmitryScaletta commented on Nov 19, 2026

    @DmitryScaletta
    Author

    Could you please try reproducing the crash with the latest nightly build and let us know if the issue still persists?

    Nightly 20261116172309-005b91a69-master (2026111601)
    The issue still persists.

    Also, could you please share your AMD graphics driver version?

    26.11.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions