mirror of https://github.com/mpv-player/mpv
a4eb8f75c0
Works as ad-filter. I had some more plans, for example replacing matching text with different text, but for now it's dropping matches only. There's a big warning in the manpage that I might change semantics. For example, I might turn it into a primitive sed. In a sane world, you'd probably write a simple script that processes downloaded subtitles before giving them to mpv, and avoid all this complexity. But we don't live in a sane world, and the sooner you learn this, the happier you will be. (But I also want to run this on muxed subtitles.) This is pretty straightforward. We use POSIX regexes, which are readily available without additional pain or dependencies. This also means it's (apparently) not available on win32 (MinGW). The regex list is because I hate big monolithic regexes, and this makes it slightly better. Very superficially tested. |
||
---|---|---|
.. | ||
af.rst | ||
ao.rst | ||
changes.rst | ||
console.rst | ||
encode.rst | ||
input.rst | ||
ipc.rst | ||
javascript.rst | ||
libmpv.rst | ||
lua.rst | ||
mpv.rst | ||
options.rst | ||
osc.rst | ||
stats.rst | ||
vf.rst | ||
vo.rst |