Opened 3 days ago

Last modified 3 days ago

#11223 new defect

"-map 0:a" alike did not skip streams tagged disabled

Reported by: markshw2222 Owned by:
Priority: normal Component: tools
Version: git-master Keywords: stream_map
Cc: MasterQuestionable Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by markshw2222)

IPhone 16 introduced spatial audio. They use multiple audio tracks to carry audio. One track is enabled the other is disabled. When specifying -map 0:a ALL audio tracks are iterated including disabled tracks.
In this case, the disable track also have no audio codec set, so conversion fails

Apple spec: https://developer.apple.com/documentation/quicktime-file-format/preparing_sound_and_subtitle_alternate_groups_for_use_with_apple_devices/

./ffmpeg -y -i ~/Downloads/spatial_audio_test.MOV -map 0:v -map 0:a -c:v copy -c:a aac ~/multiaudio.mp4

Failure:
[aist#0:2/none @ 0x14a709b50] Decoding requested, but no decoder found for: none

Attachments (1)

spatial_audio_test_short.MOV (1.6 MB ) - added by markshw2222 3 days ago.

Download all attachments as: .zip

Change History (5)

by markshw2222, 3 days ago

comment:1 by markshw2222, 3 days ago

Description: modified (diff)

comment:2 by markshw2222, 3 days ago

Note: if I'm explicit with track selection:

-map 0:a:1 - will fail as I select the disabled track (with bad codec)
-map 0:a:0 - will pass as I select the good track

comment:3 by markshw2222, 3 days ago

Description: modified (diff)

comment:4 by MasterQuestionable, 3 days ago

Cc: MasterQuestionable added
Component: undeterminedtools
Keywords: stream_map added
Summary: -map 0:a does not skip disabled tracks"-map 0:a" alike did not skip streams tagged disabled
Version: unspecifiedgit-master

͏    Alike non-sense but worse:
͏    https://trac.ffmpeg.org/ticket/11201#comment:7

͏    Is such bloat-ware practice akin to their software philosophy..?


͏    Duplicate:
͏    `-filter_complex "[0:a] ..."` does not skip disabled tracks
͏    https://trac.ffmpeg.org/ticket/11224

Last edited 3 days ago by MasterQuestionable (previous) (diff)
Note: See TracTickets for help on using tickets.