Skip to content

Instantly share code, notes, and snippets.

@PatHightree
Created May 16, 2022 21:04
Show Gist options
  • Save PatHightree/82837e62040a4e40b8853420ba511783 to your computer and use it in GitHub Desktop.
Save PatHightree/82837e62040a4e40b8853420ba511783 to your computer and use it in GitHub Desktop.
Windows batch script for FFmpeg, transcodes all *.TS files in the current directory to .mp4
@ECHO OFF
setlocal enabledelayedexpansion
for %%f in (*.TS) do (
set /p val=<%%f
ffmpeg -i %%f -map 0 -c copy %%~nf.mp4
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment