Skip to content

FFmpeg process crash on Spatial Audio files #47

Closed

Description

@addisonking

i believe its a Spatial Audio issue. i tested with and without and only with, is the error thrown.

Image

Logs:

ffmpeg version 8.1-https://www.martin-riedl.de Copyright (c) 2000-2026 the FFmpeg developers
built with Apple clang version 14.0.0 (clang-1400.0.29.102)
configuration: --prefix=/Volumes/ffmpeg_arm64/out --pkg-config-flags=--static --extra-version='https://www.martin-riedl.de' --enable-gray --enable-libxml2 --enable-gpl --enable-libfreetype --enable-fontconfig --enable-libharfbuzz --enable-libsnappy --enable-libsrt --enable-libvmaf --enable-libass --enable-libklvanc --enable-libzimg --enable-libzvbi --enable-libaom --enable-libdav1d --enable-libopenh264 --enable-libopenjpeg --enable-librav1e --enable-libsvtav1 --enable-libvpx --enable-libvvenc --enable-libwebp --enable-libx264 --enable-libx265 --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libtheora
libavutil      60. 26.100 / 60. 26.100
libavcodec     62. 28.100 / 62. 28.100
libavformat    62. 12.100 / 62. 12.100
libavdevice    62.  3.100 / 62.  3.100
libavfilter    11. 14.100 / 11. 14.100
libswscale      9.  5.100 /  9.  5.100
libswresample   6.  3.100 /  6.  3.100
[in#0/mov,mp4,m4a,3gp,3g2,mj2 @ 0x121805450] Could not find codec parameters for stream 2 (Audio: none (apac / 0x63617061), 48000 Hz, 4 channels, 384 kb/s): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[aist#0:2/none @ 0x10fe04a70] Guessed Channel Layout: 4.0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/addis/Code/hitclip/test.mov':
Metadata:
major_brand     : qt
minor_version   : 0
compatible_brands: qt
creation_time   : 2026-05-07T15:29:28.000000Z
com.apple.quicktime.location.accuracy.horizontal: 4.748652
com.apple.quicktime.full-frame-rate-playback-intent: 0
com.apple.quicktime.location.ISO6709: +40.7398-073.7687+028.564/
com.apple.quicktime.make: Apple
com.apple.quicktime.model: iPhone 17 Pro Max
com.apple.quicktime.software: 26.5
com.apple.quicktime.creationdate: 2026-05-07T11:29:27-0400
Duration: 00:03:18.68, start: 0.000000, bitrate: 56225 kb/s
Stream #0:0[0x1](und): Video: hevc (Main 10) (hvc1 / 0x31637668), yuv420p10le(tv, bt2020nc/bt2020/arib-std-b67), 3840x2160, 55575 kb/s, 59.99 fps, 60 tbr, 600 tbn (default)
Metadata:
creation_time   : 2026-05-07T15:29:28.000000Z
handler_name    : Core Media Video
vendor_id       : [0][0][0][0]
encoder         : HEVC
Side data:
DOVI configuration record: version: 1.0, profile: 8, level: 9, rpu flag: 1, el flag: 0, bl flag: 1, compatibility id: 4, compression: 0
Ambient viewing environment: ambient_illuminance=314.000000, ambient_light_x=0.312700, ambient_light_y=0.329000
Stream #0:1[0x2](und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 161 kb/s (default)
Metadata:
creation_time   : 2026-05-07T15:29:28.000000Z
handler_name    : Core Media Audio
vendor_id       : [0][0][0][0]
Stream #0:2[0x3](und): Audio: none (apac / 0x63617061), 48000 Hz, 4.0, 384 kb/s
Metadata:
creation_time   : 2026-05-07T15:29:28.000000Z
handler_name    : Core Media Audio
vendor_id       : [0][0][0][0]
Stream #0:3[0x4](und): Data: none (mebx / 0x7862656D) (default)
Metadata:
creation_time   : 2026-05-07T15:29:28.000000Z
handler_name    : Core Media Metadata
Stream #0:4[0x5](und): Data: none (mebx / 0x7862656D), 0 kb/s (default)
Metadata:
creation_time   : 2026-05-07T15:29:28.000000Z
handler_name    : Core Media Metadata
Stream #0:5[0x6](und): Data: none (mebx / 0x7862656D), 0 kb/s (default)
Metadata:
creation_time   : 2026-05-07T15:29:28.000000Z
handler_name    : Core Media Metadata
Stream #0:6[0x7](und): Data: none (mebx / 0x7862656D), 71 kb/s (default)
Metadata:
creation_time   : 2026-05-07T15:29:28.000000Z
handler_name    : Core Media Metadata
Stream #0:7[0x8](und): Data: none (mebx / 0x7862656D), 5 kb/s (default)
Metadata:
creation_time   : 2026-05-07T15:29:28.000000Z
handler_name    : Core Media Metadata
Stream #0:8[0x9](und): Data: none (mebx / 0x7862656D), 0 kb/s (default)
Metadata:
creation_time   : 2026-05-07T15:29:28.000000Z
handler_name    : Core Media Metadata
[aist#0:2/none @ 0x10fe04a70] Decoding requested, but no decoder found for: none
Error opening output file /Users/addis/Code/hitclip/test_converted.mp4.
Error opening output files: Invalid argument
[ERROR] Worker process error: Process terminated with code Some(234)

Activity

  1. addisonking commented on May 8, 2026

    @addisonking
    ContributorAuthor

    solution generated using opus 4.7 and kimi k2.6

    i dont want to pr this because i havent reviewed the code but just wanted to have it as a reference since it works.

    summary:

    1. Probe filtering (probe.rs): Audio and subtitle streams with codec_name: None or "none" are now excluded from ProbeMetadata. This prevents the wrapper from attempting to map the apac (Apple Spatial Audio) stream.
    2. Probe-aware stream mapping (args.rs, upscale.rs): build_ffmpeg_args and build_upscale_encode_args now accept ProbeMetadata. When no tracks are explicitly selected, instead of wildcard mapping (-map 0:a?), the builder emits explicit -map 0:{index} for each known-valid track. This preserves all normal multi-track files while skipping unsupported streams.
    3. Drop data streams (-dn): Added to all conversion paths to explicitly drop metadata/data streams (e.g., mebx) that FFmpeg cannot decode.
    4. Backwards compatibility: The original function signatures remain as test-only wrappers calling the new probe-aware variants, so all 119 existing tests pass unchanged.
  2. 66HEX commented on Jul 17, 2026

    @66HEX
    Owner

    Fixed in fd374af
    This fix will be included in the next release 😁

  3. 66HEX commented on Jul 26, 2026

    @66HEX
    Owner

    Frame v.0.32.0 is out, issue is resolved

  4. added
    area:audio
    area:ffmpeg
    bug
    and removed
    bug
    area:audio
    area:ffmpeg
    on Nov 22, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions