Log in

View Full Version : L-SMASH Source: Strange results reading 1080i AVC


LigH
28th October 2013, 11:22
I got a few AVC clips to cut and edit. They are originally in MTS format, probably from an AVCHD camera.

Paste: MediaInfo full analysis of MTS (http://paste.frubar.net/15744)

I converted them to MKV using mkvmerge 6.5.0-1.

Paste: MediaInfo full analysis of MKV (http://paste.frubar.net/15746)

Then I imported them into AviSynth ...

LoadPlugin("E:\Programme\AviSynth 2.5\plugins\LSMASHSource\LSMASHSource.dll")
v = LWLibavVideoSource("00054.mkv")
a = LWLibavAudioSource("00054.mkv")
AudioDub(v,a)

... and wondered about a strange behaviour: All frames are doubled, double framerate, and TFF/BFF indication toggles for each of the frames in the pair.

http://www.ligh.de/pics/00054_0000.png http://www.ligh.de/pics/00054_0001.png

http://www.ligh.de/pics/00054_0002.png http://www.ligh.de/pics/00054_0003.png

So, using SelectEven(), I would probably get what I expected. But I wonder if my preparation was wrong, or if L-SMASH Source has a bug in handling (PAFF?) interlaced AVC, or if I just misunderstood some meaningful default behaviour...

olcifaraga
28th October 2013, 11:31
From readme;
repeat (default : false)
Reconstruct frames by the flags specified in video stream and then treat all frames as interlaced if set to true and usable.
If set to false, video frames consisting of two separated field coded pictures are displayed twice consecutively.
Just try to add "repeat=true".

LigH
28th October 2013, 11:39
This is indeed a solution, thank you!

:thanks:

Music Fan
1st November 2013, 09:57
Something else to know about TS to MKV with interlaced AVC : demuxing TS (with TSMuxer for example) then loading streams in MKVMerge instead of loading directly the TS is better, otherwise the resulting MKV could have a problem : MediaInfo detects VFR while it is CFR.

VFR maniac
2nd November 2013, 14:15
Now, you need not specify repeat=true to construct video frame consisting of top and bottom field coded pictures.
The process is done automatically since rev690 (https://github.com/VFR-maniac/L-SMASH-Works/commit/490544b216d9db8821a5307a05ce586ed010bba7).
repeat=true affects pulldown patterns only.

LigH
2nd November 2013, 14:35
Great! :thanks:

Usual download location for the binary: Google Drive (https://drive.google.com/folderview?id=0BwV03nn6LPd9OXJUWVVMMXZmNUU&usp=sharing)