Audio sync problem (or distortion) with opensesame-plugin-mediaplayer
in OpenSesame
Hi there,
I am having trouble debugging the new media player plugin. It works correct on a Windows 10 laptop but on our Workstations with Windows 7 all sound options give problems. I tried opensesame 3.1.3 and 3.1.4.
Selecting "opensound" gives an audio sync problem, "pyaudio" has severe distortion and "pygame" gives some crackling. I can confirm ffmpeg is used, found it running in the task manager. Any advice how to debug this? As far as I know opensesame only uses internal python packages except for ffmpeg.
p.s. I also tried to increase the audio buffer with no result.
Best!
Bob
Comments
Correction to my opening post:
"opensound" should be "sounddevice".
Hi Bob,
I have been facing this issue too and I don't really know how to solve this. On some machines it just doesn't work as it should, and I have too little expertise in audio programming to really get a grasp on what is going on and how to solve this. I plan to make another attempt when I have some time, but then I also need to have access to a Win7 machine at that time (I only have Win10 machines), and the problem needs to occur on that specific machine. It probably is a combination of sound driver, sound card vendor issue and cpu power that causes the issue, so it's hard to reliably reproduce it.
I don't think ffmpeg will be easy to debug, or that the problem lies there. I think the problem is with the process of how the sound frames are transferred to the buffer, and how this buffer is read out by the sound device. So you could play around with those implementations, and see if you can improve how this is done in the
soundrenderersof python-mediadecoder.Sorry to be of so little help,
Hi Daniel,
Thanks, I worked around the problem by using vlc plugin for the time being.