Skip to content

Instantly share code, notes, and snippets.

@Apihplays
Last active February 2, 2025 03:37
Show Gist options
  • Save Apihplays/c085dc05d672635c5afeb62bcedb362c to your computer and use it in GitHub Desktop.
Save Apihplays/c085dc05d672635c5afeb62bcedb362c to your computer and use it in GitHub Desktop.
Convert .ts to .mp4
for %%f in (*.ts) do call ffmpeg -i "%%~f" -vcodec copy -acodec copy "%%~nf.mp4"
@Apihplays
Copy link
Author

Apihplays commented Feb 2, 2025

Put this file into directory containing .ts file . Once open it will automatically convert all .ts file in directory to .mp4 file.

Must have ffmpeg.exe binary in the folder with the tstomp4.bat script otherwise it will not work
Get those ffmpeg binary using this official link. Just use the essential-build is enough 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment