mpv
mpv copied to clipboard
Various improvements for SDH filter
Important Information
System Version: macOS 14.2.1 (23C71)
Model Identifier: MacBookAir10,1
mpv version: git-2024-01-06-d8c2e33
FFmpeg version: git-2023-12-11-5fdbc2a
Reproduction steps
mpv --sub-filter-sdh=yes --sub-file=sample.srt any.mp4
Expected behavior
- "I'll sing something for you."
- Blank
- "Stay a while..." if
sub-filter-sdh-harder=yes - "Stay forever!"
- As-is
- As-is
- As-is
- "Lowercase -all- is a common speaker"
- "Lowercase -both- is a common speaker"
Actual behavior
- As-is
- As-is
- As-is
- As-is
- Shows only line two
- Shows only line two
- Shows only line two
- As-is
- As-is
Sample files
1
00:00:00,000 --> 00:00:01,000
I'll sing something for you.
-♪ Yesterday...
2
00:00:01,000 --> 00:00:02,000
♪ Yesterday...
All my troubles...
3
00:00:02,000 --> 00:00:03,000
Dr. No & Man #1:
Stay a while...
4
00:00:03,000 --> 00:00:04,000
DR. NO / MAN #2:
Stay forever!
5
00:00:04,000 --> 00:00:05,000
‐ x2010
‒ x2012
6
00:00:05,000 --> 00:00:06,000
– x2013
— x2014
7
00:00:06,000 --> 00:00:07,000
― x2015
− x2212
8
00:00:07,000 --> 00:00:08,000
all: Lowercase -all- is a common speaker
9
00:00:08,000 --> 00:00:09,000
both: Lowercase -both- is a common speaker