VLC media player:「open」アクションを設定するためのレジストリ

openアクションの設定

VLC media playerをインストール時に多くの種類の動画ファイルに関連付けした。 ただこれだと「open」のアクションが設定されないため、 例えばPDFファイルに埋め込まれたリンクから動画ファイルを開こうとしてもうまくVLC media playerが立ち上がらない。 以下は、VLC media playerに関連付けされた主な動画ファイルに「open」アクションを設定するためのレジストリファイル。

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\VLC.a52\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.aac\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.ac3\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.dts\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.flac\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.mka\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.mp1\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.mp2\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.mp3\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.ogg\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.spx\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.wav\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.wma\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.asf\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.avi\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.divx\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.dv\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.m1v\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.m2v\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.mkv\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.mov\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.mp4\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.mpeg\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.mpeg1\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.mpeg2\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.mpeg4\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.mpg\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.ps\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.ts\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.ogm\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.vob\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.wmv\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.asx\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.bin\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.cue\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.m3u\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.pls\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.vlc\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

FLVファイルの関連付け

ついでに以下は、.flvファイルをVLC media playerに関連付けするためのレジストリファイル。

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.flv]
@="VLC.flv"
"PerceivedType"="video"
"Content Type"="video/flv"

[HKEY_CLASSES_ROOT\.flv\shell]

[HKEY_CLASSES_ROOT\.flv\shell\AddToPlaylistVLC]
@="Add to VLC media player's Playlist"

[HKEY_CLASSES_ROOT\.flv\shell\AddToPlaylistVLC\command]
@="C:\\Program Files\\VideoLAN\\VLC\\vlc.exe --started-from-file --playlist-enqueue \"%1\""

[HKEY_CLASSES_ROOT\.flv\shell\PlayWithVLC]
@="Play with VLC media player"

[HKEY_CLASSES_ROOT\.flv\shell\PlayWithVLC\command]
@="C:\\Program Files\\VideoLAN\\VLC\\vlc.exe --started-from-file --no-playlist-enqueue \"%1\""

[HKEY_CLASSES_ROOT\VLC.flv]
@="VLC media file (.flv)"

[HKEY_CLASSES_ROOT\VLC.flv\DefaultIcon]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\",0"

[HKEY_CLASSES_ROOT\VLC.flv\shell]
@="Play"

[HKEY_CLASSES_ROOT\VLC.flv\shell\open]

[HKEY_CLASSES_ROOT\VLC.flv\shell\open\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""

[HKEY_CLASSES_ROOT\VLC.flv\shell\Play]

[HKEY_CLASSES_ROOT\VLC.flv\shell\Play\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --started-from-file \"%1\""