Dwaine Maggart wrote:I did a sanity check with 17.4.6 Studio on Linux with an NVIDIA GPU.
And while the Audio tab of the Deliver page Codec dropdown menu is totally blank and has no selections with Format MP4 selected in the Video tab, it does indeed render Linear PCM 48000 Hz audio for both H.264 and H.265 Codec selections.
Fun!
We weren't imagining things!
I started using DR at the end of version 16 exporting almost every project to mp4 since the platforms I use recommend it. So it's behaved like that for a bit. Given mov and mp4 are so similar, the file sizes come out within a few MB over the handful of 5-10 min encodes I've tested. So it's mainly the platform compatibility that makes losing mp4 audio frustrating for me.
I've been reading quite a bit on this the past few weeks since in another thread it was said that MP4 lacks support for LPCM, but I'm having trouble finding anything that says it is explicitly unsupported. The main result for lack of support is from ffmpeg throwing errors. There seems to be mentions in parts of the mpeg-4 specs over the years about PCM audio. For instance, in the mpeg-d spec from 2005 it says
...it could be any of a number of high-performance compression algorithms such as MPEG-1 Layer III, MPEG-4 AAC or MPEG-4 High Efficiency AAC, or it could even be PCM.
It's important to note the context for that was for mpeg surround audio specifically though. There are more recent mentions in draft specs and meeting notes that I could find from around 2015-2018 though.
There's also mention of explicit support for LPCM audio in MP4 files with video in the mpeg-4 ALS spec. Given the age of that I'm not sure how that plays into modern versions of the specifications. Ffmpeg for instance only has decode support for mpeg-4 ALS encoded files, which may explain why it's thrown errors for years.
I'm certainly no expert at reading these specs though. Saying they're hard to navigate is an understatement IMO. Plus the publicly available ones are outdated.
One interesting thing I noticed researching this though is that for the mpeg-4 spec header there is both a 'lpcm' and a 'sowt' tag (actually a few variants for the later), both representing pcm. My Resolve 17 exports have the 'sowt' tag which is what Apple mentions on their QTFF documentation, but the 'lpcm' tag is what's listed on the mp4ra.org codecs list (also maintained by Apple). No clue if that means anything, but caused some confusion till I found an explanation of what 'sowt' was.
I also tried going through previous versions of a few wiki articles to see when and why they added LPCM as supported by mp4, but didn't have much luck past being sent back to the same iso spec references I'd already been through.