Log in

View Full Version : Avisynth source filter for Sony Nex-7 .MTS file?


PhotoCat
5th September 2014, 03:29
Greetings! I am new to this forum but have been learning a lot from it! Thanks for all the contributors!
If anyone knows of a good Avisynth source filter for Sony Nex-7 .MTS file, please let me know. Thanks in advance!

fvisagie
5th September 2014, 08:27
L-SMASH Source (http://forum.doom9.org/showthread.php?t=167435) works fine with my Canon camera's .MTS (actually M2TS container format) output.

If you don't manage with that, analyse a sample with something like MediaInfo or ffprobe and post the output so others can have a closer look at the content format.

Cheers,
Francois

PhotoCat
5th September 2014, 11:53
Thanks fvisagie! I will take a look! :)

PhotoCat
8th September 2014, 13:10
L-SMASH Source (http://forum.doom9.org/showthread.php?t=167435) works fine with my Canon camera's .MTS (actually M2TS container format) output.

If you don't manage with that, analyse a sample with something like MediaInfo or ffprobe and post the output so others can have a closer look at the content format.

Cheers,
Francois

The link is no longer valid unfortunately. Can you post a download link?

Tks!

Reel.Deel
8th September 2014, 14:03
This post (http://forum.doom9.org/showpost.php?p=1689573&postcount=250) contains a download link: https://www.dropbox.com/sh/3i81ttxf028m1eh/AAABkQn4Y5w1k-toVhYLasmwa?dl=0

PhotoCat
8th September 2014, 14:34
Thank you so much Reel.Deel!
Got them all & will test them :)

PhotoCat
8th September 2014, 15:02
LoadPlugin("C:\Virtualdub32\LSMASH\LSMASHSource.dll")
LSMASHVideoSource("00016.mts", threads=1, atrack=-1)

error loading the above dll, 0x7e

I am using win7 x64. Have also placed the dll inside the avisynth plugin folder.

Any clue? Tks!

Reel.Deel
8th September 2014, 15:13
If you're using the 32-bit AviSynth (most commonly used) use this: L-SMASH-Works-r729-32bit-v3.7z and also make sure you have the 32-bit (x86) Visual C++ Redistributable Package for Visual Studio 2013 (http://www.microsoft.com/en-us/download/details.aspx?id=40784) installed (vcredist_x86.exe (http://go.microsoft.com/?linkid=9832156)).

PhotoCat
8th September 2014, 15:55
Tks Reel.Deel once again!

Seemed to read in the dll ok now with the visual C++ package but upon the following line in avisynth:

LSMASHVideoSource("00016.mts")

It caused another error:

Evaluate: System exception - Access Violation

Any clue? tks!

Reel.Deel
8th September 2014, 16:00
Hmm don't know, What Avisynth version are you using? Anyways, for an .MTS source you should really be using LWLibavVideoSource (http://avisynth.nl/index.php/LSMASHSource/LWLibavVideoSource). Try that.

PhotoCat
8th September 2014, 17:50
Tks Reel.Deel once agn! It works now with your suggested LWLibavVideoSource :)
FFms2 seems to work too. Let me try to compare the quality of the 2.
Thanks :)

PhotoCat
8th September 2014, 22:05
The LWLibavVideoSource seems to work much better than
FFms2. I am surprised to find out that the Nex-7 video is
actually interlaced at 60fps.

The following Avisynth script worked fine for Sony Nex-7 video:

LoadPlugin("C:\Virtualdub32\LSMASH\LSMASHSource.dll")
Video = LWLibavVideoSource("00016.mts")
# Separates the interlaced images and places them in individual frames
Video = SeparateFields (Video)
# Recreates the full frame by placing the lines to the original position
Video = Bob (Video)
converttorgb32(Video, matrix="rec601")

Thanks again fvisagie & Reel.Deel for your help!

fvisagie
9th September 2014, 07:51
The LWLibavVideoSource seems to work much better than FFms2.

That has been my experience also. In fact, the issues I've had with FFMS (http://forum.doom9.org/showthread.php?p=1664848#post1664848) have been so severe that it's essentially unusable with M2TS.

Glad you managed.