Advanced MPV Player

AnkiWeb addon 924111087

1 other version of this addon exists. Compare versions ↓

Plays card audio and video through mpv with configurable start, end, length, subtitle, and window-position options, pausing on the last frame between clips.
AI-generated summary; may contain mistakes.

sync-integrationreview-flow

Open on AnkiWeb Find alternatives

AnkiWeb

Votes
20 (👍 16 · 👎 4)
Updated
2023-12-13
Anki versions
2.1.35~
License
AGPL-3.0 (from the headers of the Python files)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON
Description language
en

Maintenance

abandoned

  • Last update or commit: 2023-12-13 (1054 days before the snapshot).
  • Forks that may still be maintained: "📺️Advanced MPV Player (Fixed by Shigeඞ)" (466948669).

GitHub

No GitHub repository linked.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.35+2023-12-13
History across monthly snapshots

Loading…

Compare versions

The original addon and its forks. The best value in each column is in bold.

VersionWorks on Anki 26.09.3MaintenanceLast activity VotesApprovalGitHub starsNotes
Advanced MPV Player this addon original supported abandoned 13 Dec 2023 👍 16 · 👎 4 58% –
↳ 📺️Advanced MPV Player (Fixed by Shigeඞ) (AI-detected; may be wrong) likely active 31 Aug 2026 👍 1 · 👎 1 9% 12

Forks can add features or work in a different way. Read the description before you change to another version. Fork detection is incomplete, so other versions can exist.

Similar addons

Description


20220803
1: Support new typed years version.

20220803 1: fix some bugs for above version 2.1.49.

20211230 1: Fix Bugs for no sound play with "Advanced Answer Sounds" add-on: mpv play need "pause=no" option.

20211225 1: Support "Advanced Answer Sounds" this addon's new config params 2: Add more config params for better use mpv player: "force_window": 0, "custom_geometry": 1, "keep_aspect":0, "restore_last": 1, "win_width": 0, "win_height": 0, "win_left": 0, "win_top": 0 --force_window: Use this param can cooperate the "Advanced Answer Sounds", when answer the easy type, force_window with true can make mpv window open always and do not close and open again and just black window and play next vidio clip --custom_geometry: with latter params --keep_aspect --win_width height left top you can assign the mpv window's position and size --restore_last: use this param can restore the mpv windows's last pos and size when open the anki, notice when use restore last window pos and size, mpv use the no-border mode to show the window, because the addon only got the geometry of the mpv client window's information and not the frame window's information.

20210613 1: Support Subtitle show or hide by menu tools-Advanced MPV Player Show Sub -- On/Off or Config button, this useful for <Video Import As A Deck> https://ankiweb.net/shared/info/1779953895 this addon to enable or disable sub-add options through menu not by change the card's field. Defalut option is subtitle on.

20210524 1: Fix some bugs for support sub-add options.(befor sub-add must need sleep somtime and cause click not very smooth.)

20210523 1: Support Opitons like: --start=01:10:00,100 --end=01:11:00,000 --sub-add=xxxx.srt make the mpv play video for segment and subtitle this update is needed by the add-on: <Video Import As A Deck> https://ankiweb.net/shared/info/1779953895 to play with subtitle.

This add-on optimizes the mpv player's featuresthes when use sounds field:

1: When play video clip, this add-on will paused at the end,keep the last frame on the screen and not close the window, if the anki play next card's video clip, the mpv window will continue play the clip, this make people feel comfortable.

2: When play vidoe or audio media, you can use sounds like this: [sound:xxxx.flv --start=60 --length=10], this make the mpv play the media from start time and keep playing length time, The following is references, with these options, we can skip media's titile or useless part, or cut a long clip to small parts and watchint its in several days.

Thanks for the add-on:Video Fix 1 and Video Fix 2, I referenced them, and this add-on conflicts them, maybe others.

https://mpv.io/manual/master/#options

--start=<relative time> Examples --start=+56, --start=00:56 Seeks to the start time + 56 seconds. --start=-56, --start=-00:56 Seeks to the end time - 56 seconds. --start=01:10:00 Seeks to 1 hour 10 min. --start=50% Seeks to the middle of the file. --start=30 --end=40 Seeks to 30 seconds, plays 10 seconds, and exits. --start=-3:20 --length=10 Seeks to 3 minutes and 20 seconds before the end of the file, plays 10 seconds, and exits. --start='#2' --end='#4' Plays chapters 2 and 3, and exits.

--end=<relative time> Stop at given time. Use --length if the time should be relative to --start. See --start for valid option values and examples.

--length=<relative time>