Opened 4 months ago
Closed 4 months ago
#11224 closed defect (duplicate)
-filter_complex "[0:a] ..." does not skip disabled tracks
Reported by: | markshw2222 | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | tools |
Version: | git-master | Keywords: | stream_map |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description (last modified by )
IPhone 16 introduced spatial audio. They use multiple audio tracks to carry audio. One track is enabled the other is disabled. When specifying filter_complex "[0:a]..." the first audio track is selected, even it is disabled
In this case, the disable track also have no audio codec set, so conversion fails
./ffmpeg -y -i ~/Downloads/spatial_audio_test_swapped_short.MOV -map 0:v -c:v copy -filter_complex "[0:a] asetpts=PTS-STARTPTS [output_audio]" -map '[output_audio]' -c:a aac ~/multiaudio.mp4
[aist#0:1/none @ 0x122609b40] Decoding requested, but no decoder found for: none
Attachments (1)
Change History (4)
by , 4 months ago
Attachment: | spatial_audio_test_swapped_short.MOV added |
---|
comment:1 by , 4 months ago
comment:2 by , 4 months ago
Description: | modified (diff) |
---|
comment:3 by , 4 months ago
Component: | undetermined → tools |
---|---|
Keywords: | stream_map added |
Resolution: | → duplicate |
Status: | new → closed |
Version: | unspecified → git-master |
note: if I'm explicit in track selection
-filter_complex "[0:a:1] asetpts=PTS-STARTPTS [output_audio]" - will work as I select good track
-filter_complex "[0:a:0] asetpts=PTS-STARTPTS [output_audio]" - will fail as I select disabled track (with no codec info)