Skip to content

Improve audio codec handling in remux.js - #85

Open
avandeweghe wants to merge 1 commit into
technomancer702:mainfrom
avandeweghe:patch-2
Open

avandeweghe wants to merge 1 commit into
technomancer702:mainfrom
avandeweghe:patch-2

Conversation

@avandeweghe

Copy link
Copy Markdown
Contributor

Refactor audio codec handling to conditionally add aac_adtstoasc filter based on codec detection.

Refactor audio codec handling to conditionally add aac_adtstoasc filter based on codec detection.
@jackduckworth

Copy link
Copy Markdown

Without this code change, every combination of flags (Force Backend Proxy, Auto Transcode, Force Remux) results in a non-playing stream, and a server error:

[mp4 @ 0x564d1e6ae140] Malformed AAC bitstream detected: use the audio bitstream filter 'aac_adtstoasc' to fix it ('-bsf:a aac_adtstoasc' option with ffmpeg)

This change is the only way I have found to get M3U streams to work for me.

(I dont get any sound with firefox, for some reason, but I can hold my nose and use chrome.)

@freakshock88

Copy link
Copy Markdown

This also fixed a lot of video issues for me, exactly how @jackduckworth reports.
For anyone using docker-compose, you can temporarily use the fixes by OP by using this setup:

  nodecast-tv:
    build: https://github.com/avandeweghe/nodecast-tv.git#patch-2
    #image: ghcr.io/technomancer702/nodecast-tv:latest

@technomancer702

Copy link
Copy Markdown
Owner

I'll review and merge this as soon as possible. I'm out of the country on business currently with little time for dev.

galawi added a commit to galawi/nodecast-tv that referenced this pull request Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants