Hi,
I exported same video file as H264 and webm from Adobe Premiere, while H264 has audio, webm version has no audio in Unity.
What can be the reason? (I checked webm video has audio)
Hello,
Are you using recorder package? What version of unity and recorder do you use and on what OS?
Let us know
sure
recorder 3.0.3
unity 2021.2.4f1
windows.
Hello again,
To make sure I understand. You save your video file then you want to import it back in unity? When you play it in the unity editor you don’t have audio on webm? If yes do you have any warnings in the console when you record it and when you play it?
not necessarily, I use adobe premiere pro for editing my webm videos. That is the source, I don’t remember any warnings
Are you using accumulation in one of your recorder? Could you try opening it into vlc see if there is audio? Maybe a screenshot of your window would help us understand what’s wrong. Would it be possible to attach the problematic webm file so we could look at it?
Let us know.
sure, I sent them by pm
Thanks,
I opened it into a couple of players and all of them played audio from your .webm video. Looks like an issue with premiere support for this format. We can’t do much on our end the file recorder generated is good. Maybe ask on adobe forum if there is some way to import it?
Did you also open it in Unity?
Because the problem is Unity not the other players…
Please forget the recorder.
The recorder has nothing with it.
The workflow is
Video (Created somewhere in internet) → Edited in Adobe Premiere (by me) ->Imported in Unity and not working in Unity.
I changed my first message as this btw “I exported same video file as H264 and webm from Adobe Premiere, while H264 has audio, webm version has no audio in Unity.”
Hi. Is the video transcoded? If yes, can you check that Import Audio is enabled? Otherwise, can you share your file with us? You can upload the file here or you can DM it to me. I will be able to help you more if I can check the file.
Hi mfatihbarut!
One plausible reason why the audio from your webm wouldn’t work with Unity is if the audio codec used by Premiere is opus, instead of vorbis. There are 2 possible audio codecs with webm files and vorbis is the only one supported by the VideoPlayer at this point.
If you share the video with us (The_Island or myself), we’ll be able to validate this.
Thanks!
Dominique
good to know thank you. let me check it please
OK, we’ll wait for additional info.
Worth mentioning: the editor should put out a warning if an audio track with unknown audio codec is seen in a webm file.
Dominique
Thanks a lot Dominique, you saved my day the vorbis was the right answer!