Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER for Video Editing/Mangling

Thread Tools Display Modes
Old 04-03-2019, 07:10 AM   #1
David Else
Human being with feelings
David Else's Avatar
Join Date: Mar 2012
Location: Near London, UK
Posts: 577
Default How To Convert .MTS Video (Sony Cameras) to .MKV using FFMPEG

I had no idea how simple it was! I used to actually re-encode the file, no need, you can convert in about 2 seconds and then edit your video in Reaper

You just need to copy the video and audio into a new container and strip the subtitles.

If for some crazy reason you are not using Linux, the FFMPEG commands are inside the script:

Just save this and make it executable, make sure FFMPEG is in the $PATH and enter the script name followed by the file name, or the script name followed by --all to convert the entire directory.

#!/usr/bin/env bash


if [[ $OPTION =~ \.MTS$ ]]; then
# -sn blocks all subtitle streams from being filtered/automatically selected/mapped for any output
ffmpeg -i "$OPTION" -c copy -sn "$OPTION".mkv

if [[ $OPTION == '--all' ]]; then
for i in *.MTS; do
[ -f "$i" ] || break
ffmpeg -i "$i" -c copy -sn "$i".mkv

echo 'Please add the name of an .MTS file or --all'
----------> Fedora Linux Distribution = Computing Joy & Freedom <----------
Learn Digital Audio Home | 'Nebula Explained' Course Out Now! | YouTube Channel | Twitter
David Else is offline   Reply With Quote
Old 04-04-2019, 11:00 AM   #2
Human being with feelings
Eliseat's Avatar
Join Date: Mar 2018
Location: Cologne
Posts: 1,172

I thought you were asking how to do this, and now I'm finding out you already gave the answer.


By the way: codecs and containers are often misinterpreted. Containers can contain a lot of different codecs. So its always a good option to take a look inside.
Eliseat is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 12:33 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.