Reading .MTS files for image processing

9 ビュー (過去 30 日間)
Santosh
Santosh 2012 年 11 月 5 日
編集済み: Walter Roberson 2015 年 7 月 13 日
I need to read .MTS files for statistical analysis of a video.
The mmreader function in matlab does not accept .MTS.
Please suggest me the best way forward. One way is to convert to .avi and then use in matlab. However, I am concerned about the loss of quality in this case.
-- Santosh

採用された回答

Santosh
Santosh 2013 年 6 月 5 日
編集済み: Walter Roberson 2015 年 7 月 13 日
Hi Daniel,
I have used ffmpeg to convert .mts to .avi and then used videoReader in matlab.
I am using a win64 machine and the version of ffmpeg I installed is ffmpeg-20121105-git-c995644-win64-static.
I call ffmpeg from matlab to convert from .MTS to .AVI using
str=strcat('ffmpeg.exe -i "',MTS_file,'" -c:v copy "',AVI_file,'"');
s=system(str);
  1 件のコメント
David Hight
David Hight 2015 年 4 月 21 日
Your solution gives poor quality. How do I fix this.

サインインしてコメントする。

その他の回答 (1 件)

Darrel
Darrel 2013 年 6 月 5 日
Hi Santosh,
Did you ever get anywhere with this? I have the same problem and have been trying DalleyG's videoReader with K-lite codec pack and Haali media splitter installed but it keeps crashing with a segmentation fault. If you found a way to make this work I'd be glad to know what you did.
  1 件のコメント
Santosh
Santosh 2013 年 6 月 5 日
I have added my solution as an answer.

サインインしてコメントする。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by