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

Reply
 
Thread Tools Display Modes
Old 04-03-2019, 07:10 AM   #1
David Else
Human being with feelings
 
Join Date: Mar 2012
Posts: 610
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

OPTION="$1"

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
fi

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

echo 'Please add the name of an .MTS file or --all'
__________________
----------> Debian Linux Distribution = Computing Joy & Freedom <----------
David Else is offline   Reply With Quote
Old 04-04-2019, 11:00 AM   #2
Eliseat
Human being with feelings
 
Eliseat's Avatar
 
Join Date: Mar 2018
Location: Cologne
Posts: 1,362
Default

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

Thanks

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.
__________________
☆.。.:*・°☆.。.:*・°☆.。.:*・°☆REAPER//✿◔‿◔)°☆.。.:*・°☆.。.:*・°☆
Eliseat is offline   Reply With Quote
Reply

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 02:32 PM.


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