mpv/sub
wm4 a4eb8f75c0 sub: add an option to filter subtitles by regex
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.
2020-02-16 02:07:24 +01:00
..
ass_mp.c ass_mp: reset packer when allocation fails 2019-11-02 14:42:36 +01:00
ass_mp.h
dec_sub.c sub: make filter_sdh a "proper" filter, allow runtime changes 2020-02-16 02:07:24 +01:00
dec_sub.h sub: make filter_sdh a "proper" filter, allow runtime changes 2020-02-16 02:07:24 +01:00
draw_bmp.c Replace uses of FFMIN/MAX with MPMIN/MAX 2019-10-31 11:24:20 +01:00
draw_bmp.h
filter_regex.c sub: add an option to filter subtitles by regex 2020-02-16 02:07:24 +01:00
filter_sdh.c sub: make filter_sdh a "proper" filter, allow runtime changes 2020-02-16 02:07:24 +01:00
img_convert.c Replace uses of FFMIN/MAX with MPMIN/MAX 2019-10-31 11:24:20 +01:00
img_convert.h
lavc_conv.c sub/lavc_conv: skip ReadOrder reset when subtitle decoder gets flushed 2019-09-21 22:02:17 +03:00
osd.c osd: fix possible misses of osd-dimensions property updates 2020-01-08 02:31:18 +01:00
osd.h client API, lua: add new API for setting OSD overlays 2019-12-23 11:44:24 +01:00
osd_dummy.c client API, lua: add new API for setting OSD overlays 2019-12-23 11:44:24 +01:00
osd_font.otf osc: use custom symbols for window controls 2019-12-11 13:53:10 -08:00
osd_libass.c client API, lua: add new API for setting OSD overlays 2019-12-23 11:44:24 +01:00
osd_state.h client API, lua: add new API for setting OSD overlays 2019-12-23 11:44:24 +01:00
sd.h sub: add an option to filter subtitles by regex 2020-02-16 02:07:24 +01:00
sd_ass.c sub: add an option to filter subtitles by regex 2020-02-16 02:07:24 +01:00
sd_lavc.c sd_lavc: add a hack ontop of another hack to fix completely fucked file 2019-12-03 22:33:45 +01:00