AVCHD .MTS

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
User avatar
The Non-Professional
Joined: Mon Oct 15, 2001 9:21 pm
Location: Maybe on earth, maybe in the future
Org Profile

AVCHD .MTS

Post by The Non-Professional » Mon Dec 13, 2010 6:16 pm

I saw a post a few months back explain the process of how to handle these files (im assuming thats what it was for) and didnt want to necro post (it was back in april, is that necro?)

I saw someone else asking for advice on how to handle/encode these files for easier use but alas Im retard and not completely understanding. The jist of what I got was demux, and then remux, put into MKV, and then use that? while I tried that method the footage came out crap-tastic and I resorted to everything I could think of after that but I cant find something suitable to work with.

Is there a specific guide I can read out there somewhere?

TheRyuu
Joined: Wed May 19, 2010 5:33 pm
Org Profile

Re: AVCHD .MTS

Post by TheRyuu » Mon Dec 13, 2010 8:00 pm

Two things to try (both avisynth, please try in this order):

ffmpegsource. You can try it on the original m2ts, if it is progressive then it should decode it correctly. However ffms2 likes to fuck up a lot when it comes to BD raws or other avc m2ts raws and what have you. You can also try demuxing the h264 stream and remuxing into mkv with mmg or gdsmux (some black magic at work here) which might improve your chances, but try it with the original stream first. So if that fails that really only one other (free) option.

DGAVCDec. Shit slow but almost guaranteed to work. This is all there is when it comes to 'free' ways of handling those kinds of files (you can use one of these methods to decode it to lossless or something you can work with if it pleases you).

As for shit you gotta pay for (which I really don't recommend but whatever), there's dgavcdenv and dgavcdecdi. The former uses the decoding chip on nvidia's gpu for decoding (actually rather slow when compared to threaded software decoders) and the latter uses the diavc decoder (which also costs money) which is probably the fastest software h264 decoder.

You should be able to use one of the first two options without issue.
Any further questions feel free to fire away.

User avatar
The Non-Professional
Joined: Mon Oct 15, 2001 9:21 pm
Location: Maybe on earth, maybe in the future
Org Profile

Re: AVCHD .MTS

Post by The Non-Professional » Mon Dec 13, 2010 9:24 pm

Im really sorry to sound like a newb which unfortunately I am, but how does one go about using those? I get that in DGAVDec you load the file and demux it but in FFmpegsource? also once the file in demuxed in the previous what do I do with that? Im really way to new to these formats and have no no experience in dealing with this stuff.

TheRyuu
Joined: Wed May 19, 2010 5:33 pm
Org Profile

Re: AVCHD .MTS

Post by TheRyuu » Tue Dec 14, 2010 2:12 am

You don't have to demux anything (other than the audio if it suits you) so I'm not sure where you're getting that from.

For ffms2, just throw this in an avisynth script:

Code: Select all

LoadPlugin("X:\path\to\ffms2.dll")
ffvideosource("X:\path\to\file.m2ts")
It will pause when you load the script because it has to index it first (this only has to happen once).

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

Re: AVCHD .MTS

Post by mirkosp » Tue Dec 14, 2010 8:00 am

Actually, for loading with ffvideosource, I think that remuxing the video stream in a .mkv is safer.

Also, another free way is to use DSS2, which is a pretty easy and fine way if you plan to transcode, although it's best kept as a last resort...
Image

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

Re: AVCHD .MTS

Post by Mister Hatt » Tue Dec 14, 2010 7:53 pm

MKV is only safer in that libavformat absolutely sucks at demuxing transport streams. Otherwise, there is a lot less to go wrong. For some reason, remuxed AVC still seems to have issues, not sure why.

Has anyone ever tested DSS2 with DivX7?

TheRyuu
Joined: Wed May 19, 2010 5:33 pm
Org Profile

Re: AVCHD .MTS

Post by TheRyuu » Wed Dec 15, 2010 2:18 am

Mister Hatt wrote:MKV is only safer in that libavformat absolutely sucks at demuxing transport streams. Otherwise, there is a lot less to go wrong. For some reason, remuxed AVC still seems to have issues, not sure why.

Has anyone ever tested DSS2 with DivX7?
ffms2 doesn't use lavf for transport streams.

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

Re: AVCHD .MTS

Post by Mister Hatt » Thu Dec 16, 2010 6:03 pm

TheRyuu wrote:
Mister Hatt wrote:MKV is only safer in that libavformat absolutely sucks at demuxing transport streams. Otherwise, there is a lot less to go wrong. For some reason, remuxed AVC still seems to have issues, not sure why.

Has anyone ever tested DSS2 with DivX7?
ffms2 doesn't use lavf for transport streams.
Haali is only the default on Windows, and even then not always.

User avatar
The Non-Professional
Joined: Mon Oct 15, 2001 9:21 pm
Location: Maybe on earth, maybe in the future
Org Profile

Re: AVCHD .MTS

Post by The Non-Professional » Thu Dec 16, 2010 6:52 pm

TheRyuu wrote:You don't have to demux anything (other than the audio if it suits you) so I'm not sure where you're getting that from.

For ffms2, just throw this in an avisynth script:

Code: Select all

LoadPlugin("X:\path\to\ffms2.dll")
ffvideosource("X:\path\to\file.m2ts")
It will pause when you load the script because it has to index it first (this only has to happen once).

tried it out and it just gives me an error when I try to play it in MPC, System Exception - Access violation at 0x10012380


wut do?

TheRyuu
Joined: Wed May 19, 2010 5:33 pm
Org Profile

Re: AVCHD .MTS

Post by TheRyuu » Fri Dec 17, 2010 3:24 am

The Non-Professional wrote:
TheRyuu wrote:You don't have to demux anything (other than the audio if it suits you) so I'm not sure where you're getting that from.

For ffms2, just throw this in an avisynth script:

Code: Select all

LoadPlugin("X:\path\to\ffms2.dll")
ffvideosource("X:\path\to\file.m2ts")
It will pause when you load the script because it has to index it first (this only has to happen once).

tried it out and it just gives me an error when I try to play it in MPC, System Exception - Access violation at 0x10012380


wut do?
Stop trying to use avisynth for what it was never intended (playing it in MPC? why?).
If it still crashes after you load it in vdub then try remuxing it to mkv and try again. If it fails yet again try a different method.

Locked

Return to “AviSynth Help”