Bỏ qua đến nội dung

Advanced MPV Player

Chờ xử lý #anki #addon #advanced #mpv #player
https://forums.ankiweb.net/
13/12/2023

Cách tải addon Advanced MPV Player

Bạn có thể tải addon bằng một trong hai cách sau:

Click nút Copy bên dưới để copy code vào clipboard

924111087

Sau đó mở Anki → Tools → Add-ons → Get Add-ons → Dán code → OK

Mở trang addon trên AnkiWeb và tìm mã code ở cuối trang

Mở trên AnkiWeb

Cuộn xuống cuối trang AnkiWeb, tìm dòng có mã code 924111087 và copy

15
4

Mô tả chi tiết

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>


Liên kết hỗ trợ


Reviews (18)

👍 2025-05-15

Broken/worse than useless in 2.1.35:

Error An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed. If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem. When you’ve discovered the add-on that is causing the problem, please report the issue on the add-on support site. Debu

👍 2025-03-26

Thank you! This fixed my issue. 🫶🏻

👍 2025-03-12

FYI - the fix for Debian you listed in late 2023 does not work.

I’m running Arch Linux and got the same error. I made the adjustments to the PY file that you recommended. The program loaded your add-on, but could not display any cards afterwards.

👍 2024-11-17

This fixed the problem I’d been having for a year!

👍 2024-10-04

It definitely speeds up learning from video cards. My only complaint is that there is a weird issue where Anki stops responding to any input if I click outside of it while the video is playing.

👍 2023-05-12

On Debian 11, with anki application Version ⁨2.1.61 (0c1eaf4c)⁩

Python 3.9.15 Qt 6.4.2 PyQt 6.4.0

Pendant le chargement de « ⁨Advanced MPV Player⁩ » :

Traceback (most recent call last):

File “aqt.addons”, line 247, in loadAddons

File “/home/dominique/.local/share/Anki2/addons21/924111087/init.py”, line 90, in <module>

class MpvManager2(MpvManager):

File “/home/dominique/.local/share/Anki2/addons21/924111087/init.py”, line 122, in MpvManager2

default_argv = de

👍 2023-02-13

Every time I close Anki, I get the same error message:

Error

An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.

If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.

When you’ve discovered the add-on that is causing the problem, please report the issue to the ad

👍 2022-12-06

Excellent!! A basic video player for Anki. So glad I found this.

👍 2022-10-04

I am running into an issue. I am using anki version

Version 2.1.35 (84dcaa86)

Python 3.8.0 Qt 5.14.2 PyQt 5.14.2

and have tried to add on the plugin but i keep getting this error:

An add-on you installed failed to load. If problems persist, please go to the Tools>Add-ons menu, and disable or delete the add-on.

When loading ‘⁨Advanced MPV Player⁩’:

⁨Traceback (most recent call last):

File “aqt\addons.py”, line 211, in loadAddons

File “C:\Users\WD5BEVTW10H\AppData\Roaming\Anki

👍 2022-08-22

It worked perfectly!

Now the audio doesn’t cut out at the end.

👍 2022-08-15

Follow-up from the previous comment. Using the Add-On now works, but problematically increases the time it takes to load any card that has an audio file. I have linked a youtube video to present the issue below.

https://youtu.be/O24wlbUCalo

Additionally, what is a better way to get in contact. Contact author appears to only link to the Anki Forums page

👍 2022-08-15

I believe this will be a great Add-On to resolve this annoying issue. However, I am having a problem with the add-on not working. This is the error that shows up.

When loading ‘Advanced MPV Player’

Traceback (most recent call last):

File “aqt.addons”, line 244, in loadAddons

File “C:

\Users\thien\AddData\Roaming\Anki2\addons21\924111087_init|.py”, line

220, in <module>

mpvManager.shutdown()

AttributeError:‘None’Type’ object has no attribute ‘shutdown’

Update*

Error was fixed, but

👍 2022-08-01

THANKS!

👍 2022-06-12

Fixed audio being clipped at the end, much appreciated

👍 2022-04-14

Fixed audio clipping issues, thanks!

👍 2022-03-14

Fixed audio issues on desktop, thanks!

👍 2022-03-03

Thank you for this, I was going crazy over finding a solution for cut audio and this fixed it.

👍 2022-01-13

This is a lifesaver! My audio was cutting in the end and the script solved it beautifully. Thank you very much!!