Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setlocal EnableDelayedExpansion
- :loop
- if "%~1"=="" goto break
- set "input=%~n1"
- set "ending=%~x1"
- set "cleanin=!input:_original=!"
- set "output=!cleanin!.mp4"
- echo "!input!" | findstr /I /R "^.*_original" > NUL
- if !errorlevel! EQU 0 (
- set "output=!cleanin!.mp4"
- ) else (
- if /I "!ending!"==".mp4" (
- set "output=!cleanin!_remux.mp4"
- )
- )
- ffmpeg -i %1 -c copy "!output!"
- shift
- goto loop
- :break
- endlocal
- if errorlevel 1 pause
Advertisement
Add Comment
Please, Sign In to add comment