Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to convert ts to mp4 with ffmpeg

ffmpeg -i input.ts -c:v libx264 -c:a aac output.mp4
Comment

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"
Comment

ffmpeg join ts files to mp4

// Windows
copy /b segment1_0_av.ts+segment2_0_av.ts+segment3_0_av.ts all.ts
ffmpeg -i all.ts -acodec copy -vcodec copy all.mp4

// GNU/Linux, using bash:
cat segment1_0_av.ts segment2_0_av.ts segment3_0_av.ts > all.ts
ffmpeg -i all.ts -acodec copy -vcodec copy all.mp4
Comment

PREVIOUS NEXT
Code Example
Shell :: install go 
Shell :: how to install sshpass on mac 
Shell :: stop nginx service 
Shell :: github make new branch 
Shell :: bash input 
Shell :: @react-navigation/stack install npm 
Shell :: database is being accessed by other users 
Shell :: how to make file in powershell 
Shell :: git clone in ubuntu 
Shell :: install ag in mac 
Shell :: install chocolatey 
Shell :: find tomcat location in mac 
Shell :: create and copy folder in ubuntu 
Shell :: What is the difference between git push origin and git push origin master 
Shell :: install vs code on fedora 
Shell :: pip install pytorch windows 
Shell :: powershell get all directories in path 
Shell :: python not found. install python-is-python3 
Shell :: Error: `@cucumber/cucumber` module not resolvable. Must be locally installed. 
Shell :: how to undo a local commit 
Shell :: install cuda driver in ubuntu 
Shell :: delete a branch from remote 
Shell :: run production environment nodejs 
Shell :: create flutter project command line 
Shell :: sudo apt-get ignore warning 
Shell :: windows could not start the apache 2.4 on local computer 
Shell :: aws s3 download file 
Shell :: install aws cli version 2 on mac 
Shell :: ubuntu wifi with no internet 
Shell :: mongodb install ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =