Repository navigation
feat(diagnostics): bridge FFmpeg av_log into EngineLog .ffmpeg category - #17
Merged
superuser404notfound merged 1 commit intoMay 25, 2026
Merged
superuser404notfound merged 1 commit into
superuser404notfound merged 1 commit into
Conversation
Install av_log_set_callback at AetherEngine init time and forward each line through EngineLog.emit under a new .ffmpeg category, formatted with av_log_format_line2 so FFmpeg's own [mp4 @ ...] / [h264 @ ...] subsystem prefixes survive. Default threshold AV_LOG_WARNING with AV_LOG_PRINT_LEVEL + AV_LOG_SKIP_REPEATED flags. Replaces stderr output that was invisible to App Store builds, in-app overlays, and aetherctl stdout. Co-Authored-By: Claude Opus 4.7 <[email protected]>
Owner
|
Merged as |
ijuniorfu
pushed a commit
to ijuniorfu/AetherEngine
that referenced
this pull request
Oct 11, 2026
…superuser404notfound#731) First stage of TrueHD Atmos with heights. LibTrueHD (the Rust `truehd` crate behind a C API, prebuilt like LibDovi) decodes presentation 3 of a TrueHD stream: bed, up to 15 objects and their OAMD with sample accurate update timing. The renderer places that into a fixed speaker bed (5.1.2 to 9.1.6, CoreAudio channel order) with dual-balance constant-power panning, object size, snap, zone masks and per-update gain ramps. Nothing is wired into playback yet. Ported from Silo's fork (Silo-Server#6, superuser404notfound#8, superuser404notfound#17), which offered it as a reference in superuser404notfound#731. The metadata mapping (speaker roles, elevation, zone masks, screen anchoring, ISF) gets its own tests here. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WJcXkGQrMiBPixVEFTSBJS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
FFmpegLogBridgeinstallsav_log_set_callbackand forwards every line throughEngineLog.emitunder a new.ffmpegcategory, formatted withav_log_format_line2so FFmpeg's own[mp4 @ ...]/[h264 @ ...]subsystem prefixes survive..ffmpegcase onEngineLog.Categorykeeps muxer / demuxer / decoder chatter filterable in Console.app independently of the engine's own log lines.FFmpegLogBridge.install()wired intoAetherEngine.init()before any libav* entry point runs, so probe/load diagnostics land in Console.app + any hostEngineLog.handlerfrom the first call.Why
Without the bridge, FFmpeg writes to stderr via its default callback — invisible to App Store builds, in-app overlays, and
aetherctl's timestamped stdout. Real diagnostic value (corrupt headers, missing PTS, decoder errors) was being silently dropped.Behavior
AV_LOG_WARNING— surfaces real problems without the per-segment[mp4 @ ...] track ...chatterAV_LOG_INFOemits during normal fMP4 muxing. Hosts wanting verbose output re-callFFmpegLogBridge.install(level: AV_LOG_VERBOSE).AV_LOG_PRINT_LEVEL(severity survives into Console) +AV_LOG_SKIP_REPEATED(a decoder spamming the same warning collapses to one line + aLast message repeated N timesfollow-up).install()overwrites the callback with the same function pointer, so the unconditional call inAetherEngine.init()is safe across multiple engine instances.EngineLog.emitalready promises thread-safety (OSLog is, and any host handler is required to be byEngineLog's contract).