Tricky way to make PotPlayer support Picture Association in album playlist based on folder and switch it bwtween default config

PotPlayer

PotPlayer: An excellent video player on Windows.(You can’t find an alternative on MacOS)
you can create A Local File Navigator album playlist in playlist interface. This playlist will auto explor the videos in the folder you set.
However, there are some glitches tingling me when I want to also explore the pictures in the folder.

The official way: what at least you can do

First PotPlayer do support Picture Association in album playlist based on folder out of box.
You can config it here:

1
Prefrences - Association - Set File Extension in File Open Dialog

you can add the pic formats here and it will work.

However, if you want to turn the pic support off(maybe too many pics will disturb you from exploring videos), you have to go to that setting again and delete that pic formats string manually which is almost unbearable.

A tricky way to do it

ini file

potplayer load the ini files (which include the pic extension setting) every time it lauches a instance, if we set it to run it that way.
first we need to config it to use a ini file to store its preferences. You need to check the following setting.

1
Prefrences - General - Store settings into .ini file

you can be navigated to the path of the ini file by clicking the dot button next to it.

duplicate and modify the ini files into different versions

here is the deal: we could change the content of it or just replace it with a file containing waht we want before it lauch the instance. And you can have different instances with different ini at the same time.
PotPlayerMini64_Default.ini
PotPlayerMini64_Pic.ini
in the PotPlayerMini64_Pic.ini, you should find the following content which control the Picture extension string and add the Extension string you want:

1
2
[FileFormat]
Video= jpg jpeg png .....

replace the default ini file with bat before launching a instance

bat is file for batch processing in Windows.

  • This is for default config
    PotPlayerDefault.bat
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    @echo off
    setlocal

    rem Setting path variables
    set INI_SOURCE="D:\Apps\PotPlayer\PotPlayerMini64_Default.ini"
    set INI_DEST="D:\Apps\PotPlayer\PotPlayerMini64.ini"
    set EXE_PATH="D:\Apps\PotPlayer\PotPlayerMini64.exe"

    rem copy INI file
    echo copying INI file
    copy /y %INI_SOURCE% %INI_DEST%

    rem Launching PotPlayer
    echo Launching PotPlayer...
    start "" %EXE_PATH%

    echo Done
    endlocal
    exit
  • This is for Picture extension

    You can make a shortcut link toi PotPlayerMini64.exe, and set a different icon for this instance to indicate this one is with a picture extension config.
    PotPlayerPic.bat

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    @echo off
    setlocal

    rem Setting path variables
    set INI_SOURCE="D:\Apps\PotPlayer\PotPlayerMini64_Pic.ini"
    set INI_DEST="D:\Apps\PotPlayer\PotPlayerMini64.ini"
    set SHORTCUT_PATH="D:\Apps\PotPlayer\PotPlayerMini64_Pic.lnk"

    rem copy INI file
    echo copyingv INI file
    copy /y %INI_SOURCE% %INI_DEST%

    rem Launching PotPlayer
    echo Launching PotPlayer...
    start "" %SHORTCUT_PATH%

    echo Done
    endlocal
    exit

Done

Now you should be able to click bat to launch a diffeent instance with its corresponding config

What’s more

You could pack the bat file into a executable file, and this allow you to add a quick launch icon on the taskbar if you want to. Which is more convenient to use.