Support AAC de- and encoding on Linux

  • Author
  • Message
Offline

PatsAdventuresTravels

  • Posts: 9
  • Joined: Sun May 16, 2021 10:37 am
  • Real Name: Pat Cline

Re: Support AAC de- and encoding on Linux

PostMon Sep 09, 2024 10:19 am

nthomas20 wrote:I run this one-liner script to ffmpeg convert the files. I've separated the two sections so prevent copy/paste accidents when running the script as the second half IS destructive.

```
for i in *.mp4; do ffmpeg -i "$i" -c:v copy -c:a pcm_s16le -f mov "${i%.*}.mov"; done
```

I run it all in the same directory as the source files that ALL have audio that needs to be converted. You can update the file extensions as you see fit.

In my script, I also remove and rename the resultant files

```
rm *.mp4

for i in *.mov; do mv "$i" "${i%.*}.mp4"; done
```

So, before and after the script run it looks like nothing has changed, except the audio stream has been converted.

This works for me as I need, but can be changed to suit your needs, file structure, and workflow.


Thanks I'll give it a shot and see what I can mess up lol
Offline

PatsAdventuresTravels

  • Posts: 9
  • Joined: Sun May 16, 2021 10:37 am
  • Real Name: Pat Cline

Re: Support AAC de- and encoding on Linux

PostMon Sep 09, 2024 11:52 am

nthomas20 wrote:I run this one-liner script to ffmpeg convert the files. I've separated the two sections so prevent copy/paste accidents when running the script as the second half IS destructive.


Thanks that worked like a charm! Now my Linux Distro is working the way I want!!
Offline
User avatar

FuzzeeDee

  • Posts: 109
  • Joined: Sun Oct 18, 2020 5:41 pm
  • Location: Alberta, Canada
  • Real Name: David Reid

Re: Support AAC de- and encoding on Linux

PostSat Nov 09, 2024 2:01 am

atmosfar wrote:So ffmpeg can't be distributed with DR, I guess that's the licensing issue? But it doesn't seem that big a deal, like said earlier it's already included in most distros and it's fairly trivial to obtain it yourself. Lots of other software deals with this issue (ie Reaper) or similar when exporting MP3s with LAME.


I installed ffmpeg and a separate AC3 encoder on my Linux Mint 22. I still can't get audio from anything with AAC or AC3 in it. I've been trying Handbrake to re encode but I can't seem to change the available audio codec manually. Only what is in a preset and none of the presets I've tried will work.

I'm trying to ditch windows for good and having to boot up windows to re encode all my clips or clients clips defeats the purpose.
-
➤ DVR 19.1.2 Studio
CPU: Ryzen 9 5900XT 16C
MB: Gigabyte B550 Vision D-P
➤ WiFi 6, BT 5, 2.5Gb Ethernet
RAM: 64 GB Corsair 3600Mhz
GPU: EVGA RTX 3090 ftw 24GB
PSU: 850W 80+ Gold
OS: [b]Linux Mint/Cinnamon 22.1
Offline

Andrew Kolakowski

  • Posts: 9504
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: Support AAC de- and encoding on Linux

PostSat Nov 09, 2024 9:35 pm

Resolve doesn't care about system codecs, so it doesn't matter what you will install.
You need to transcode audio to PCM upfront like explained in the post above.
Offline

federgejzla

  • Posts: 1
  • Joined: Sun Nov 10, 2024 6:19 pm
  • Real Name: Aleksandar Susnjar

Re: Support AAC de- and encoding on Linux

PostSun Nov 10, 2024 6:34 pm

I'm trying to add my vote here.

After decades with Adobe suite I cancelled it for a variety of reasons, only some of which are the commonly talked about. I don't need to go there. I am doing my editing on a machine I built for that, not Apple, yet I'm also fed up of Windows, again for more reasons than commonly talked about. The third option, Linux, is a natural one for me as I am a software engineer too and I use it daily. I am not claiming that Linux is perfect but it can be made to work and I am beginning to believe that many people unhappy with the other two (Microsoft, Apple) have good reasons but only one choice - Linux... and we should take the opportunity to make it work (better than it does).

Setting up BMDDVR (Studio) on Linux is major pain in the behind for anyone wanting to use the same computer for other things too and won't use the same Linux distribution. I tried a few things in the free version to make my decision and purchased the license last night to gain access to more codecs, among other things. It didn't even occur to me that the absolute majority of my recordings would be treated as silent movies that require me to jump through hoops and/or (potentially) lose quality (in some alternatives) because AAC doesn't work in it even though every other app I use in Linux is handling them just fine

This is a foundational, basic functionality. It must be made present, it is inexcusable at this point that it isn't there.
Offline

Dave Pease

  • Posts: 2
  • Joined: Sun Aug 05, 2018 1:10 am
  • Real Name: Dave Pease

Re: Support AAC de- and encoding on Linux

PostWed Nov 13, 2024 4:30 pm

With the Windows 10 support going away in 11 months and Windows 11 requiring older system hardware refresh, this issue of not support industry pervasive AAC on linux is the the top issue for us that is driving our future plans.

Is AAC support on the development roadmap, and what would be the timeframe?
Offline

FamousDirector

  • Posts: 1
  • Joined: Tue Nov 26, 2024 2:25 am
  • Real Name: Nino de Borba

Re: Support AAC de- and encoding on Linux

PostTue Nov 26, 2024 2:30 am

If you need to batch extract and convert audio in Linux, you can do it with a certain piece of software that you probably already have.

VLC

Simply go to Media -> Convert/Save, and the GUI will guide you. Oddly enough, to start the conversion you must press the play button. Weird but it works.

PS: I created an account here just for this comment, and boy were those anti-bots questions hard! I actually did ask ChatGPT for the answer. And it worked.
Offline

annielm

  • Posts: 23
  • Joined: Sun Oct 11, 2020 9:30 pm
  • Real Name: Annie Chen

Re: Support AAC de- and encoding on Linux

PostFri Jan 03, 2025 10:33 am

FuzzeeDee wrote:
atmosfar wrote:So ffmpeg can't be distributed with DR, I guess that's the licensing issue? But it doesn't seem that big a deal, like said earlier it's already included in most distros and it's fairly trivial to obtain it yourself. Lots of other software deals with this issue (ie Reaper) or similar when exporting MP3s with LAME.


I installed ffmpeg and a separate AC3 encoder on my Linux Mint 22. I still can't get audio from anything with AAC or AC3 in it. I've been trying Handbrake to re encode but I can't seem to change the available audio codec manually. Only what is in a preset and none of the presets I've tried will work.

I'm trying to ditch windows for good and having to boot up windows to re encode all my clips or clients clips defeats the purpose.


I have exactly the same issue and I am on LinuxMint 22 as well. It feels counter-productive when you have to use third party software to encode first especially when you have to deal with lots of them. I wish paid studio deals with this at least.
➤ DVR 19.1.3 Studio
➤ CPU: AMD Ryzen 5 3600 6-Core Processor × 6
➤ RAM: 31.3 GiB
➤ GPU: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
➤ OS: Linux Mint 22/Cinnamon
Offline

annielm

  • Posts: 23
  • Joined: Sun Oct 11, 2020 9:30 pm
  • Real Name: Annie Chen

Re: Support AAC de- and encoding on Linux

PostFri Jan 03, 2025 5:38 pm

chlowden wrote:The install is very easy to install and the plugin is very well documented.
No. It does not do ingest; only exports. There is not much you can change on AAC codec parameters ... but it is great for my needs. Also, the pack comes with other exotic codecs.


So are you saying... we still need to export a wav file from the mp4 source file as a separate track to work with, then we need this plugin to export the final product in mp4 with aac as audio? What happens now if we don't use the plugin? What format are you guys exporting? I just bought it yesterday so I don't know how things work yet.
➤ DVR 19.1.3 Studio
➤ CPU: AMD Ryzen 5 3600 6-Core Processor × 6
➤ RAM: 31.3 GiB
➤ GPU: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
➤ OS: Linux Mint 22/Cinnamon
Offline
User avatar

roger.magnusson

  • Posts: 3860
  • Joined: Wed Sep 23, 2015 4:58 pm

Re: Support AAC de- and encoding on Linux

PostFri Jan 03, 2025 8:27 pm

If you need to export an mp4, you can set the audio codec to FLAC. That will work for most software players and for YouTube. Might not work with old hardware playback devices.

Or export to QuickTime .mov, where you'll have other options (LPCM for audio and tons of options for video).
Offline

annielm

  • Posts: 23
  • Joined: Sun Oct 11, 2020 9:30 pm
  • Real Name: Annie Chen

Re: Support AAC de- and encoding on Linux

PostMon Jan 06, 2025 12:52 pm

roger.magnusson wrote:If you need to export an mp4, you can set the audio codec to FLAC. That will work for most software players and for YouTube. Might not work with old hardware playback devices.

Or export to QuickTime .mov, where you'll have other options (LPCM for audio and tons of options for video).


Thanks for the tips. I will try it out!
➤ DVR 19.1.3 Studio
➤ CPU: AMD Ryzen 5 3600 6-Core Processor × 6
➤ RAM: 31.3 GiB
➤ GPU: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
➤ OS: Linux Mint 22/Cinnamon
Offline

jacobgkau

  • Posts: 3
  • Joined: Mon Aug 27, 2018 2:10 am
  • Real Name: Jacob Kauffmann

Re: Support AAC de- and encoding on Linux

PostMon May 12, 2025 11:55 pm

markhimsley wrote:I asked Peter Chamberlain in an email chain "why AAC is not an acceptable CODEC on Linux" and he replied that "the simple answer is due to licensing".
This really makes zero sense if you think about the catch-22 of the logic behind it. If AAC's too expensive to fit into the price of Resolve, then how is it licensed for Windows and macOS? Oh, they use the decoder built into the OS-- so why can't the Linux version do that? Well it can't use the OS's decoder-- so why can't it be licensed on Linux the same as on Windows/macOS? And so on.

And no, if the problem is "distributing ffmpeg would be illegal," Resolve doesn't need to do that because it's already available on the officially supported distributions (and many more). But then "we can't just use what the OS distributes, we'd need to ship it ourselves" -> "you're able to do that with the other OS's" -> keep repeating.
Offline

Andrew Kolakowski

  • Posts: 9504
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: Support AAC de- and encoding on Linux

PostTue May 13, 2025 12:57 pm

AAC is not free and you have to pay licensing. Answer to all your questions is simple- money :D
Apple and MS (MS is part of the licensing group, so probably pays way less) paid a lot of money to have it included into OS. You can use it in other apps, like Resolve does.
Linux is not MS or Apple and have no such a money or need to include AAC decoder and pay huge licensing fees.
Ffmepg route also won't work (as you described). You would need to obtain libraries yourself and then Resolve could link into it, but this is also grey area and BM simply doesn't want to do it to upset industry partners or face some legal actions.
Whole licensing crap is complex and even uses of free ffmpeg libraries in paid software has rules and limitations. Resolve already uses "ffmpeg" code. If it was 'easy' then AAC decoder would be in Resolve years ago.
Offline
User avatar

ItsAMeMicah

  • Posts: 34
  • Joined: Mon Nov 14, 2022 9:52 pm
  • Real Name: Micah Pendleton

Re: Support AAC de- and encoding on Linux

PostTue May 13, 2025 4:12 pm

Yes please! AAC on Linux would be greatly helpful!

But before that, I would definitely like either official Ubuntu support or a universal installer version of Resolve, like Flatpak or AppImage
Cameras: PYXIS 6K, Cinema Camera 6K Full Frame, PCC6K Pro, Panasonic S5iix, a6300.
Editor: DaVinci Resolve Studio
VFX: Blender, Fusion, Autograph
Graphics: Inkscape, GIMP, Krita
Capture: Decklink Quad HDMI 4K
OS: Kubuntu 24.04
Previous

Return to DaVinci Resolve Feature Requests

Who is online

Users browsing this forum: Bing [Bot] and 19 guests