Log in

View Full Version : How to deinterlace MBAFF interlaced source ?


thanhtu5013
30th October 2011, 18:21
Hi.

At first sorry for my average English cuz I'm French.

I want to deinterlace some video files from satellite broadcast.

Informations of one file from Mediainfo:


Général
ID : 1 (0x1)
Complete name : C:\Users\FoUcH\Documents\Game One Music HD - Final Fantasy XIII.ts
Format : MPEG-TS
File size : 195 Mio
Duration : 5mn 33s
Overall bit rate mode : Constant
Overall bit rate : 4 907 Kbps

Vidéo
ID : 68 (0x44)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.0
Format settings, CABAC : Oui
Format settings, ReFrames : 4 images
Codec ID : 27
Duration : 5mn 33s
Bit rate mode : Constant
Bit rate : 4 600 Kbps
Width : 1 440 pixels
Height : 1 080 pixels
Display aspect ratio : 16/9
Frame rate : 25,000 Im/s
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : MBAFF
Bits/(Pixel*Frame) : 0.118
Stream size : 178 Mio (91%)
Coordonnées de chromaticité : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Caractéristiques du transfert : BT.709-5, BT.1361
Coefficients de la matrice : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

Audio
ID : 69 (0x45)
Menu ID : 1 (0x1)
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Muxing mode : ADTS
Codec ID : 15
Duration : 5mn 33s
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 2 canaux
Channel positions : Front: L R
Sampling rate : 48,0 KHz
Compression mode : Avec perte
Delay relative to video : 45ms
Stream size : 7,64 Mio (4%)
Language : Français



I use MeGUI for encodng video.
When I let MeGUI analyses the video, it shows this :



Source Type : M-in-5 Decimation required
M: 2
Deinterlace: Tritical Decimate




I used these settings for deinterlacing but the result isn't very good and the video is still interlaced.

Same thing for other types of deinterlacing type ( Yadif, TdeinT, TomsMoCamp... ) : No one of them works well...

Someone can help me to resolve this problem ?

J_Darnley
30th October 2011, 21:28
You deinterlace a source that uses MBAFF like any other interlaced source, you use a deinterlacer. However, you must make sure that you have interlaced video and not telecined or other abominations. Did you try what megui suggested?

thanhtu5013
30th October 2011, 22:48
You deinterlace a source that uses MBAFF like any other interlaced source, you use a deinterlacer. However, you must make sure that you have interlaced video and not telecined or other abominations. Did you try what megui suggested?
Yes, I tried what MeGUI suggested. It's the same thing and i still got an interlaced video.

Worst than all : the framerate of my video falled to 15 fps if I used settings suggested by MeGUI... :confused:

What is telecined and other possible things you told ?

thanhtu5013
30th October 2011, 23:12
Here is the AviSynth script made by MeGUI with their suggested deinterlacing settings. No other options added, no resizing, no denoising, no cropping, etc...


http://img717.imageshack.us/img717/7366/meguiysis.png
http://img715.imageshack.us/img715/7122/meguiscript.png


DirectShowSource("C:\Users\FoUcH\Documents\Game One Music HD - Batman Arkham CIty_Scene Cut.ts", fps=25.000, audio=false, convertfps=true).AssumeFPS(25,1)
LoadPlugin("C:\Program Files (x86)\MeGUI\tools\avisynth_plugin\TIVTC.dll")
TDecimate(cycleR=1)
#crop
#resize
#denoise



Here is a sample of one of my video files with MBAFF scan :

http://www.megaupload.com/?d=OFOADR2W

J_Darnley
31st October 2011, 00:02
Ugh. This is one of the other abominations I mentioned. It's field blended. It might be possible to recover it with one of the blend removal plugins (http://avisynth.org/mediawiki/External_filters#Fieldblending_and_Frameblending_removal). You may also wait to see if someone else posts with a suggestion or recommendation.

Sharc
31st October 2011, 20:03
yadif(mode=1,order=1)
srestore()

fixes most but not all of the blended fields

thanhtu5013
1st November 2011, 03:04
yadif(mode=1,order=1)
srestore()

fixes most but not all of the blended fields
I tried what you said but it doesnt' work.

DirectShowSource("C:\Game One Music HD - Batman Arkham CIty_Scene Cut.ts", fps=25.000, audio=false, convertfps=true).AssumeFPS(25,1)
Load_Stdcall_Plugin("C:\Program Files (x86)\MeGUI\tools\yadif\yadif.dll")
yadif(mode=1,order=1)
srestore()


I should have probably not the filters for.
I'm still a newbie with Avisynth and I really need help with.

English is not my primary language so I can't understand everything well about AviSynth on few times.

thanhtu5013
1st November 2011, 03:28
One thing : When I play those files on my Computer, I use Media Player Classic with CoreAVC Codec.
During playback, the deinterlacing option of CoreAVC works very well.
Looks perfect and smooth like a real 1080p60fps movie.