iPhone spatial audio issue
Posted: Wed Dec 25, 2024 7:13 pm
Recently ran into an issue where videos from the latest iPhones were failing in both my Vantage(flip64) and FFAStrans worfklows. After poking around I find that their spatial audio, tagged as "apac", shows up as a second four channel audio stream. Both Vantage and FFAStrans default is to decode all audio streams so the user can do what they want with them downstream, unfortunately this fails when one of those audio streams has no decoders available. It's unfortunate as the first stream is completely normal AAC stereo stream.
I've attached(Merry Xmas!) my current workaround in FFAStrans, a snip from a larger workflow. It uses mediainfo to see if apac is present, if yes then it hits a custom FFMPEG block that removes the second audio stream. It's clunky and will break if any of the assumptions change, so if the codec name changes from apac, or if it's not the second audio stream, etc.
This brings up a feature request for the devs. Perhaps when no decoder is available instead of failing the whole thing just ignore the non-decodable stream? Or maybe there is a better way to do this with existing workflow nodes?
I've attached(Merry Xmas!) my current workaround in FFAStrans, a snip from a larger workflow. It uses mediainfo to see if apac is present, if yes then it hits a custom FFMPEG block that removes the second audio stream. It's clunky and will break if any of the assumptions change, so if the codec name changes from apac, or if it's not the second audio stream, etc.
This brings up a feature request for the devs. Perhaps when no decoder is available instead of failing the whole thing just ignore the non-decodable stream? Or maybe there is a better way to do this with existing workflow nodes?