This does not work;
Code: Select all
for %%F in (*.mkv) do (
mkvextract tracks %%F 0:video.264
ffmpeg -i %%F audio.ac3
BeSweet -core( -input "audio.ac3" -output "audio-new.ac3" ) -azid( ) -ota( -r 25000 23976 ) -bsn( -exe aften.exe )
mkvmerge.exe" --default-duration 0:23.976fps --fix-bitstream-timing-information 0 video.264 audio-new.ac3 -o %%~nF-new.mkv
del video.264 audio.ac3 audio-new.ac3
)
This works;
Code: Select all
for %%F in (*.mkv) do (
set Name=%%~nF
call :Process
)
goto End
:Process
mkvextract tracks %Name%.mkv 0:video.264
ffmpeg -i %Name%.mkv audio.ac3
BeSweet -core( -input "audio.ac3" -output "audio-new.ac3" ) -azid( ) -ota( -r 25000 23976 ) -bsn( -exe aften.exe )
mkvmerge.exe" --default-duration 0:23.976fps --fix-bitstream-timing-information 0 video.264 audio-new.ac3 -o %Name%-new.mkv
del video.264 audio.ac3 audio-new.ac3
exit /b
:End