Cimbali / pympress

Pympress is a simple yet powerful PDF reader designed for dual-screen presentations
https://cimbali.github.io/pympress/
GNU General Public License v2.0
1.14k stars 88 forks source link

Audio is played twice at the same time #277

Closed f0k closed 1 year ago

f0k commented 1 year ago

Describe the bug When playing back a video and both the presenter and content view are open, the sound of the video is played twice. If the playback is not perfectly synchronous, the sound gets some metallic feel to it.

To Reproduce Steps to reproduce the behavior:

  1. Open a PDF file with an embedded video from an external file (using LaTeX's \movie command). Preferably one that has vocals, that makes it easier to spot.
  2. Play the video. Possibly stop and play some more times to get a different time shift.

Expected behavior The video should be muted for one of the two views. (I assume that is easier than ensuring sample-perfect synchronization between the two playbacks.)

Environment (please complete the following information):

Debug information (see below for file locations)

Cimbali commented 1 year ago

Interesting. One of the versions should be muted by default, as we had this issue before:

https://github.com/Cimbali/pympress/blob/401a65507d7ae5599d0c00fa8da23ddb0ff2512d/pympress/extras.py#L294-L295

So this seems to fail for some reason.

Cimbali commented 1 year ago

It seems that whatever we set in set_property('mute', …) on the gstreamer playbin is ignored, as querying later on always returns False.