Convert a list of MTS files to AVI

General Linux items
User avatar
daniel
Site Admin
Posts: 223
Joined: Tue Jan 09, 2007 9:54 pm
Contact:

Convert a list of MTS files to AVI

Postby daniel » Thu May 28, 2015 7:47 pm

Using a digital camera is very fun to do. But these files are saved with a MTS extension.
For playing them on the TV through USB, must the be in AVI format. Hereby a small script which will convert all MTS files into AVI in a given directory.

Code: Select all

for file in *.MTS; do
  ffmpeg -i "$file" -vcodec libxvid -b 18000k -acodec libmp3lame -ac 2 -ab 320k -deinterlace -s 1920x1080 "${file%.MTS}.avi"
done

Return to “General”

Who is online

Users browsing this forum: No registered users and 0 guests