Skip to content

Instantly share code, notes, and snippets.

@Inori
Created March 15, 2020 08:29
Show Gist options
  • Save Inori/aa1b772b52771d6f87be73660c124ae5 to your computer and use it in GitHub Desktop.
Save Inori/aa1b772b52771d6f87be73660c124ae5 to your computer and use it in GitHub Desktop.
Add ExtractAudio ability to right click SendTo menu by calling FFmpeg
@echo off
set SCRIPT_ROOT=%~dp0
set FFMPEG=%SCRIPT_ROOT%ffmpeg.exe
set INPUT_FULLPATH=%1
set INPUT_FILENAME=%~n1
set INPUT_FOLDER=%~dp1
set OUTPUT_FULLPATH="%INPUT_FOLDER%%INPUT_FILENAME%.mp3"
echo Extraction audio from %INPUT_FULLPATH%
FFMPEG -i %INPUT_FULLPATH% %OUTPUT_FULLPATH%
Rem pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment