Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

I cannot import audio from the time slider.

I cannot import audio from the time slider.

amaterasu-qbb
Collaborator Collaborator
4,562 Views
8 Replies
Message 1 of 9

I cannot import audio from the time slider.

amaterasu-qbb
Collaborator
Collaborator

I can import audio from File > Import, but it does not appear in the time slider and there is no sound. In other words, it is recognized but cannot be imported.

// Result: H:/maya/animation/Ball_Rolling/sound/Tennis Ball_Bounces_edit01.wav

Audio Details

  • Less than 2 seconds
  • WAV Format
  • Exported from Davinci Resolve 16

When importing audio from the Time Slider I get the following error

file -import -type "audio" -ignoreVersion -ra true -mergeNamespacesOnClash false -namespace "Tennis_Ball_Bounces_edit01" -options "o=0" -pr - importFrameRate true -importTimeRange "override" "H:/maya/animation/Ball_Rolling/sound/Tennis Ball_Bounces_edit01.wav";
doSoundImportArgList ("1", {"H:/maya/animation/Ball_Rolling/sound/Tennis Ball_Bounces_edit01.wav", "0"});
// Result: 0
// File read in 0.0072 seconds.
// Result: H:/maya/animation/Ball_Rolling/sound/Tennis Ball_Bounces_edit01.wav
# Error: cannot find file
# Error: file: C:/Program Files/Autodesk/Maya2023/scripts/others/doSoundImportArgList.mel line 53: Cannot open soundfile

I have tried changing the location of the audio from drive H to drive D and also tried importing an empty scene, but it does not work.

0 Likes
Accepted solutions (1)
4,563 Views
8 Replies
Replies (8)
Message 2 of 9

amaterasu-qbb
Collaborator
Collaborator
Accepted solution

Hi! everyone. I found a solution and would like to share it with you.

 

I also found a different error, so I'll post it here.

 

 

Error: file: C:/Program Files/Autodesk/Maya2023/scripts/others/doSoundImportArgList.mel line 53: Cannot open soundfile

 

 

 

the cause is

  • sound source is 48000Hz (48kHz)
  • Even 44100Hz (44.1kHz) won't play if it's 32bit

You can see it from the audio of the actual property details,

Capture17.PNG

but it's hard to understand because it's kbps instead of Hz. But I tried to put something together.

Unplayable

  • 1536kbps, 48kHz, 16bit
  • 2822kbps, 44.1kHz, 32bit Import only 
  • 2304kbps, 48kHz, 24bit
  • 3072kbps, 48kHz, 32bit

Playable

  • 1411kbps, 44.1kHz, 16bit recommended
  • 2116kbps, 44.1kHz, 24bit

The solution is to use an audio editing software and export at 44.1kHz 16bit.
I used Audacity, but it seems to be unstable due to repeated Windows IME updates, so I think Adobe Audition is the best.

And with Davinci Resolve, you can change it from 48kHz to 44.1kHz in the project settings, but when you export it, it will be 48kHz, so it didn't work.

thank you. also I added a idea about adding mp3 support to maya.

https://forums.autodesk.com/t5/maya-ideas/please-support-flac-mp3-and-other-audio-formats/idi-p/1169...

feel free to vote.

Message 3 of 9

animoumou
Observer
Observer

Is there really no way to only use DaVinci Resolve? I'm using it for exporting image sequences into my Maya files and I want it to handle my audio files as well. Is this something that could be fixed in an update or do I need to use Audacity for sure? Thanks for documenting your findings.

0 Likes
Message 4 of 9

amaterasu-qbb
Collaborator
Collaborator
Hi. @animoumou .

 

I'm back baby woohoo! ...sorry about that. Another possibility is to use FFmpeg.
I could write a GUI tool in FFmpeg or Python that would allow you to drag audio files from the explorer and convert the bitrates of all audio files at once.
Of course I'll give it away for free here on this site. I will do so if you support me. I've been having a hard time with depression lately.

 

best.

Message 5 of 9

animoumou
Observer
Observer

Welcome back! The idea of a GUI tool for batch converting bitrates sounds awesome. I’m sure people would really appreciate it. Sorry to hear about your depression, I hope it gets better soon.

Message 6 of 9

amaterasu-qbb
Collaborator
Collaborator
Hi. @animoumou .

 

Thanks a lot for your kindness. Blessings on you my friend.
I'll start working on it now, so please give me about a month. I'm not a programmer, but I'll do my best to start the project.
0 Likes
Message 7 of 9

animoumou
Observer
Observer

Of course! Take your time, if it's too much then don't worry about it. I thought it was something you could easily do. Take care 🙂

Message 8 of 9

dbreaux
Explorer
Explorer

That would be AMAZING..!!!

0 Likes
Message 9 of 9

amaterasu-qbb
Collaborator
Collaborator

HI! everyone.

The UI will be finished soon. Please bear with us a little longer.
It will be released on GitHub. It is called MAT (Maya Audio Tool).
It is currently being developed in Python and PyQt, and a PySide6 version is planned for the future. The versions will have no functional differences; only the programming language will vary.
MAT (Maya Audio Tool)MAT (Maya Audio Tool)

0 Likes