Forum Discussion
genetransfer
10 years agoExplorer
FFMPEG SDL2 6 channel audio file question...
Hi, not sure if anyone can help me, but in my video player (plugin dll for my engine, using ffmpeg, SDL2 for audio (xAudio2)) I found playing all video seems ok except video encoded audio with 5.1 - 6 channel audio (VOB files). mind you I am only testing with my crappy ear phones so not sure if dusting off my old speakers will will help much (actually what am i saying wlll do that tomorrow just in case). The videos play fine but I am only getting what seems to be the background music and fx not the actual dialogue(can't hear it) just wanted to ask if anyone knows why this happens (klite codec pack features seem to have no effect in forceing stereo). I'd assume this is about hardware but then again if I use a standard video player all is well. anyone know where I should be looking, SDL2, FFmpeg. do i need to create a special filter graph or something for ffmpeg to overide this issue? thanks for any advice.
1 Reply
- genetransferExplorerturned out to be SDL2 (and I believe SDL 1.2 aswell as the same thing was happening there forcing to 2 channel)
when calling SDL_OpenAudioDevice with "SDL_AUDIO_ALLOW_ANY_CHANGE" on video with 5.1 - 6 channel audio, it was making it stereo but it was reducing the frequency(sample rate), thus sounding distorted.
when I multiplied the "wanted" sample rate (which was 48000) by 3 it played correctly. So I guess I will just provide an option to apply this hack if needed for video with this kind of audio. as all other formats play fine.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 6 months ago
- 2 months ago
- 10 months ago
- 10 months ago