Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video/audio playback tinny (because of the doubled video output?) #52

Closed
complanar opened this issue Jan 16, 2018 · 2 comments
Closed

Comments

@complanar
Copy link

Environment

  • Linux Mint 18.3
  • Python version 3.5

Pympress

  • 1.1
  • Installation method: source

Expected behaviour

When playing videos the sound should be heard clearly.

Steps to reproduce

  1. Open a pdf file with embedded video.
  2. Show a slide with video and start playback.
  3. Listen closely :)
  4. Examine the system’s audio output streams (e.g. with pavucontrol) – you should see the audio track of the video twice.

Problem

Sometimes the audio track of videos sounds quite tinny. Probably this is because of the doubled video on the presenter and the presentation view. That way the audio output is doubled, too.
When disabling/muting one of the two output streams (e.g. with pavucontrol) the sound is clear again.

I think it is a good idea to disable the audio tracks of one of the two player instances.
Sadly, libvlc doesn’t seem to be quit straight forward there. I could not manage it this morning, not even with reading the docs.
Looks like you’ve got to grab the audio track of one of the player’s media, "free" it somehow and then mute or disable it. Didn’t get it right.

@Cimbali
Copy link
Owner

Cimbali commented Jan 16, 2018

Hmmmm I must say I didn't expect to play sound from pympress. But if it's already possible, we should definitely support it and do it the right way. I'll have a look at this.

I think self.player.audio_set_mute(True) is a good starting point, but I have to get my hands on an example pdf first.

@Cimbali
Copy link
Owner

Cimbali commented Jan 16, 2018

Turns out set_mute is shared among players but set_volume is not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants