This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local on = false | |
function slideshow_handler() | |
if on == false then | |
mp.osd_message("Starting slideshow") | |
on = true | |
mp.command("playlist_next") | |
if sl_timer then | |
sl_timer:resume() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Simple hook that converts .bpg files as you open them with mpv | |
-- libbpg needs to be installed on your system | |
-- You can specify the output format (.ppm or .png) but conversion | |
-- to .png is slower. You can also increase the bit depth for .png | |
-- by passing "-b 16" and it supports transparency. | |
-- It seems animated files are not yet supported by bpgdec. | |
local msg = require 'mp.msg' |
OlderNewer