Skip to content

Instantly share code, notes, and snippets.

@AdventurerRussia
Last active April 13, 2024 12:43
Show Gist options
  • Save AdventurerRussia/b55cff08b9043709d06b7e44ae050c63 to your computer and use it in GitHub Desktop.
Save AdventurerRussia/b55cff08b9043709d06b7e44ae050c63 to your computer and use it in GitHub Desktop.
importing audio to video v4
@echo off
echo mka
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.mka" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES(x86)%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.mka" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
echo m4a
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.m4a" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES(x86)%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.m4a" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
echo ac3
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.ac3" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES(x86)%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.ac3" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
echo aac
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.aac" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES(x86)%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.aac" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
echo flac
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.flac" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES(x86)%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.flac" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
echo wav
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.wav" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES(x86)%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.wav" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
echo dts
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.dts" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES(x86)%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.dts" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
echo truehd
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.truehd" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES(x86)%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.truehd" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
echo ec3
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.ec3" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES(x86)%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.ec3" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
echo dtshd
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.dtshd" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES(x86)%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.dtshd" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
echo mp3
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.mp3" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES(x86)%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.mp3" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
echo ogg
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.ogg" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES(x86)%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.ogg" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
echo mp2
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.mp2" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES(x86)%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.mp2" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
echo mpa
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.mpa" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES(x86)%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.mpa" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
echo eac3
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.eac3" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
for %%f in ("*.mkv","*.mp4","*.hevc","*.avi","*.h264","*.m2ts","*.ogm","*.mpg") do "%PROGRAMFILES(x86)%\MkvToolNix\mkvmerge.exe" --output "Completed\%%~nf.mkv" --default-track 0:yes --forced-track 0:no --language 0:rus ( "%%~nf.eac3" ) --default-track 0:yes --forced-track 0:no --language 0:jpn ( "%%f" ) --title "%%~nf" --track-order 1:0,0:0 --no-global-tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment