How to hide video title when playing it?

Hello

I am currently discovering Anki and building a small deck using the basic and reversed card. One side of the card is a video and the other is a word (To add a bit more context, I am learning a few words in sign language). I use the video with the [audio:<name of the video>] syntax.

However, I realized that the name of the video file is visible when playing it. This is not really a problem with word -> video cards but kind of annoying for the reversed video -> word card, because it gives away the answer :confused:.

I am using anki deskop on windows 10.

The only workaround I could think of is renaming my video before adding it to a card, but it is not ideal when adding several notes in a row. I searched but could not find anyone talking about this.

So my question is : is there a way to hide the video title somehow ?

@kelciour is probably the best person to answer this.

1 Like
  1. Open the Debug Console.

    https://docs.ankiweb.net/#/misc?id=debug-console

  2. Execute the following code to create mpv.conf in %APPDATA%\Anki2 with title= (or border=no).

    import os
    from aqt import mw
    from aqt.sound import mpvManager
    print('Title:', mpvManager.get_property('title'))
    with open(os.path.join(mw.pm.base, 'mpv.conf'), 'a') as f:
        f.write('{}={}\n'.format("title", ""))
    # restart mpv to apply new settings
    mpvManager.shutdown()
    print('Title:', mpvManager.get_property('title'))
    

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

    Alternatively, to hide the title bar and make the video window to be borderless.

    import os
    from aqt import mw
    from aqt.sound import mpvManager
    with open(os.path.join(mw.pm.base, 'mpv.conf'), 'a') as f:
        f.write('{}={}\n'.format("border", "no"))
    # restart mpv to apply new settings
    mpvManager.shutdown() 
    print('Border:', mpvManager.get_property('border'))
    

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

  3. Close the Debug Console once you see the output (in a few seconds).

4 Likes

Thanks a lot ! This is exactly what I needed.

I created a file mpv.conf manually instead of using the debug console but it works the same (just needed to take care that the extension was really .conf and not .conf.txt).

1 Like