MTS Files

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
User avatar
Hagaren Viper
Joined: Fri Aug 19, 2005 11:51 pm
Status: Just wanna play Persona 4Ever
Location: I dont wanna edit
Contact:
Org Profile

Re: MTS Files

Post by 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%)

User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: MTS Files

Post by 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
Hagaren Viper
Joined: Fri Aug 19, 2005 11:51 pm
Status: Just wanna play Persona 4Ever
Location: I dont wanna edit
Contact:
Org Profile

Re: MTS Files

Post by 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!

Mister Hatt
Joined: Tue Dec 25, 2007 8:26 am
Status: better than you
Contact:
Org Profile

Re: MTS Files

Post by 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.

User avatar
HalOfBorg
Joined: Wed May 14, 2008 7:19 pm
Org Profile

Re: MTS Files

Post by 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

Locked

Return to “AviSynth Help”