kelciour / playphrase

Search and play phrases from movies and audiobooks
169 stars 26 forks source link

Some Question #6

Closed Mitijz closed 4 years ago

Mitijz commented 5 years ago

Hi,Thank you for your scripts I need to add some features to the mpv(or Sub-Cut.lua) at the same time. for example:

1: Show FileName and with a shortkey copy the name of the file.

2: When click click W for start time and E for End time,automatically times copy to clipboard!

3: Jump to time, somethings I can enter the times in this format 00:00:00.000 and then seek to it.

4: Search between current movie's subtitle. Like This!

I want to add them to sub-cut.lua and use them at the sametime.is it possible?

kelciour commented 5 years ago

Hi.

1: Show FileName and with a shortkey copy the name of the file.

As far as I know, this is platform specific (see https://github.com/mpv-player/mpv/issues/4695). For example, on Windows it can be done by using nircmd. It should be added in PATH environment variable or at the same folder as mpv.exe. Here's a script - copy-to-clipboard.lua.

2: When click click W for start time and E for End time,automatically times copy to clipboard!

I've updated sub-cut.lua using the same technique as before and uploaded it as a gist here - link.

3: Jump to time, somethings I can enter the times in this format 00:00:00.000 and then seek to it.

Maybe try seek-to.lua. There're no hotkeys by default and some hotkeys should be added to input.conf to make it work (it's in the same folder as mpv.exe).

t script-message-to seek_to toggle-seeker

4: Search between current movie's subtitle.

I've updated sub-search.lua and it should work with playphrase now. Just put it in the same folder as sub-cut.lua script.

I've attached zip archive with updated versions of input.conf and *.lua files - mpv-scripts.zip

Mitijz commented 5 years ago

Thanks,All Done

opa54321 commented 5 years ago

Привет, большое спасибо за скрипт! Но,не можешь подсказать как пользоваться командами для версии windows? Просто не понимаю, как их вводить, не изучал программирование и плохо в этом разбираюсь -a, --audio — аудио -v, --video — видео -s, --video-sub — видео с субтитрами

raj6996 commented 4 years ago

D:\Movies\English\playphrase>playphrase -i "D:\Movies\English\E_H_2020.mkv" -v -s "Grandpa" None

kelciour commented 4 years ago

@raj6996 I created a new issue - https://github.com/kelciour/playphrase/issues/9