What is the best bit rate and frame rate for audio in movies?

Can anyone help?

This is what is written in the Help menu about movies:

Movie Resources
Movie resources are stored in the Movies folder. OGV (Ogg Theora) files are the only format you can use.
Movies are displayed over the center of the game screen. Movies larger than the screen size (544×416) will have their edges cut off to fit within the screen.

I have no problem whatsoever with the video format, however, the audio in some parts of the movie is distorted.
My current settings are:

Container: OGG
Video Codec: Theora
Audio Codec: Vorbis

bit rate: 160 (16 bit)
sample rate: 44100 (44.1 kHz)

I have already tried to increase the bit rate and the frame rate but to no avail.
The problem seems to be more obvious with high pitched and reverberating instruments (my video contains music and not dialogues).

My system (Windows 10) is fine and everything else is working perfectly!

This is a technical question which requires a technical answer.

Thank you in advance!
You say your audio is "distorted", but can you describe that in more detail?
Does it sound higher or lower pitched? Does it play faster or slower? Do you hear noise that's not supposed to be there? Does it sound like the quality isn't as good?

Sample rate affects the maximum frequency you can hear.
Audio bit depth affects the quality of the audio.

When you say you've tried to increase bit depth and sample rate, how exactly did you do that?
Do you have the source audio file with a higher bit depth and sample rate, and just re-encoded it?
Or did you just take the distorted audio and simply increased bit depth and sample rate? Because that would have no effect on the audio at all, except making it bigger.


There's also a possibility that the distortion is caused by the video (indirectly).
Maybe your video has a variable framerate, and the player has trouble dealing with that, so it plays the video faster or slower whenever the framerate changes, which also affects how fast the audio is played (in order to keep audio and video in sync).

But it's hard to tell without more details.
Dear Nolonar,
thank you for getting back to me so promptly!

To give you an idea about the type of distortion watch the files I've attached. Sometimes, it reminds me when
we played records back in the '90s... :LZSangel::LZScheeze:

I have uploaded 2 files:
1 - is the sound as it is supposed to be played by Windows Media Player
2 - is the sound I get when I play it in Rpg Maker XV Ace

I couldn't upload the files here because they are too big even if zipped.
So here they are:

http://www.mediafire.com/file/uuo3rh2vvsa3swh/Audio_problem_RPGMakerXVAce.mp4
http://www.mediafire.com/file/qsah1m8a3q1qk36/SampleRPGMakerwithWindowsMediaPlayer.ogv

I make my own music with LMMS using VSTs then I mix it with Audacity but because of this problem,
I only use one instrument at that time, preferably not one that reverberates a lot.

My Video settings are as follow:

Container: OGG
Video Codec: Theora
Encoding Speed: Medium
Keyframe interval: 18

Audio Codec: Vorbis
Bit rate: I tried 160, 170, 200, 220, 300, 320
Frame rate: I tried 48000 and 44100

I'm using Blender Video Editor 2.79

I've been playing around with a bit of everything, I also changed the Video Codec to H264 and output with all sorts of quality (medium, high, lossless and constant bit rate but though the video looked much better, the sound was still the same.

I have also replaced some of the instruments with less reverberating ones but I still have a little problem with the sound as you will hear from the sample files I sent you the link to.

I'm running out of ideas and I would love to know if there is an optimal standard for the settings of both the audio and the video to be played in RPG Maker XV Ace so I can adjust my pictures and music accordingly; that would be much easier for me to do!

Thanks a lot and let me know if there is any other information you need to know.
So, I've watched the videos and the distortions are pretty weird. It definitely doesn't sound like a problem with bit depth or sample rate, more like the player bugs out at several points. It's possible that VXA simply doesn't like how Blender encodes the video.

According to this thread, you might be able to get your video to work if you use VLC for conversion. If you don't want to install another app, the same thread also suggests an online converter (with link).

Unfortunately, since I don't have much experience with VXA and don't work much with the Play Video command in the first place, that's as far as I can help. I do hope the thread I've linked proves to be useful.
I'll do that!
Thanks a lot for your suggestions.

Unfortunately, the link is no use to me because the only suggestion they give is to convert a movie from mp4 to ogv and my movie is already an ogv (one of the files I sent you is an ogv the other is obviously not because I'm recording the screen with a program called OBS to show how RPG maker behaves once the movie is played - that is soundwise).

I have made a very short logo which plays perfectly in terms of video and sound quality but for the sound I have used a very brief almost monotonic instrument. The problem seems to be related to high pitched sound and reverberating sound.

Would it be possible to ask my question to one of RPG Maker XV Ace developers?
I think those who wrote the program surely know what the specifics are for
the audio in the movie and this information will definitely be of help to everyone who wants to place a movie in the game.

Thanks!
I forgot to mention that exactly the same instruments that cause problems in the audio of the ogv movie, play perfectly well when used as ogg files in game play.

I also tried a very short version of the movie to see if the problem was related to
the length of the movie but the result is the same.
I played around with the file and only got it to work well if I used a pre-built background for the video editing program I have, Set the export to high quality and I got a 8mb video that worked. But I also had to extend the picture about 1.2 seconds more than the audio.
Then when I tried to put your black and white image back in it went crazy.
I also exported the audio to mp3 to see if that helped when making the video.
If I exported the audio to a ogg file it played fine in the game.
I also tried to make a video with just the audio. That was horrible.
So I'm not sure if its the audio, but probably. The program can't determine what the notes are or something.
If anyone is interested, I found the solution for my problem.
This is known as video encoding and these are the specs if you want to create a movie for your
RPG game:

CONTAINER: OGG
VIDEO CODEC: H.264 (I didn't use Theora)
OUTPUT QUALITY: CONSTANT BIT RATE (This is very important)
ENCODING SPEED: Medium

AUDIO CODEC: VORBIS
BIT RATE: 200
FRAME RATE: 48000

Now it works like a charm!
Why are such services so popular?

Original thread: https://forums.rpgmakerweb.com/threads/what-is-the-best-bit-rate-and-frame-rate-for-audio-in-movies.92961/