Skip to content

Instantly share code, notes, and snippets.

@croensch
Created December 3, 2011 12:49
Show Gist options
  • Save croensch/1427051 to your computer and use it in GitHub Desktop.
Save croensch/1427051 to your computer and use it in GitHub Desktop.
mp4creator: list-and-delete-track (MP4 to M4A)
@echo off
SETLOCAL EnableDelayedExpansion
SET TOOL=mp4creator.exe
SET WD=%CD%
SET /P WD="%WD%\"
FOR /R "%WD%" %%F IN (*.mp4) DO (
echo ================================================================
echo %%~dpnF.m4a
echo ----------------------------------------------------------------
copy "%%~dpnF.mp4" "%%~dpnF.m4a" > nul
%~dp0%TOOL% -list "%%~dpnF.m4a"
echo ----------------------------------------------------------------
SET DT=1
SET /P DT="delete track [!DT!]: "
%~dp0%TOOL% -delete=!DT! -optimize "%%~dpnF.m4a"
echo ================================================================
echo .
)
PAUSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment