shutter-encoder icon indicating copy to clipboard operation
shutter-encoder copied to clipboard

Adding "Edit (or Encode) with Shutter Encoder" on (Right Click) File Context Menu

Open detfusco opened this issue 1 year ago • 6 comments

I know what you're going to say: Just use the "Open with" option. But the thing is, Shutter Encoder doesn’t show up in the "Open with" list (Another person has been experiencing the very same thing here). Because of this, I have to go through the "Open with" list, click "Choose another app" and then select "Shutter Encoder" every single time.

open with list and context menu

It'd be nice to have a toggle in the settings called "Show 'Edit (or Encode) with Shutter Encoder' file context menu item". This change would save time and make things easier.

Thanks for considering this!

detfusco avatar Oct 03 '24 01:10 detfusco

i created registry key that add open with shutter encoder it's work as you want. you need to change path to Shutter Encoder.exe create .reg file or manualy add:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\Open with Shutter Encoder]
@="Open with Shutter Encoder"
"Icon"="\"C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe\",0"

[HKEY_CLASSES_ROOT\*\shell\Open with Shutter Encoder\command]
@="\"C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe\" \"%1\""

jakubix30 avatar Jun 07 '25 12:06 jakubix30

@jakubix30 Yours didn't work, but I fixed it (after adding missing backslashes between HKEY_CLASSES_ROOT and * and also double backslashes in directories):

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\Open with Shutter Encoder]
@="Open with Shutter Encoder"
"Icon"="C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe,0"

[HKEY_CLASSES_ROOT\*\shell\Open with Shutter Encoder\command]
@="\"C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe\" \"%1\""

However, since this registry edit adds 'Open with Shutter Encoder' to all file types, I modified it further so that it only appears for video and audio file types:

Windows Registry Editor Version 5.00

; ====================
; VIDEO FORMATS
; ====================
[HKEY_CLASSES_ROOT\SystemFileAssociations\.mp4\shell\Open with Shutter Encoder]
@="Open with Shutter Encoder"
"Icon"="C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe,0"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.mp4\shell\Open with Shutter Encoder\command]
@="\"C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe\" \"%1\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.mov\shell\Open with Shutter Encoder]
@="Open with Shutter Encoder"
"Icon"="C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe,0"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.mov\shell\Open with Shutter Encoder\command]
@="\"C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe\" \"%1\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.avi\shell\Open with Shutter Encoder]
@="Open with Shutter Encoder"
"Icon"="C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe,0"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.avi\shell\Open with Shutter Encoder\command]
@="\"C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe\" \"%1\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.mkv\shell\Open with Shutter Encoder]
@="Open with Shutter Encoder"
"Icon"="C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe,0"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.mkv\shell\Open with Shutter Encoder\command]
@="\"C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe\" \"%1\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.webm\shell\Open with Shutter Encoder]
@="Open with Shutter Encoder"
"Icon"="C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe,0"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.webm\shell\Open with Shutter Encoder\command]
@="\"C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe\" \"%1\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.wmv\shell\Open with Shutter Encoder]
@="Open with Shutter Encoder"
"Icon"="C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe,0"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.wmv\shell\Open with Shutter Encoder\command]
@="\"C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe\" \"%1\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.flv\shell\Open with Shutter Encoder]
@="Open with Shutter Encoder"
"Icon"="C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe,0"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.flv\shell\Open with Shutter Encoder\command]
@="\"C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe\" \"%1\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.m4v\shell\Open with Shutter Encoder]
@="Open with Shutter Encoder"
"Icon"="C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe,0"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.m4v\shell\Open with Shutter Encoder\command]
@="\"C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe\" \"%1\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.3gp\shell\Open with Shutter Encoder]
@="Open with Shutter Encoder"
"Icon"="C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe,0"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.3gp\shell\Open with Shutter Encoder\command]
@="\"C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe\" \"%1\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.mts\shell\Open with Shutter Encoder]
@="Open with Shutter Encoder"
"Icon"="C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe,0"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.mts\shell\Open with Shutter Encoder\command]
@="\"C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe\" \"%1\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.m2ts\shell\Open with Shutter Encoder]
@="Open with Shutter Encoder"
"Icon"="C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe,0"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.m2ts\shell\Open with Shutter Encoder\command]
@="\"C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe\" \"%1\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.vob\shell\Open with Shutter Encoder]
@="Open with Shutter Encoder"
"Icon"="C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe,0"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.vob\shell\Open with Shutter Encoder\command]
@="\"C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe\" \"%1\""

; ====================
; AUDIO FORMATS
; ====================
[HKEY_CLASSES_ROOT\SystemFileAssociations\.wav\shell\Open with Shutter Encoder]
@="Open with Shutter Encoder"
"Icon"="C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe,0"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.wav\shell\Open with Shutter Encoder\command]
@="\"C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe\" \"%1\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.aiff\shell\Open with Shutter Encoder]
@="Open with Shutter Encoder"
"Icon"="C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe,0"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.aiff\shell\Open with Shutter Encoder\command]
@="\"C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe\" \"%1\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.flac\shell\Open with Shutter Encoder]
@="Open with Shutter Encoder"
"Icon"="C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe,0"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.flac\shell\Open with Shutter Encoder\command]
@="\"C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe\" \"%1\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.m4a\shell\Open with Shutter Encoder] ; ALAC
@="Open with Shutter Encoder"
"Icon"="C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe,0"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.m4a\shell\Open with Shutter Encoder\command]
@="\"C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe\" \"%1\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.mp3\shell\Open with Shutter Encoder]
@="Open with Shutter Encoder"
"Icon"="C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe,0"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.mp3\shell\Open with Shutter Encoder\command]
@="\"C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe\" \"%1\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.aac\shell\Open with Shutter Encoder]
@="Open with Shutter Encoder"
"Icon"="C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe,0"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.aac\shell\Open with Shutter Encoder\command]
@="\"C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe\" \"%1\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.ac3\shell\Open with Shutter Encoder]
@="Open with Shutter Encoder"
"Icon"="C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe,0"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.ac3\shell\Open with Shutter Encoder\command]
@="\"C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe\" \"%1\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.opus\shell\Open with Shutter Encoder]
@="Open with Shutter Encoder"
"Icon"="C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe,0"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.opus\shell\Open with Shutter Encoder\command]
@="\"C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe\" \"%1\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.ogg\shell\Open with Shutter Encoder] ; Vorbis
@="Open with Shutter Encoder"
"Icon"="C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe,0"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.ogg\shell\Open with Shutter Encoder\command]
@="\"C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe\" \"%1\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.eac3\shell\Open with Shutter Encoder] ; Dolby Digital Plus
@="Open with Shutter Encoder"
"Icon"="C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe,0"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.eac3\shell\Open with Shutter Encoder\command]
@="\"C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe\" \"%1\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\.thd\shell\Open with Shutter Encoder] ; Dolby TrueHD
@="Open with Shutter Encoder"
"Icon"="C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe,0"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.thd\shell\Open with Shutter Encoder\command]
@="\"C:\\Program Files\\Shutter Encoder\\Shutter Encoder.exe\" \"%1\""

@paulpacifico Maybe you could add a toggle in the settings menu to run this .reg file for users who want the context menu functionality?

detfusco avatar Jun 08 '25 22:06 detfusco

Thanks a lot for this registry key, I've deleted my own because I found the app buggy when running when passing file to the app, don't you have any bugs even with some extra settings like 'Corrections' or 'Color grading'?

paulpacifico avatar Jun 10 '25 19:06 paulpacifico

@paulpacifico I usually don't use corrections or color grading, what types of bugs are we talking about?

EDIT: Oh, I see it now. When I use the context menu from the .reg, the encode process finishes prematurely without any progress. But when I use the desktop shortcut, it completes successfully. Also the desktop shortcut has a target field of

""C:\Program Files\Shutter Encoder\JRE\bin\javaw.exe" -Xmx4G -Djavax.accessibility.assistive_technologies -Djavax.accessibility.screen_magnifier_present=false -jar "Shutter Encoder.exe""

It has bunch of command-line arguments and targets javaw.exe instead of "Shutter Encoder.exe" Maybe that's what's causing the issue. The funny thing is that corrections and color grading effects make the encode fail, even when I use the default "Open with" list:

Image

For some reason, only the default desktop shortcut is able to encode successfully with those effects. Why might that be? :S

detfusco avatar Jun 10 '25 21:06 detfusco

Yes exactly and I never understand why there is such a bug, nothing on my code could do that so it seems a Java side bug.

Paul.

paulpacifico avatar Jun 12 '25 16:06 paulpacifico

Okay, I almost never use color grading, so I’ll stick with this reg file for now :S Thanks for the reply, tho.

detfusco avatar Jun 12 '25 19:06 detfusco