mp3 encoding on Linux

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

Devonavar

  • Posts: 117
  • Joined: Thu Feb 18, 2021 11:29 pm
  • Location: Canada
  • Real Name: Devon Cooke

mp3 encoding on Linux

PostWed Mar 03, 2021 6:56 pm

I was pleased to see this note in the release notes for Resolve Studio 17:
Decoding and encoding mp3 audio in Linux.


I'm pleased to note that importing mp3s works flawlessly.

I still can't figure out how to export files with mp3s. Mp3 doesn't show up as an option in the deliver page, I'm still restricted to IEEE Float and Linear PCM. Am I missing something simple, or is this option not enabled as advertised?
Devon Cooke

The Hands that Feed Us
www.thehandsthatfeedus.ca
Resolve Studio 19.1.2
Offline

smunaut

  • Posts: 529
  • Joined: Sat Jan 30, 2021 6:15 pm
  • Real Name: Sylvain Munaut

Re: mp3 encoding on Linux

PostWed Mar 03, 2021 7:27 pm

Yeah same here ... can't see any option to encode to mp3.
And I'm using Studio, release 17.0
Resolve Studio - Ryzen 5800X3D - AMD RX6600 / NVidia RTX 4070 (switching between the 2) - Linux
Offline

peter.quiel

  • Posts: 6
  • Joined: Sat Dec 26, 2020 8:00 am
  • Real Name: Peter Quiel

Re: mp3 encoding on Linux

PostThu Mar 04, 2021 3:56 pm

Encoding MP3 files works for me, but I can't encode it in container format.
MP3 isn't shown in the audio codec export drop down as well.

Know issue? Anything I can do?
Offline

Devonavar

  • Posts: 117
  • Joined: Thu Feb 18, 2021 11:29 pm
  • Location: Canada
  • Real Name: Devon Cooke

Re: mp3 encoding on Linux

PostThu Mar 04, 2021 7:31 pm

peter.quiel wrote:Encoding MP3 files works for me, but I can't encode it in container format.
MP3 isn't shown in the audio codec export drop down as well.

Know issue? Anything I can do?


I can't even get that far. Even selecting "Audio Only" doesn't give me the option, but thanks for the tip that container format changes which export options are available. It sounds to me like this should be reported as a bug ... probably all that needs to happen is mp3 needs to be added as an export option for containers that support it.
Devon Cooke

The Hands that Feed Us
www.thehandsthatfeedus.ca
Resolve Studio 19.1.2
Offline

peter.quiel

  • Posts: 6
  • Joined: Sat Dec 26, 2020 8:00 am
  • Real Name: Peter Quiel

Re: mp3 encoding on Linux

PostThu Mar 04, 2021 8:56 pm

Ohh sorry. I meant decoding.

I can put a mp3 file into my media pool and decode it. But I can't decode the audio of a mov with h264 or h265 file.
The video is decoded, but I can't hear anything.

The log says:
```
position: 439440 - Failed to decode the audio samples
```
for each position that can't be decoded.

For encoding: I don't see mp3 at all. If I choose MP4 as a container format, I can't select any audio codec.
Offline

Shrinivas Ramani

Blackmagic Design

  • Posts: 3105
  • Joined: Wed Sep 20, 2017 10:19 am

Re: mp3 encoding on Linux

PostFri Mar 05, 2021 1:42 am

Peter, Devon,

If you cannot decode mp3 audio from specific clips, please add a link containing
a. a diagnostic log archive (see FAQ)
b. a sample clip that cannot be decoded.

Please also include a fuller description of your system and software - CPU, GPU, RAM, operating system, drivers, Resolve version, Studio/Free, peripherals etc. We do encourage posters to keep this information in their user signature to provide immediate context.

Regards
Shrinivas
Offline

Devonavar

  • Posts: 117
  • Joined: Thu Feb 18, 2021 11:29 pm
  • Location: Canada
  • Real Name: Devon Cooke

Re: mp3 encoding on Linux

PostSat Mar 06, 2021 11:18 pm

Shrinivas Ramani wrote:Peter, Devon,

If you cannot decode mp3 audio from specific clips, please add a link containing
a. a diagnostic log archive (see FAQ)
b. a sample clip that cannot be decoded.

Please also include a fuller description of your system and software - CPU, GPU, RAM, operating system, drivers, Resolve version, Studio/Free, peripherals etc. We do encourage posters to keep this information in their user signature to provide immediate context.

Regards
Shrinivas


Thanks Shrinivas! As per my original post (and the title of the thread), I have no problems *decoding* mp3s. I'm wondering about *encoding* them, which is listed in the changelog as newly supported. Should I assume the changelog is incorrect and only decoding works?
Devon Cooke

The Hands that Feed Us
www.thehandsthatfeedus.ca
Resolve Studio 19.1.2
Offline

Devonavar

  • Posts: 117
  • Joined: Thu Feb 18, 2021 11:29 pm
  • Location: Canada
  • Real Name: Devon Cooke

Re: mp3 encoding on Linux

PostSat Mar 06, 2021 11:33 pm

peter.quiel wrote:I can put a mp3 file into my media pool and decode it. But I can't decode the audio of a mov with h264 or h265 file.
The video is decoded, but I can't hear anything.


Sorry if this is stating the obvious, but you can't assume that the audio codec in an h.264 or h.265 mov file is mp3 based. In fact, usually it's not, but .mov supports almost every audio codec under the sun, so it could be anything. From the sound of it, you have a file with an unsupported audio codec (not surprising, since on Linux, that is most of them). The most commonly used audio codec with h.264/h.265 would be AAC which is ... not supported.

Your best bet is transcoding just the audio to PCM. This is a decent guide for doing it automatically and in-place: https://passthroughpo.st/painless-linux ... -workflow/
Devon Cooke

The Hands that Feed Us
www.thehandsthatfeedus.ca
Resolve Studio 19.1.2
Offline

peter.quiel

  • Posts: 6
  • Joined: Sat Dec 26, 2020 8:00 am
  • Real Name: Peter Quiel

Re: mp3 encoding on Linux

PostMon Mar 08, 2021 7:08 pm

Devonavar wrote:Sorry if this is stating the obvious, but you can't assume that the audio codec in an h.264 or h.265 mov file is mp3 based. In fact, usually it's not, but .mov supports almost every audio codec under the sun, so it could be anything. From the sound of it, you have a file with an unsupported audio codec (not surprising, since on Linux, that is most of them). The most commonly used audio codec with h.264/h.265 would be AAC which is ... not supported.


Good point and your right, h.264/h.265 it's often AAC. In this case I transcoded the files my self and I used h.265 vcodec, mp3 acodec in a mov container.

And sorry for hijacking this thread, because it's about encoding mp3. That doesn't work (can't select it on the export page) on my machine as well.

I will create an example clip and provide all information needed to trace down the cause.
Offline

smunaut

  • Posts: 529
  • Joined: Sat Jan 30, 2021 6:15 pm
  • Real Name: Sylvain Munaut

Re: mp3 encoding on Linux

PostWed Mar 10, 2021 9:53 pm

Still nothing in 17.1 Studio AFAICT.
Resolve Studio - Ryzen 5800X3D - AMD RX6600 / NVidia RTX 4070 (switching between the 2) - Linux
Offline

Peter Chamberlain

Blackmagic Design

  • Posts: 14930
  • Joined: Wed Aug 22, 2012 7:08 am

Re: mp3 encoding on Linux

PostThu Mar 11, 2021 5:52 am

Sorry, i've updated the read me above. Encoding is not included.
It was a cut and paste error in the docs.
DaVinci Resolve Product Manager
Offline

smunaut

  • Posts: 529
  • Joined: Sat Jan 30, 2021 6:15 pm
  • Real Name: Sylvain Munaut

Re: mp3 encoding on Linux

PostThu Mar 11, 2021 6:54 am

Oh :/
Unfortunate, but thanks for the update, at least we can stop looking for it.

Well I guess better get decoding than encoding. At least the plugin architecture should allow to work around it.
Resolve Studio - Ryzen 5800X3D - AMD RX6600 / NVidia RTX 4070 (switching between the 2) - Linux
Offline

Devonavar

  • Posts: 117
  • Joined: Thu Feb 18, 2021 11:29 pm
  • Location: Canada
  • Real Name: Devon Cooke

Re: mp3 encoding on Linux

PostFri Mar 12, 2021 11:41 pm

Peter Chamberlain wrote:Sorry, i've updated the read me above. Encoding is not included.
It was a cut and paste error in the docs.


Thank you for confirming. Decoding is much appreciated!
Devon Cooke

The Hands that Feed Us
www.thehandsthatfeedus.ca
Resolve Studio 19.1.2

Return to DaVinci Resolve

Who is online

Users browsing this forum: Google [Bot], Justin Robinson and 247 guests