Okay, Mastodon, I think I have a problem only you can solve.
I'm doing some maintenance on a game I developed on a Mac in Unity 2021.3.18f1. I'm now working on Ubuntu.
When I first pulled the game from GitHub, it wouldn't run because Unity was complaining about libssl. I got around this by upgrading the project to Unity 2022.3.10f1. Now the game runs (at least within Unity), but the sound doesn't play.
I *can* play the sound files individually from within Unity, but I get warnings like this:
Errors during import of AudioClip Assets/Audio/mixkit-chill-bro-494.mp3:
ffmpeg -i "Temp/fsbankcache750326/tmpinput_HQDdFr.WAV" -f mp4 -codec aac -b:a 192000 -strict experimental -y "Temp/importedAudioTempPrimary750196"
FSBTool ERROR: Error converting Temp/fsbankcache750326/tmpinput_HQDdFr.WAV: make sure you have avconv or ffmpeg installed
FSBTool ERROR: Failed encoding audio clip '/home/drake/Unity/q2t2/Assets/Audio/mixkit-chill-bro-494.mp3' to AAC. Possibly the file is too short. Try to append silence such that the length becomes at least 1024 samples.
(I don't get these warnings when running the game.)
I did install ffmpeg:
$ ffmpeg -version
ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
What can I do to get my sound to play? Any leads appreciated.
#unity #unity3d #GameDev #linux #ubuntu #ffmpeg #audio
@LouisIngenthron Got it in one -- thanks!
Once again, all computer problems are solved by some version of "turn it off and back on again".