#author("2020-07-20T17:43:35+09:00","","")
#author("2020-07-22T14:31:20+09:00","","")
#contents

*[[Run service:http://www.foobar2000.org/components/view/foo_run]] [#db24c053]

#imgr(./snaps/run_service_setting.png);

--プレイリストビュー上でトラック、アルバムを選択し、右クリック>Run service を選択します。
--メタデータを引数に含めたコマンドを実行できます。
%album%, %artist% などとブラウザを組み合わせれば、ほとんどのオンライン検索サービスが直接使えます。
実行ソフトの組み合わせによっては、非常に強力な操作が行えます。

*コマンドの設定方法 [#qbe4154f]
Preferences - Tools - Run services から設定を行います。

#imgr(./snaps/run_service.png);

基本的には、
 "パスを含めたファイル名" "コマンド"
の形となります。半角スペースを忘れないように。
64bitの場合、"C:\Program Files '('x86')'\IrfanView\i_view32.exe" かっこは、'('x86')' となります。

*コマンドの例 [#h3dac5e1]

これらやデフォルトのものを参考にし、自分なりにカスタマイズしてみるのもいいでしょう。
うまく動作しない場合は、ちゃんとコピー&ペーストができていたかも確認してみてください。

**[[CoverDownloader>External program#d0b34fa5]] [#aadc4a11]
アルバムのジャケットをダウンロードするソフト。

-1フォルダにまとめて保存
 "(パス名)\albumart.exe" "%album artist%" "%album%" "D:\covers\$replace(%album artist% - %album%,<,_,>,_,\,_,/,_,*,_,:,_,",_,|,_).jpg"
-アルバム毎に保存
 "(パス名)\albumart.exe" "%album artist%" "%album%" "$replace(%path%,%filename_ext%,)folder.jpg"
-Version 0.6 alpha 2ではコマンドラインが変更されています
 albumart.exe [-ae on|off] [-pf on|off] [-ar "Artist"] [-al "Album"] [-p "Path"] [-f "Filename"]
--Options
 -ae on|off     Show already existing Album Art
 -pf on|off     Show pictures in folder
 -ar "Artist"   Artist to search
 -al "Album"    Album to search
 -p "Path"      Path to save image
 -f "Filename"      Filename to use
-example
 "(パス名)\albumart.exe" -ar "Roni Size & Reprazent" -al "In The Mode" -p "D:\music2\Roni Size & Reprazent\In The Mode" -f "folder.jpg"

**[[AlbumArtDownloader XUI:http://www.hydrogenaudio.org/forums/index.php?showtopic=57392]] [#ke1d16cb]
アルバムのジャケットをダウンロードするソフト。
-Artist Album検索 アルバム毎に保存
 "C:\Program Files\AlbumArtDownloader\AlbumArt.exe" /artist "%artist%" /album "%album%" /p "$replace(%path%,\%filename_ext%,)" /f "folder.jpg"
-foobarBrowser: メニュー>File>New>Foobar Browser... Libray、Playlistのアルバムアートの有無と画像の大きさ、サイズを表示する。[[COM Automation Server (foo_comserver):https://www.hydrogenaud.io/forums/index.php?showtopic=39946]]のインストールが必要。
 "C:\Program Files\AlbumArtDownloader\AlbumArt.exe" /foobarBrowser
-Album Art Downloader XUIを起動してからの操作は、メニュー>File>New>Foobar Browser... をクリックCOM Automation Server (foo_comserver2.dll)インストール先foobarが起動。AlbumArtDownloader画面でMedia Library, Playlistを選択してSearchをクリック。

**[[artistArt downloader:http://www.hydrogenaudio.org/forums/index.php?showtopic=77425&hl=]] [#ob7f1ac3]

Last.fmからアーティストイメージ画像を検索し拾ってくる
foo_runで使用する時のCode例
 "art.exeフルパス" "%artist%" "$replace(%path%,%filename_ext%,%artist% - image)" 5
音楽ファイルと同じ場所に「%artist% - image」名のフォルダが作成され
その中にアーティストイメージ画像5枚が保存される

GUI バージョンを使って一つのフォルダにアーティストごとのフォルダを作成し保存する
保存フォルダ(例:C:\Last.fm Artist Image\)は予め作成しておく
 "artGui.exeフルパス" "%artist%" "C:\Last.fm Artist Image\%artist%" 5
メイン画面に画像が検索されOKならば、B右「Download All」をクリックして保存する

External program - [[artistArt downloader>External program#pcc481bc]] | [[lastFmArtist downloader>External program#v0f71187]]

**[[neroAacTag.exe (NeroDigitalAudio):http://www.nero.com/eng/downloads-nerodigital-nero-aac-codec.php]] [#df4ceb7d]

AAC(m4a) 音楽ファイルに画像を埋め込む
-アルバム毎に画像を埋め込む
 "(パス名)\neroAacTag.exe" "$replace(%path%,%filename_ext%,*.m4a)" -add-cover:front:"$replace(%path%,%filename_ext%,folder.jpg)"

**[[metamp3:http://www.hydrogenaudio.org/forums/index.php?showtopic=49751]] [#w7d903e6]

mp3 音楽ファイルのID3タグに画像を埋め込む
※2009年10月12日現在、日本語等のマルチバイト文字を含むファイルパスの扱いに未対応
-アルバム毎に画像を埋め込む
 "(パス名)\metamp3.exe" --pict "$replace(%path%,%filename_ext%,folder.jpg)" "$replace(%path%,%filename_ext%,*.mp3)"

**[[IrfanView:http://www.irfanview.net/]] [#d49a0219]
画像ビューワー
-IrfanViewの設定によりキーボード操作で次々画像の切り替え表示やFullScreen、Slideshowが可能
Menu -> Preferences -> General -> Keyboard Shortcuts「Add New」から追加登録し「Key」を
「Global Hotkey」にチェックを入れて使用するとfoobarを最小化しても画像表示を楽しむ事が出来る
-画像: ジャケ画像、アーティストイメージ画像など、そのままの大きさ(サイズ)で楽しめる。例はアーティストフォルダをアーティストごとにまとめたフォルダを指定。
 "C:\Program Files '('x86')'\IrfanView\i_view32.exe" "C:\Artist Image\%album artist%\"

**[[Lyrics Master 2:http://www.kenichimaehashi.com/kmsoftlab/lyricsmaster/]] [#scae062b]
歌まっぷなどのサイトから歌詞をダウンロードするソフト。
 C:\WINDOWS\system32\wscript.exe "(パス名)\extsupport.js" multi "[%title%]" "[%artist%]"

**[[K5 MP3 Analtyzer:http://kkkkk.net/?key=soft.kma]] [#nd27a122]
MP3ファイルのフレームヘッダを解析するソフト。
 "(パス名)\kma.exe" "%path%"

**[[Mr QuestionMan:http://www.burrrn.net/?page_id=5]] [#jded6bb6]
エンコーダの種類やエンコード設定などを表示するソフト。
 "C:\Program Files\Mr questionman\Mr questionman.exe" "$substr(%_path%,0,$strrchr(%_path%,'\'))"

**[[mp3tag:http://www.mp3tag.de/en/]] [#vbeda19b]
多くのフォーマットに対応している[[高機能なタグエディタ>External program#y12e5696]]
 "(パス名)\Mp3tag.exe" "%_path%"
-選択ファイルと同じディレクトリにある、mp3tag対応ファイルを全部挿入する方法
 "(パス名)\Mp3tag.exe" "$cut(%path%,$sub($len2(%path%),$len2(%filename_ext%)))"
 
 "(パス名)\Mp3tag.exe" "$substr(%_path%,1,$strrchr(%_path%,'\'))"
 
 Windows 7 x64
 "C:\Program Files '('x86')'\Mp3tag\Mp3tag.exe" "$substr(%_path%,1,$strrchr(%_path%,'\'))"
 
 "C:\Program Files '('x86')'\Mp3tag\Mp3tag.exe" /fp:"$directory_path(%path%)"

-アルバム単位でCDジャケ画像を埋め込むには、Ctrl+Aで全て選択後
ツールバーアイコン「Extend Tag...」をクリックして「Cover」で行う。

Mp3tag v2.45b updated TAK decoder library tak_deco_lib.dll to [[TAK 2.0.0:http://www.hydrogenaudio.org/forums/index.php?showtopic=77605&st=0&p=678268&#entry678268]]

**[[AACGain:http://www.rarewares.org/aac-encoders.php]] [#xc029851]
MP4/AACファイルの音量を均一化する
 "(パス名)\aacgain.exe" /g $muldiv($replace(%__replaygain_track_gain%,.,),2,300) "%path%"

**[[Audacity:http://web.audacityteam.org/download/windows]] [#g49685de]
サウンド編集、波形編集ソフトなどにも渡して編集することも出来る
 "C:\Program Files\Audacity\audacity.exe" "%path%"

**[[Audio Switcher:http://audioswit.ch/er#download]] [#kefe34a3]
Audio Deviceを簡単に切り替えるソフト。Audio Switcher 画面からコントロールパネル-サウンド画面も簡単に開ける。
 "C:\Audio Switcher\AudioSwitcher.exe""

**[[Audiomass - Audio Editor:https://audiomass.co/]] [#r06b3838]
-ブラウザ上で動く波形編集ツール"Audiomass - Audio Editor"
 "C:\Program Files\Mozilla Firefox\firefox.exe" "https://audiomass.co/"

-"Welcom to AudioMass画面の"OK"ボタンをクリックする。
Playlist ViewからTrackをブラウザ Audiomass - Audio Editor画面に Drag & Dropする。
解析が終了後Playボタンで再生開始。
-対応ファイル形式: opus、flac、webm、weba、wav、ogg、m4a、mp3、oga、mid、amr、aiff、wma、au、aac

**webブラウザによる検索 [#u2f89d56]

***Internet Explorer [#l3771ea7]

-Google: Artist 検索(デフォルトのものは2バイト文字に対応していません。)
 explorer "http://www.google.com/search?ie=Shift_JIS&oe=Shift_JIS&q=%artist%"
-Google: Artist Title 検索
 explorer "http://www.google.com/search?ie=Shift_JIS&oe=Shift_JIS&q=%artist%+%title%"

***Firefox [#hf395ac5]

-Google: Artist 検索
 firefox.exe "http://www.google.com/search?q=%artist%&ie=utf-8"
-Google: Artist Title 検索
 firefox.exe "http://www.google.com/search?q=%artist%+%title%&ie=utf-8"
-Google: "Artist" 検索
 firefox.exe "http://www.google.com/search?q='%22'$replace(%artist%,&,'%26')'%22'&ie=utf-8"
-Amazon.co.jp: Artist 検索
 firefox.exe "http://www.amazon.co.jp/gp/search?&index=music&keywords=%artist%&_encoding=UTF8&tag2"
-Amazon.co.jp: Artist Album 検索
 firefox.exe "http://www.amazon.co.jp/gp/search?&index=music&keywords=%artist%+%album%&_encoding=UTF8&tag2"
-last.fm: Album Artist Info
 firefox.exe "http://www.last.fm/music/%album artist%?setlang=en"
-last.fm: Album Artist Pictures
 firefox.exe "http://www.last.fm/music/%album artist%/+images?=language&setlang=en"
-ja.wikipedia: Artist 検索
 firefox.exe "http://ja.wikipedia.org/w/index.php?title=特別:検索&search=$replace(%artist%, ,+)&go=表示"