Author Topic: MTS video files  (Read 943 times)

b4rney

  • Guru
  • ****
  • Posts: 454
    • View Profile
MTS video files
« on: June 25, 2010, 01:10:32 pm »
My panasonic HD camcorder records avchd files (mts). Linuxmce doesn't list these files under the video menu. Is there a way to convert these files into something else?

I tried m2ts extension and they appear in the menu but there is a black screen when played.
Any suggestions?
Barney

pw44

  • Addicted
  • *
  • Posts: 653
    • View Profile
Re: MTS video files
« Reply #1 on: June 25, 2010, 01:14:30 pm »
« Last Edit: June 25, 2010, 03:01:48 pm by pw44 »

b4rney

  • Guru
  • ****
  • Posts: 454
    • View Profile
Re: MTS video files
« Reply #2 on: June 25, 2010, 01:59:29 pm »
Thanks Paulo,
Trying that now. I'll let you know.
Barney

b4rney

  • Guru
  • ****
  • Posts: 454
    • View Profile
Re: MTS video files
« Reply #3 on: June 25, 2010, 02:36:00 pm »
No, it won't play.
Found this:
http://en.wikipedia.org/wiki/.m2ts

Looks like mts and m2ts are the same. It should work I guess, but it doesn't.
Barney

pw44

  • Addicted
  • *
  • Posts: 653
    • View Profile
Re: MTS video files
« Reply #4 on: June 25, 2010, 03:05:34 pm »
Having the file file.mts, can you play it under kde desktop, using xine (gxine...)?
if you are able to pay it using xine the xine plugin, you will be able to play it under lmce xine engine, but you will need to add mts to the database according the wiki. m2ts is played using the mplayer plugin.

b4rney

  • Guru
  • ****
  • Posts: 454
    • View Profile
Re: MTS video files
« Reply #5 on: June 25, 2010, 03:14:46 pm »
I added the mts extension as explained in that wiki entry but it still didn't work. Not tested under kubuntu desktop with xine yet.

I've used the following mencoder script on the core to transcode to mpg. Maybe it will help others:
mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd -vf scale=720:576,harddup -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=15:aspect=16/9:threads=4 input.mts -ofps 25 -fps 50 -demuxer lavf -o output.mpg

Thanks for your help Paulo.
Barney

willow3

  • Veteran
  • ***
  • Posts: 56
    • View Profile
Re: MTS video files
« Reply #6 on: January 10, 2011, 11:18:37 am »
I have the same problem with my panasonic mts files. in theory they should play but they wont. I use your mencode script for the time being. thanks! please let us know if you have any progress!