In several topics I read about people duplicating video files to support multiple versions of the same script. The obvious downside here is the additional disk space used.
I wanted to share a better way which is just as fast, by making symlinks (a reference to a file that behaves as a copy of said file). You can create them from a terminal window, but to make it easy there is the following program:
Windows Option Note: Only works on NTFS filesystems.
After installing you can rightclick + dragdrop a file and it creates a symlink of the file.
You can rename the symlink to your alternative script, with the end result being as follows: Note the Symlink takes up no space. All video players will treat the .symlink as if it is the linked MP4 file.
Thanks for bringing this ability to have symlinks on windows to my attention! I donât know why I never thought of looking for something like this itâs always been something that bugged my with NTFS. Will be very helpful for scripts and equally helpful for my day to day life!
Iâm able to use the symlinks to have a renamed copy of the file, and play the file. But VLC and MPC-HC use the name of the source file, not the symlink. This means when linking to something like MFP, the scripts for the original file will be loaded, instead of the alternate scripts.
I canât comment on MPC-HC, but it does kinda work with when using VLC+ScriptPlayer. The trick is that the video file (symlink) has to be âpull intoâ ScriptPlayer (drag/drop opening in ScriptPlayer).
If youâve already linked VLC and ScriptPlayer, the video will still play in VLC (ScriptPlayer on its own isnât a good video playerâŚ). Doing it in this order will play the correct script. Opening the symlink normally will just play the file (as the original name) in VLC with the original script.
Different problemâŚDoes anyone know how to get symlinks to work for VR videos. DLNA wonât see the symlink files at all on DeoVR or Herespher. SMB on Herespehere is funnyâŚthe symlinks show up as foldersâŚand when clicking on the folder, its says:
Canât access SMB share files with the current user. Please verify the current user has acces to these SMB share files.
Iâm able to access the entire directory via SMB except for these folder/symlinks. Anyone got a clue how to get this working? Maybe @HereSphere can chime in if no one else has any input?
I was able to fix my problems by using hardlinks instead. Hardlinks will report the filename properly to video players.
Windows Explorer reports increased disk usage, but if you check with a more sophisticated tool, itâs not real disk usage. Basically Explorer is counting the same disk space over as many times as you hardlinked it.
I also use hardlinks in windows. Theyâre easier to make, they point to the same i-node on the disk, rather than to a directory file, so you can rename things or move them to different folders in the same drive without consequence. If you delete one, you donât have to worry about deleting the âanchorâ, until youâve deleted the last file.
when I map a drive to the shared folder, I can add N:\anime\smut-action.mp4 and N:\pmv\smut-beats.mp4 to the playlist (Potplayer or MPC-HC), and so long as thereâs a .funscript with the same name in each folder as well, it all works.
I get a lot of use out of it when I have several funscripts for the same video file by different scripters, different intensity, some with speed limits, some that have filler, some that only track the girlâs action, etc.
All told, I figure itâs a good 20-30% disk space reduction.
Iâm fine with using the command line for one, writing a quick batch file to do several files, but I grabbed Link Shell Extension to add click functionality to the windows explorer context menu. It creates hard and symbolic links by right clicking the source file(s) to select it as a target, then right clicking the folder to âdrop asâ whichever youâd like. It also puts symbols on the file icons to let you know theyâre a link. (A red arrow to the upper right, similar to what a shortcut has)