Pause Click plugin for VLC
VLC plugin that allows you to pause/play a video by clicking on the video image.
By default it pauses on every click, but it can be configured to work nicely with double-click-to-fullscreen by enabling «Prevent pause/play from triggering on double click» option in the settings.
(As an extra functionality, it also allows mouse key re-assignment.
Specifically, it allows disabling fullscreen toggle on double click and context menu toggle on right click, as well as re-assigning them to different mouse buttons, e.g. you could make VLC fullscreen on right or middle mouse buttons.)
Table of contents
- Supported versions of VLC
- Install
- Windows
- macOS
- Linux
- Flatpak
- Debian
- Fedora
- Arch Linux
- Snap
- Usage
- Troubleshooting
- License
Supported versions of VLC
VLC 2.1, 2.2 and 3.0 are supported.
VLC versions below 2.1 are not supported.
However, there is a lua extension that should work with VLC 2.0 and possibly even earlier versions of VLC.
Support for the newer VLC versions will be available as they get released and as I get time to work on it.
There is an experimental support for the nightly, in-development version of VLC (VLC 4.0).
The development version of VLC often breaks both API and ABI, which can result in the plugin failing to build and the plugin built for nightly VLC of today be non-functional in newer nightly VLC builds.
Due to this, the support for nightly VLC is very limited and low-priority.
The plugin is not guaranteed to work correctly with it, or even work at all.
If the plugin breaks to build against newer nightly VLC versions, it might not get fixed for quite some time.
It’s also quite possible that nightly VLC could have its own bugs that prevent the plugin from working that are out of my control to fix.
Install
Windows
Download an appropriate archive:
Version/Bitness | VLC 32 bit | VLC 64 bit |
---|---|---|
VLC 2.1 | Download | Download |
VLC 2.2 | Download | Download |
VLC 3.0 | Download | Download |
For the nightly VLC 4.0 see the nightly builds.
Extract the archive at {VLC}\plugins\video_filter\
, where {VLC}
is the directory the VLC was installed into.
By default, the 32-bit VLC installs into C:\Program Files (x86)\VideoLAN\VLC\
and the 64-bit one into C:\Program Files\VideoLAN\VLC\
.
Then follow the usage instructions below on how to enable the plugin.
If you want to build the plugin binary yourself, take a look at the build instructions.
macOS
Download an appropriate archive:
Version/Bitness | VLC 64 bit |
---|---|
VLC 2.1 | Download |
VLC 2.2 | Download |
VLC 3.0 | Download |
For the nightly VLC 4.0 see the nightly builds.
Extract the archive at /Applications/VLC.app/Contents/MacOS/plugins/
Then follow the usage instructions below on how to enable the plugin.
If you want to build the plugin binary yourself, take a look at the build instructions.
Linux
Flatpak
This plugin is available on Flathub as org.videolan.VLC.Plugin.pause_click
.
(The manifest file is available in flathub/org.videolan.VLC.Plugin.pause_click repository — just note that it defaults to an outdated branch.)
If you use Flathub VLC, you can add the plugin to your VLC by installing org.videolan.VLC.Plugin.pause_click
.
Assuming you have Flathub repo added, you can install the plugin using:
flatpak install flathub org.videolan.VLC.Plugin.pause_click
The above command will ask you which branch of the plugin extension you wish to install.
You must select the correct branch for your version of Flathub VLC or the plugin will not be available in the VLC.
Unfortunately, flatpak doesn’t indicate in the flatpak install
output which extension branches work with the already installed apps.
To find the correct plugin extension branch for your version of VLC, you can check the versions=
field under [Extension org.videolan.VLC.Plugin]
in the output of flatpak info --show-metadata org.videolan.VLC
.
The following automates this process for you, installing the correct plugin extension branch for your version of VLC:
ARCH="$(flatpak info --show-metadata org.videolan.VLC \ | sed -En ' /^\[Application\]/ { :label /^runtime=/ { # Leave just the arch s|[^/]*/|| s|/[^/]*|| p q } n /^[^\[]/b label q }' )" BRANCH="$(flatpak info --show-metadata org.videolan.VLC \ | sed -En ' /^\[Extension org.videolan.VLC.Plugin\]/ { :label /^versions=/ { # Use the second version in the list. This assumes a specific # "versions=" format and might break if it changes. s/[^;]*;// p q } n /^[^\[]/b label q }' )" flatpak install "runtime/org.videolan.VLC.Plugin.pause_click/$ARCH/$BRANCH"
If the correct plugin extension branch is installed, you should see Extension: runtime/org.videolan.VLC.Plugin.pause_click/$ARCH/$BRANCH
listed in the output of:
flatpak info --show-extensions org.videolan.VLC
If you do not have the correct plugin extension branch installed, there will be no Extension: runtime/org.videolan.VLC.Plugin.pause_click
listed in there.
Once installed, follow the usage instructions below on how to enable the plugin.
Also, note that updating Flathub VLC might remove the plugin and you will need to re-install the plugin again.
Specifically, due to how VLC plugins are published (by using run-time specific branches flathub/flathub#3843 (comment)) and due to Flatpak being unable to automatically update plugins that are published in such a way (flatpak/flatpak#4208), every time VLC updates its runtime, thus changing the required runtime version its plugins must use, the already installed plugins will stop working as they use an older runtime and don’t satisfy that requirement, and the versions of plugins that use the new runtime that VLC now requires must be manually installed instead.
Not every VLC update will cause this, only the ones that change the required plugin runtime, which typically happens only once a year or so.
Debian
Get the required libraries and tools:
sudo apt-get install build-essential pkg-config libvlccore-dev libvlc-dev
Get the latest release of the plugin:
sudo apt-get install git git clone https://github.com/nurupo/vlc-pause-click-plugin cd vlc-pause-click-plugin git checkout \ "$(git tag --list | grep -P '^(\d+).(\d+).(\d+)$' | \ sed "s/\./ /g" | \ sort -snk3,3 | sort -snk2,2 | sort -snk1,1 | \ tail -n 1 | \ sed 's/ /\./g')"
(Or alternatively download the latest release’s tarball, extract it and cd into it)
Build and install:
Then follow the usage instructions below on how to enable the plugin.
If these build instructions don’t work for you (perhaps you are using a non-Debian-derived Linux distribution), there are more generic build instructions available.
Fedora
We assume you are using VLC from RPM Fusion repositories and have the rpmfusion-free
repository enabled in dnf (should show up in dnf repolist
).
Get the required libraries and tools:
sudo dnf install gcc make pkgconf-pkg-config vlc-devel
Get the latest release of the plugin:
sudo dnf install git-core git clone https://github.com/nurupo/vlc-pause-click-plugin cd vlc-pause-click-plugin git checkout \ "$(git tag --list | grep -P '^(\d+).(\d+).(\d+)$' | \ sed "s/\./ /g" | \ sort -snk3,3 | sort -snk2,2 | sort -snk1,1 | \ tail -n 1 | \ sed 's/ /\./g')"
(Or alternatively download the latest release’s tarball, extract it and cd into it)
Build and install:
Then follow the usage instructions below on how to enable the plugin.
Arch Linux
There is vlc-pause-click-plugin
package available in the AUR repository.
Once installed, follow the usage instructions below on how to enable the plugin.
Snap
Snap VLC is not supported.
Not supported in the sense that I haven’t figured out how to build the plugin such that it would be ABI compatible with the Snap VLC and how to make the Snap VLC load the plugin.
If someone could figure that out and contribute their findings — that would be very helpful.
This Snap VLC discussion might be useful.
Usage
-
Restart VLC to load the newly added plugin
-
Go into advanced preferences: Tools -> Preferences -> Show settings -> All
-
Enable the plugin with a checkbox: (in advanced preferences) Interface -> Control Interfaces -> Pause/Play video on mouse click
-
Enable the plugin with a checkbox: (in advanced preferences) Video -> Filters -> Pause/Play video on mouse click
-
Change the plugin settings however you like: (in advanced preferences) Video -> Filters -> Pause click
-
Restart VLC for settings to take place
-
Play a video
-
Click on the video picture to pause/play the video
Make sure you have checked both of «Pause/Play video on mouse click» checkboxes per #3 and #4!
It’s a very common mistake to skip one of those.
Troubleshooting
I don’t see any plugin-related options described in Usage instructions in my VLC preferences
- Make sure to restart VLC after you have put the plugin
.dll
(Windows) or.so
(Linux) or.dylib
(macOS) in the appropriate directory. - Make sure you have downloaded the appropriate version of the plugin for the VLC you are trying to use it with.
Plugin’s version and bitness should match the version and bitness of the VLC you are trying to use the plugin with.
Plugin’s bitness has nothing to do with the operation system bitness.
For example, if you use 32-bit VLC, it doesn’t matter whether your Windows is 32-bit or 64-bit, you should use 32-bit version of the plugin, because it matches the bitness of the VLC you use. - Some users have reported that they had to run the VLC executable with
--reset-plugins-cache
flag once for the plugin to appear in the GUI.
I do see the plugin-related options described in Usage instructions in my VLC preferences, but the plugin still doesn’t work
- Double-check that you have followed Usage instructions closely, especially 3rd and 4th points.
Look at the screenshots. - Some users have reported that they had to re-install VLC and select «Delete preferences and cache» in the installer for the plugin to work.
If the issue persists, open an Issue in this repository and I will try to help.
Green video image
When playing interlaced videos in VLC 3.0 on Windows using Direct3D11 hardware-accelerated decoding, the first interlaced video will play fine, but the following ones will play showing a green video image (while still correctly playing the sound).
This is a known bug in VLC 3.0 and it has to be fixed in VLC, it’s not something that can be fixed in our plugin. The upcoming VLC 4.0 has this bug fixed, however it’s unlikely that the fix will be back-ported to VLC 3.0.
You can see this issue report for more information.
There are several possible workarounds:
-
Enable «Direct3D11 deinterlace filter» in: Tools -> Preferences -> (All) -> Video -> Filters
Note that this results in x2 GPU usage due to additional video format conversions this option makes.
-
Disable hardware-accelerated decoding.
You can do so in: Tools -> Preferences -> (Simple) -> Input / Codecs -> Hardware-accelerated decoding
Note that this results in higher CPU usage, since the video is now decoded in software using the CPU.
-
Restart VLC every time you want to play a second interlaced video in a VLC session.
-
If you have Intel integrated graphics, you could try making VLC use that for its hardware-accelerated decoding.
It works for videos but not for audio-only files
That’s not a bug in the plugin, that’s the expected behavior due to how VLC works.
It’s a limitation of VLC.
To know when a user clicks their mouse, the plugin implements the video filter plugin interface of VLC, which allows it to react on mouse clicks done on the video surface/image.
That’s the only way for a plugin to detect mouse clicks, VLC doesn’t provide any other way to do that.
When playing audio-only files, VLC doesn’t create any video surface and thus doesn’t load any of video filter plugins, so the plugin simply doesn’t get loaded and can’t react to mouse clicks.
There is, however, a creative way to make the plugin work on audio-only files — enable an audio visualization via Audio -> Visualizations menu.
Enabling an audio visualization will force VLC to create a video surface for the visualization and load the plugin.
Now, if you click on the visualization image, the audio should pause.
All visualizations seem to work aside from the 3D spectrum one.
If you are on Linux, depending on how VLC is packaged in your distribution, you might need to install an additional package to enable audio visualizations, despite them already being listed in the GUI (e.g. vlc-plugin-visualization
package on Debian).
License
LGPL-2.1-or-later
Introduction
This extension allow playing/pausing videos by clicking on a screen.
Similar to youtube videos behaviour.
Download
From project on github or
videolan addons page
Installation
To install, drop «clickpause.lua» into the VLC extensions directory.
The extensions directories are located at:
- OS X systemwide: /Applications/VLC.app/Contents/MacOS/share/lua/extensions/
- OS X current user: ~/Library/Application Support/org.videolan.vlc/lua/extensions/
- Linux systemwide: depends upon distro
- Linux current user: ~/.local/share/vlc/lua/extensions/
- Windows systemwide: C:\Program Files\VideoLan\VLC\lua\extensions\
- Windows current user: I have no idea
This extension was tested and sound working at following configurations:
- VLC: 2.0.1; OS: Windows XP
- VLC: 2.0.5; OS: Linux
But it doesn’t depend on specific things, and highly probably would work
on other configurations.
Usage
In «View» menu tick «Click screen to Play/Pause».
Know Bugs
- You need to tick it every time you open VLC. This is a limitation of VLC lua api.
Enjoy? Donate!
or
Not only I will be thankfull to you, but you will also support my further work.
Pause Click plugin for VLC
This plugin allows you to pause/play a video by clicking on the video image.
Supported versions of VLC
2.2.x (see vlc-2.2.x+/
directory).
2.1.x (see vlc-2.1.x/
directory).
Versions lower than 2.1.0 are not supported, though you might want to take a look at this lua extension.
Ответ на:
комментарий
от Shizuka_is_not
Наверное так и сделаю.
Просто, если у кого-то получится завести этот плагин, пускай отпишется
в топике.
★★★★★
()
автор топика
- Ссылка
Ответ на:
комментарий
от vilisvir
Ага, лучи ненависти!
★★★★★
()
автор топика
- Ссылка
Ответ на:
комментарий
от man_of_motley
Уже поставил smplayer, где подобная функциональность есть из коробки.
Жаль, что разрабы VLC ЛОРа не читают.
★★★★★
()
автор топика
- Показать ответы
- Ссылка
Ответ на:
комментарий
от Twissel
Еще глянул в AUR — там уже есть этот плагин
aur/vlc-pause-click-plugin 0.3.0-1 (2) (0,57)
This plugin allows you to pause/play a video by clicking on the video image
- Показать ответ
- Ссылка
Ответ на:
комментарий
от man_of_motley
Ответ на:
комментарий
от Twissel
Ответ на:
комментарий
от man_of_motley
Хм, странно, ну и фиг с ним.
Проще плеер другой поставить, чем разбираться, где же косяк.
★★★★★
()
автор топика
- Показать ответ
- Ссылка
Ответ на:
комментарий
от Twissel
Подозреваю что что-то не выполнил из инструкции:
1.Restart VLC to load the newly added plugin
2.Go into advanced preferences: Tools -> Preferences -> Show settings -> All
3.Enable/Disable the plugin with a checkbox: (in advanced preferences) Video -> Filters -> Pause/Play video on mouse click
4.Enable/Disable the plugin with a checkbox: (in advanced preferences) Interface -> Control Interfaces -> Pause/Play video on mouse click
5.Change mouse button to the one you want: (in advanced preferences) Video -> Filters -> Pause click -> Mouse Button
6.Restart VLC for settings to take place
7.Play a video
8.Click on video picture to pause/play the video
Проще плеер другой поставить
Советую bomi
- Показать ответы
- Ссылка
Ответ на:
комментарий
от man_of_motley
PS. Enable/Disable значит что нужно включить, а не включить и сразу же выключить
- Ссылка
Ответ на:
комментарий
от Twissel
Уже поставил smplayer, где подобная функциональность есть из коробки.
Ещё в нём из коробки запоминание позиций на просмотренных фильмах и удобные кнопочки выбора звуковой дорожки и сабов!
vilisvir ★★★★★
()
- Показать ответ
- Ссылка
Ответ на:
комментарий
от vilisvir
запоминание позиций на просмотренных фильмах
в vlc это тоже есть, просто в убунте как всегда репы протухшие, поэтому там нет такого функционала.
- Показать ответ
- Ссылка
Ответ на:
комментарий
от man_of_motley
И я таки по твоему похож на новичка — 20 раз это переклацал.
Потом сюда притащил.
★★★★★
()
автор топика
- Показать ответ
- Ссылка
Ответ на:
комментарий
от Twissel
Ответ на:
комментарий
от man_of_motley
в vlc это тоже есть, просто в убунте как всегда репы протухшие, поэтому там нет такого функционала.
У меня стоят репы WebUpd8 и MediBuntu.
vilisvir ★★★★★
()
- Показать ответ
- Ссылка
Ответ на:
комментарий
от vilisvir
Ответ на:
комментарий
от man_of_motley
Может быть.
У тебя Ubuntu?
★★★★★
()
автор топика
- Ссылка
Проверил еще раз на версии из PPA — не работает.
★★★★★
()
автор топика
- Ссылка
Под офтопиком нормально работает.
Похоже, что это косяк Убунты.
★★★★★
()
автор топика
- Ссылка
Как бы это странно не звучало, но собрал из установил из чистого профиля
нового пользователя и все заработало.
Понимагия какая-то
★★★★★
()
автор топика
- Ссылка
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.