Skip to content

Instantly share code, notes, and snippets.

@BenMcLean
Last active May 27, 2022 15:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BenMcLean/2e9950e2508b18ae16d84b2b5021a7f0 to your computer and use it in GitHub Desktop.
Save BenMcLean/2e9950e2508b18ae16d84b2b5021a7f0 to your computer and use it in GitHub Desktop.
Quadraphonic FLACs converted to fake 5.1 Surround FLACs
@ECHO OFF
cd %~dp0
for /f "eol=: delims=" %%F in ('dir /b /a-d *.mka ^| findstr /vixc:"%~nx0"') do ( ffmpeg.exe -i "%%F" -af "pan=5.1|FL=FL|FR=FR|BL=SL|BR=SR" "%%F.flac" )
@PAUSE
@ECHO OFF
cd %~dp0
md 6ch
ffmpeg.exe -i "%~1" -af "pan=5.1|FL=FL|FR=FR|BL=BL|BR=BR" "6ch\%~n1.flac"
echo Output file is: "%~n1.flac"
@PAUSE
@ECHO OFF
cd %~dp0
for /f "eol=: delims=" %%F in ('dir /b /a-d *.flac ^| findstr /vixc:"%~nx0"') do ( ffmpeg.exe -i "%%F" -af "pan=5.1|FL=FL|FR=FR|BL=BL|BR=BR" "%%F.flac" & if not errorlevel 1 ( del "%%F" & ren "%%F.flac" "%%F" ) )
@PAUSE
@ECHO OFF
cd %~dp0
md 6ch
ffmpeg.exe -i "%~1" -af "pan=5.1|FL=FL|FR=FR|FC=FC|BL=SL|BR=SR" "6ch\%~n1.flac"
echo Output file is: "%~n1.flac"
@PAUSE
@ECHO OFF
cd %~dp0
for /f "eol=: delims=" %%F in ('dir /b /a-d *.flac ^| findstr /vixc:"%~nx0"') do ( ffmpeg.exe -i "%%F" -af "pan=5.1|FL=FL|FR=FR|FC=FC|BL=SL|BR=SR" "%%F.flac" & if not errorlevel 1 ( del "%%F" & ren "%%F.flac" "%%F" ) )
@PAUSE
@BenMcLean
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment