LinuxMCE Forums

General => Users => Topic started by: b4rney on June 25, 2010, 01:10:32 PM

Title: MTS video files
Post by: b4rney 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
Title: Re: MTS video files
Post by: pw44 on June 25, 2010, 01:14:30 PM
Does it works under xine?
http://wiki.linuxmce.org/index.php/Adding_Recognised_Media_Types
Title: Re: MTS video files
Post by: b4rney on June 25, 2010, 01:59:29 PM
Thanks Paulo,
Trying that now. I'll let you know.
Barney
Title: Re: MTS video files
Post by: b4rney 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
Title: Re: MTS video files
Post by: pw44 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.
Title: Re: MTS video files
Post by: b4rney 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
Title: Re: MTS video files
Post by: willow3 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!