Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- :: MUX h264 with m4a or aac to MP4
- set MP4Box="D:\Apps\mp4box\MP4Box.exe"
- IF EXIST "%~1\" (
- echo. & echo Select Files Not Folders
- GOTO EOF
- )
- IF [%2]==[] echo. & echo You Just Picked a Single File & echo. & timeout 8 >NUL
- CD /D "%~dp1"
- FOR %%F IN (%*) DO (
- IF [%%~xF]==[.h264] set videof=%%~nxF
- IF [%%~xF]==[.h264] set movien=%%~nF
- IF [%%~xF]==[.m4a] set audiof=%%~nxF
- IF [%%~xF]==[.aac] set audiof=%%~nxF
- )
- set release=720p.BRRip.x264.mp4
- set frames=23.976
- IF EXIST "%movien%*-PT*" (
- set output=%movien%.PORTUGUESE.%release%
- set idiom=pt
- ) ELSE (
- set output=%movien%.%release%
- set idiom=eng
- )
- echo Video: %videof%
- echo Audio: %audiof%
- echo Target: %output%
- %MP4Box% -new -add %videof%:fps=%frames%:lang=%idiom%:name="" -add %audiof%:lang=%idiom%:name="" %output%
- :EOF
Advertisement
Add Comment
Please, Sign In to add comment