My problem is solved with the command: sudo apt remove gstreamer1.0-plugins-ugly
I saw this solution several times in other posts like this one and this one, but I didn’t try it because some people posted it didn’t work for them. I finally gave it a try, and it fixed my problem.