Problem importing mts files into LR 5.3

  • 1
  • Question
  • Updated 4 years ago
Having a prob with Sony mts files.

In this post

http://feedback.photoshop.com/photosh...

the problem of mts files is explained, and some possible work-arounds indicated.

As I cannot import my Sony files, I assume that the problem still exists.

Could someone help by suggesting HOW I would go about re-wrapping the mts file in a different container which LR will import. Does this process involve any loss of quality.

Many thanks
Photo of Colin McDonald

Colin McDonald

  • 61 Posts
  • 12 Reply Likes

Posted 4 years ago

  • 1
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 372 Reply Likes
Theoretically, you should be able to import those mts files natively in Lr. If you can't, then these commands may allow you to:

Windows:

ffmbc -i "{input-file}.mts" -sameq -y "{output-file}.mp4"

Mac:

ffmpeg -i "{input-file}.mts" -sameq -y "{output-file}.mp4"

Something like that is rolled into Ottomanic Importer for auto-transcoding video upon import, but if that's the only feature you care about, consider just creating a batch file and dropping videos on it prior to import, and forgoe Ottomanic Importer.

Note: since Ottomanic Importer includes those ffm.. executables, you could download it just for those if you can't find appropriate executables elsewhere.

http://www.robcole.com/Rob/ProductsAn...
Photo of Colin McDonald

Colin McDonald

  • 61 Posts
  • 12 Reply Likes
Thanks for such a prompt and helpful reply.

I'm just leaving the house now, but will try this later and report back.

Many thanks
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 371 Reply Likes
You bet.

PS: -sameq stands for "same quality", i.e. if possible, it won't re-encode and lose quality, it just "re-wraps".
Photo of Colin McDonald

Colin McDonald

  • 61 Posts
  • 12 Reply Likes
I now have to go away fro the weekend. My father is ill and needs care, so it will be a few days before I can follow up on this.

Thanks again anyway

Colin
Photo of Colin McDonald

Colin McDonald

  • 61 Posts
  • 12 Reply Likes


Now back home and had a look at my problem. Your solution works perfectly

Am I right in assuming that it doesn't like wildcards however. I tried a batch file to save entering long file names

c:\ffmbc -i "*.avi" -sameq -y "*.mp4"

This worked perfectly with 1 file in a folder, but as soon as there are 2 or more files, I was getting a strange error - see image.

Basically, it was loading "2010-04-01 - Leatherhead - 31.avi" then telling me it wanted to overwrite "2010-04-01 - Leatherhead - 32.mp4" ie a different file number)
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 371 Reply Likes
Glad you've made progress Colin, but sorry: I have no experience with or knowledge of batch syntax.. You can certainly use "dos" techniques to feed files in and avoid ffmbc wildcards.

Consider internet search for something like "dos bat loop through files".
Photo of Colin McDonald

Colin McDonald

  • 61 Posts
  • 12 Reply Likes
In an earlier post you said

-sameq stands for "same quality", i.e. if possible, it won't re-encode and lose quality, it just "re-wraps".

Does the same apply to AVI files.

I just ran 53 AVI files (total 0.98Gb) through this process, and the resulting mp4 files took up 1.76Gb
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 371 Reply Likes
It has to re-encode avi to get mp4 because they use different video codecs. The marked size increase seems unfortunate but I dunno if it is abnormal in this case. There are tons of other command line switches if you want more control.