Advertisement
jcunews

ffmpegStripAudioMetadata

Oct 1st, 2023 (edited)
1,028
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.85 KB | None | 0 0
  1. @echo off
  2. setlocal
  3.  
  4. rem Context: https://old.reddit.com/r/software/comments/16wuuo1/old_qobuz_downloader_software/
  5.  
  6. if "%~1" == "" (
  7.   echo Drag and drop onto this batch file,
  8.   echo an audio file or a folder which *directly* contain audio files.
  9.   pause
  10.   goto :eof
  11. )
  12. if not exist %1 (
  13.   echo File/folder is not found: "%~1"
  14.   pause
  15.   goto :eof
  16. )
  17. 2>nul cd /d %1
  18. if errorlevel 1 (
  19.  rem file was given
  20.   "%~dp0\ffmpeg.exe" -hide_banner -i %1 -vn -acodec copy -map_metadata 0 -y "%~dpn1 out%~x1"
  21.   if not exist "%~dpn1 out%~x1" (
  22.     echo Non media file was given?
  23.     pause
  24.   )
  25.   goto :eof
  26. )
  27. rem folder was given. process WAV files
  28. set c=0
  29. for %%A in (*.wav) do (
  30.   set c=1
  31.   "%~dp0\ffmpeg.exe" -hide_banner -i "%%~fA" -vn -acodec copy -map_metadata 0 -y "%%~dpnA out%%~xA"
  32. )
  33. if %c% == 0 (
  34.   echo No WAV files in folder: "%~1"
  35.   pause
  36. )
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement