ChrisTitusTech / ChrisTitusTech/resolve-linux

Secondary audio tracks are dropped and channel layout is forced to stereo

Open Beginner friendly
#4 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
72
Forks
10
PR merge metrics
No merged PRs in 30d

Description

Steps to reproduce

  1. Create a source with two audio tracks (mimics OBS mic + desktop):
    ffmpeg -f lavfi -i testsrc2=size=640x360:rate=30
    -f lavfi -i sine=frequency=440 -f lavfi -i sine=frequency=880
    -t 2 -map 0:v -map 1:a -map 2:a
    -c:v libx264 -pix_fmt yuv420p -c:a aac -y /tmp/multi.mp4

  2. ./resolve_convert.sh -o /tmp/out /tmp

  3. ffprobe -v error -show_entries stream=index,codec_type,codec_name,channels
    -of csv=p=0 /tmp/out/multi.mov

Expected behavior

Both audio tracks preserved, original channel layouts intact.

Actual behavior

SOURCE:  0,h264,video / 1,aac,audio,1 / 2,aac,audio,1
OUTPUT:  0,dnxhd,video / 1,pcm_s24le,audio,2

The second track is gone, and -ac 2 upmixed the surviving mono track to
fake stereo.

Two causes:

  • No -map, so ffmpeg's default selection takes one video and one audio
    stream and discards the rest.
  • -ac 2 forces a stereo layout regardless of the source, downmixing
    surround and upmixing mono.

This affects anyone recording separate mic and desktop tracks in OBS, and
anyone with multi-channel source audio. The loss is silent — it surfaces
in Resolve after the footage is already on the timeline.

Environment

OS: Nobara 44
ffmpeg: 8.1.2
bash: 5.3.9(1)-release (x86_64-redhat-linux-gnu)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with resolve_convert.sh and reproduce the issue using the provided ffmpeg command and conversion command. Use ffprobe on the output to verify that both audio tracks are preserved and their original channel layouts remain intact; the issue is done when the output matches those expectations.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
audio-video-rtc, cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
76/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.