Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

ffmpeg batch convert ts to mp4 files in a folder

//On Windows CMD
for %i in (*.ts) do ffmpeg -i "%i"  -c:v libx264 -c:a aac "%~ni.mp4"

// for keeping data rate same to get same file size
for %i in (*.ts) do ffmpeg -i "%i"  -c:v libx264 -b:v 2M  -maxrate 1.4M -bufsize 1M  -c:a aac "../%~ni.mp4"
 
PREVIOUS NEXT
Tagged: #ffmpeg #batch #convert #ts #files #folder
ADD COMMENT
Topic
Name
5+9 =