media icon indicating copy to clipboard operation
media copied to clipboard

Media element source node example plays at half speed and half pitch

Open aschey opened this issue 3 years ago • 0 comments

When running the example media_element_source_node, the playback appears to play at half speed and half pitch. I was able to reproduce this on both Windows and Linux. I poked around briefly and it seems like the problem is related to dual channel audio. I changed the caps for the appsink that it's using to use a single channel and that fixed the problem, but that obviously causes the audio to play in mono instead of stereo, which isn't desirable. Here's the small change I made to demonstrate the change in behavior: https://github.com/aschey/media/commit/c01e07f33901825bbf613f49a01aa73ff22be98a

aschey avatar Feb 25 '21 01:02 aschey