MTS Files

This forum is for questions and discussion of all the aspects of handling your footage. If you have questions about capturing/ripping footage, AviSynth, or compression/encoding/converting, look here.

MTS Files

Postby Hagaren Viper » Thu May 24, 2012 11:03 pm

So someone wants me to edit a project, and the footage they gave me are MTS files....I've never even heard of this filetype. Vegas doesn't accept it, and I can't figure out a good way to convert it without losing lots of quality or getting a crapload of dropped frames. Has anyone had to work with this kind of file before? Any ideas?
ImageImage
ImageImage
User avatar
Hagaren Viper
 
Joined: 19 Aug 2005
Location: I dont wanna edit
Status: Just wanna play Persona 4Ever

Re: MTS Files

Postby Cannonaire » Fri May 25, 2012 12:10 am

I think ffvideosource() in Avisynth should open it.
Image Think millionaire, but with cannons. || Resident Maaya Sakamoto fan.
User avatar
Cannonaire
 
Joined: 05 May 2010
Location: Oregon
Status: OVERLOAD

Re: MTS Files

Postby Hagaren Viper » Fri May 25, 2012 1:10 am

Well, it opens with ffvideosource but it looks unusably blocky at best. :uhoh:
ImageImage
ImageImage
User avatar
Hagaren Viper
 
Joined: 19 Aug 2005
Location: I dont wanna edit
Status: Just wanna play Persona 4Ever

Re: MTS Files

Postby Cannonaire » Fri May 25, 2012 1:23 am

I looked it up, and it looks like .MTS files are AVCHD.
Sony Vegas Pro (and Movie Studio) 8+ should be able to edit with it. Also, make sure you have the most recent ffms (2.17).
Image Think millionaire, but with cannons. || Resident Maaya Sakamoto fan.
User avatar
Cannonaire
 
Joined: 05 May 2010
Location: Oregon
Status: OVERLOAD

Re: MTS Files

Postby Cannonaire » Fri May 25, 2012 1:31 am

I'm tired, so I didn't think of this before. You might try DSS2() in avisynth, which is what I currently use for Blu-ray (m2ts).
I do not know if this works for it, but if it does your best quality option is DGDecNV.
Image Think millionaire, but with cannons. || Resident Maaya Sakamoto fan.
User avatar
Cannonaire
 
Joined: 05 May 2010
Location: Oregon
Status: OVERLOAD

Re: MTS Files

Postby Hagaren Viper » Fri May 25, 2012 1:44 am

I actually should have clarified that I'm running Sony Vegas 6.0, so these files won't run in it.

I tried DSS2 and it bounced this warning back at me, Im not sure what to make of it even. It usually tells me why I can't open the file but I just got a string of numbers.
Spoiler :
Image
ImageImage
ImageImage
User avatar
Hagaren Viper
 
Joined: 19 Aug 2005
Location: I dont wanna edit
Status: Just wanna play Persona 4Ever

Re: MTS Files

Postby mirkosp » Fri May 25, 2012 4:42 am

Assuming it is an AVC video, DGDecNV is your best chance. If you do not have a cuda gpu, you could try DGAVCDecDi. If you don't want to buy either, you're out of luck, as it seems that ffmpeg/libav won't work with it, so the old DGAVCDec based on ffmpeg is not a solution either.

Which is quite odd to be honest. Can you post a mediainfo report in its text mode? I would like to know format and stuff.
Image
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

Re: MTS Files

Postby Cannonaire » Fri May 25, 2012 3:38 pm

I would guess it is camcorder footage from another manufacturer, probably slightly off-spec.
Image Think millionaire, but with cannons. || Resident Maaya Sakamoto fan.
User avatar
Cannonaire
 
Joined: 05 May 2010
Location: Oregon
Status: OVERLOAD

Re: MTS Files

Postby Hagaren Viper » Fri May 25, 2012 5:37 pm

mirkosp wrote:Which is quite odd to be honest. Can you post a mediainfo report in its text mode? I would like to know format and stuff.


I'm sorry, but I'm not quite sure what you mean here?
ImageImage
ImageImage
User avatar
Hagaren Viper
 
Joined: 19 Aug 2005
Location: I dont wanna edit
Status: Just wanna play Persona 4Ever

Re: MTS Files

Postby mirkosp » Fri May 25, 2012 5:53 pm

MediaInfo is a software that gives all sort of informations on video and audio files. Just make sure that View is set to Text and then paste here the info you get.
Image
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

Re: MTS Files

Postby Hagaren Viper » Fri May 25, 2012 6:03 pm

Ok, gotcha. Here's the info then.

Spoiler :
General
ID : 1 (0x1)
Complete name : C:\Users\Caleb\Videos\WMT Music Video\STREAM\00000.MTS
Format : BDAV
Format/Info : Blu-ray Video
File size : 816 MiB
Duration : 5mn 18s
Overall bit rate mode : Variable
Overall bit rate : 21.5 Mbps
Maximum Overall bit rate : 24.0 Mbps

Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Format settings, GOP : M=3, N=12
Codec ID : 27
Duration : 5mn 17s
Bit rate mode : Variable
Bit rate : 20.3 Mbps
Maximum bit rate : 20.9 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.408
Stream size : 768 MiB (94%)

Audio
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Codec ID : 129
Duration : 5mn 17s
Bit rate : 384 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Compression mode : Lossy
Delay relative to video : -84ms
Stream size : 14.5 MiB (2%)
ImageImage
ImageImage
User avatar
Hagaren Viper
 
Joined: 19 Aug 2005
Location: I dont wanna edit
Status: Just wanna play Persona 4Ever

Re: MTS Files

Postby mirkosp » Fri May 25, 2012 6:22 pm

Yeah, that looks like bd-tier video streams. Those tend to hurf with ffms2 from time to time for no known reason, even when remuxing. You should really try DGDecNV or DGAVCDecDi if you want an easy way out.
Otherwise, another thing you might want to try could be transcoding to a lossless format with mplayer2-vo-lavc and see if it works.
Something like
Code: Select all
mplayer2-vo-lavc-20110921.exe "file.mts" -o "file.avi" -ovc huffyuv

could work maybe? Just to leave no stone unturned.
Image
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

Re: MTS Files

Postby Hagaren Viper » Mon May 28, 2012 4:15 am

Hmm, well I'll check out the programs you mentioned at the least. Thanks a lot for the feedback!
ImageImage
ImageImage
User avatar
Hagaren Viper
 
Joined: 19 Aug 2005
Location: I dont wanna edit
Status: Just wanna play Persona 4Ever

Re: MTS Files

Postby Mister Hatt » Tue May 29, 2012 6:57 am

The reason it derps in FFMS2 is vaguely known last I checked. Certainly in lavf at least.

MTS is the AVCHD subset of the extended M2TS format. It has the same general format as a BD or ISDB-S transport stream (ie standard MPEG-TS with 4-byte timecodes at the start) but a stricter set of bitrates and codecs. You find it on camcorders and in the output of some video programs. I'm quite surprised Vegas doesn't like it as it's relatively common and Vegas isn't exactly a pro tool but as written above, DG* is the current way to handle it.

Out of interest, does FFMS2 work fine if you tell it to disable seeking? Render a lossless and it should be ok. Note that mplayer2 uses lavf and is quite possibly even more broken than FFMS2 is; probably best to avoid that.
Mister Hatt
 
Joined: 25 Dec 2007
Status: better than you

Re: MTS Files

Postby HalOfBorg » Tue May 29, 2012 8:12 am

Are you sure you have the proper codecs installed to read it?

Maybe the file is corrupt?
Help HalOfBorg fight his cancer - http://www.gofundme.com/21ygdk

ImageImageImage
ImageImageImage
User avatar
HalOfBorg
 
Joined: 14 May 2008


Return to Footage Help

Who is online

Users browsing this forum: Qyot27 and 3 guests