View Full Version : Deinterlacing and/or Artifacts problems to encode a HDTV H264 video [SOLVED]
Butterfly
12th March 2009, 14:28
Hi guys,
I don't really know if it's the right place but i'm gonna ask it here.
Here is my problem:
I used to record and encode withtout problems from now stuff from TF1 HD a french HD TV broadcasted in H264 like this :
video.ts -> video.avs -> dgavcindex -> video.dga -> meGUI -> video.edited.avs -> video.edited.mkv
However it seems the channel changed the way they broadcast and now i am clueless to avoid this kind of problem after encoding :
http://img24.imageshack.us/img24/8576/snapshot20090312140715.th.jpg (http://img24.imageshack.us/img24/8576/snapshot20090312140715.jpg) ---- http://img24.imageshack.us/img24/5906/snapshot20090312140735.th.jpg (http://img24.imageshack.us/img24/5906/snapshot20090312140735.jpg)
and a shot which looks alsmost perfect :
http://img11.imageshack.us/img11/2738/snapshot20090312142518.th.jpg (http://img11.imageshack.us/img11/2738/snapshot20090312142518.jpg)
HERE (http://www.mediafire.com/?mjmcs9gzrwg) is a .ts sample extracted from the original .ts file with TSPE (hte video might not be very respectfull of standards cause TF1 HD in H264 is again some kind of experimental)
and
HERE (http://www.mediafire.com/?d9dccmnnpt0) is what i get after encoding with meGUI 3.1.1020 fully updated.
It really looks like a deinterlacing problem but i tried many things :
Interlaced -> Top Filed FIrst -> Deint
and many other settings in the Deinterlacing AVS script editor of meGUI but without success.
So that's why i am asking for your help guys :o
Thanks in advance for those you will take the time to read and answer.
Edit 1 : i am actually looking at http://neuron2.net/faq.html
Edit 2 : after following the FAQ of the link and using it with DGAVCindex, the deinterlacing analyzer of meGUI says Progressive which doesn't solve the problem.
Guest
12th March 2009, 14:49
Looks like you simply used a poor deinterlacer in blend mode. Which one did you use? Don't say FieldDeinterlace(). :)
I opened it in DGAVCIndexNV and turned on the PureVideo deinterlacer. Everything looked fine.
There are excellent Avisynth deinterlacers. Use one of them.
Butterfly
12th March 2009, 14:55
Oh interesting!
About the deinterlacer i used : Interlaced -> Top Field First -> TomsMoComp cause i like for sport video.
About DGAVCindex, where is the PureVideo deinterlacer?
Edit : oh, i just saw that DGAVCIndexNV is different from DGAVCindex :)
HymnToLife
12th March 2009, 14:57
Here's my typical deinterlacing script, which seems to do a good job on this source (be careful, though, it's very slow):
DGAVCDecodeNV_AVCSource("1half.edit.dga")
AssumeTFF()
interp = separatefields().EEDI2(field=-2)
tdeint(mode=1,edeint=interp)
SelectEven()
Alternatively, if you can afford DGAVCDecodeNV, the Nvidia PureVideo deinterlacer works well too.
Butterfly
12th March 2009, 14:59
Thank you guys i'm gonna look at DGAVCIndexNV :)
Edit : it seems my crappy video card won't be good enough for the Nvidia Pure Video deinterlacer :/
poisondeathray
12th March 2009, 15:18
It looks like a libavcodec decoding issue with interlaced AVC content. The newer builds have fixed this, but DGAVCDec is using an older build
Another option is to use DirectShowSource() with ffdshow recent build, or coreavc pro , then deinterlace as per usual
Butterfly
12th March 2009, 15:24
Oh that would be reassuring! Cause i really tried a lot of possibility for the deinterlacer with DGAVCDec.
Since my video card is not powerfull enough i'm gonna try to use Coreavc right now by looking how to put it in my script.
HymnToLife
12th March 2009, 15:31
Oh that would be reassuring! Cause i really tried a lot of possibility for the deinterlacer with DGAVCDec.
Since my video card is not powerfull enough i'm gonna try to use Coreavc right now by looking how to put it in my script.
Did you try the deinterlacing script I gave you? You don't need DGAVCDecodeNV to import the source, anything will do (it just was in the script because it's what I use).
Also, see your PMs. ;)
Butterfly
12th March 2009, 15:43
Did you try the deinterlacing script I gave you?Yeah, i used the part with :
AssumeTFF()
interp = separatefields().EEDI2(field=-2)
tdeint(mode=1,edeint=interp)
SelectEven()
but it didn't work. It might be because of what poisondeathray said about DGAVCDec.
So now, i have to study many things. How to open in meGUI my video.ts with a DirectShowSource or Coreavc script. I should make a break and a coffee cause i've been tried that for too long and i don't seem to be able to make anyhting work now :D
poisondeathray
12th March 2009, 15:45
You can use that deinterlacing script, just use a different source filter. The DGAVCdec libavcodec decoding is the issue.
HymnToLife
12th March 2009, 15:47
Just do:
DirectShowSource("1half.edit.ts")
AssumeTFF()
interp = separatefields().EEDI2(field=-2)
tdeint(mode=1,edeint=interp)
SelectEven()
and open that script in MeGUI's main window. DirectShowSource will use whatever your default H.264 decoder is (CoreAVC, ffdshow, etc.).
Butterfly
12th March 2009, 15:58
Ok i did that but i got this error :
http://img208.imageshack.us/img208/9299/20090312155633.jpg
You can use that deinterlacing script, just use a different source filter. The DGAVCdec libavcodec decoding is the issue.Yeah, thank you for the information about DGAVCDec libavcodec! I'm gonna try with DirectShow or Coreavc. It's just that my brain is melting, that's why i can't do it :D
Thanks for helping guys! I'm gonna make some coffe or i think i'm gonna die :D
HymnToLife
12th March 2009, 16:11
Works fine here. The source file you're trying to open is the same one you uploaded, right? Which decoder are you using?
Butterfly
12th March 2009, 16:16
Yeah it's the same file. About the decoder i configured ffdshow is use CoreAVC so it should be CoreAVC i think.
HymnToLife
12th March 2009, 16:31
I think you'd be better off with ffdshow anyway. CoreAVC gives me a lot of artifacts on this source. Try installing the latest ffdshow from x264.nl, activate H.264 decoding in it, and see if that helps.
Butterfly
12th March 2009, 16:33
Yeah that's exactly what i was going to do :)
poisondeathray
12th March 2009, 16:35
^Very interesting I was just downloaded the clip and was going to say that. You should submit this to the coreavc thread for feedback
ffdshow does much better on this clip, but there are still several pixellated sequences. I don't have an nvidia card, maybe someone can test out neuron2's DGAVCNV and see how it compares
Butterfly
12th March 2009, 16:39
Ok poisondeathray, i'll make more tests and if it's really not me, i'll report this.
I'm gonna restart my computer since i installed the latest ffdsho.
HymnToLife
12th March 2009, 16:54
ffdshow does much better on this clip, but there are still several pixellated sequences. I don't have an nvidia card, maybe someone can test out neuron2's DGAVCNV and see how it compares
DGAVCDecodeNV gives much better results. Here (http://itsuki.fkraiem.org/stuff/1half.edit.dgavcnv.avi)'s a short clip (200 first frames, deinterlacing was done with my script above).
Butterfly
12th March 2009, 16:56
I've installed the latest ffdshow and disaballed the video preview when loading a script but it keeps saying that :
http://img440.imageshack.us/img440/28/20090312165534.th.jpg (http://img440.imageshack.us/my.php?image=20090312165534.jpg)
I've just added :
lanczosResize(1280,720)
to resize it.
This could also come from the configuration of my computer.
Here (http://itsuki.fkraiem.org/stuff/1half.edit.dgavcnv.avi)'s a short clip (200 first frames, deinterlacing was done with my script above).oh that's nice! i wish i could do the same :)
HymnToLife
12th March 2009, 17:02
I just noticed that my system uses Haali's spitter to open TS streams (I see the Haali Media Splitter icon in the systray when I open a .ts with DSS()). Do you have it installed?
Butterfly
12th March 2009, 17:05
Yes i have. I'm gonna look at it then.
Butterfly
12th March 2009, 17:15
So i can't play any .ts video from HDTV H264 1080i cause my computer doesn't seem to be able to.
However after installing ffdshow and configure it, i can play 720p H264 .mkv video with haali + ffdshow video.
To watch your .avi video, i used vlc.
HymnToLife
12th March 2009, 17:25
So i can't play any .ts video from HDTV H264 1080i cause my computer doesn't seem to be able to.
Which player(s) have you tried? I can't play them in Media Player Classic either, but The Core Media Player (http://www.corecoded.com/) plays them fine.
Butterfly
12th March 2009, 17:30
I've got media player classic and vlc.
Here is th error i get without deinterlacer :
http://img10.imageshack.us/img10/3741/20090312172717.th.jpg (http://img10.imageshack.us/img10/3741/20090312172717.jpg)
Should i look at lauching my video with haali and DSS command?
Butterfly
12th March 2009, 17:35
The Core Media Player (http://www.corecoded.com/) plays them fine.I could play your .avi file with CMP (ffdshow appeared) but not the .ts video. When i play a.mkv video (h264) CMP, launched Haali + ffdshow.
HymnToLife
12th March 2009, 17:36
Okay, so there's something in your system that prevents you from opening those steams. Download the CCCP Insurgent (http://cccp-project.net/download.php?type=cccpi), do Tools > Test render on your TS and paste the results.
I could play your .avi file with CMP (ffdshow appeared) but not the .ts video. When i play a.mkv video (h264) CMP, launched Haali + ffdshow.
This seems to indicate that HMS is not configured to open TS streams, the above test will tell us.
Butterfly
12th March 2009, 17:38
Here is the result :
File: K:\capture\messi.ts
Filter 0: Default DirectSound Device
Filename: C:\WINDOWS\System32\quartz.dll
Filter CRC: 148840CA
Date: 2005-08-30 | 08:26:24
Filter 1: AC3Filter
Filename: C:\Program Files\Satsuki Decoder Pack\Filtres\ac3filter.ax
Filter CRC: E098BB39
Date: 2007-08-18 | 08:55:02
Filter 2: MPC - Mpeg Splitter (Gabest)
Filename: C:\Program Files\Satsuki Decoder Pack\Filtres\MpegSplitter.ax
Filter CRC: 0C8A699E
Date: 2008-03-02 | 18:09:18
Filter 3: K:\capture\messi.ts
Filename: C:\WINDOWS\System32\quartz.dll
Filter CRC: 148840CA
Date: 2005-08-30 | 08:26:24
Note: For File CRC, use CRC Check from the Tools Menu!
This must come from this video pack my brother installed on his computer :/ (i just have a week laptop)
HymnToLife
12th March 2009, 17:42
Indeed. At that point, the best advice I can give you is to uninstall the Satsuki codec pack. If you really need one (and IMO you don't), install the CCCP.
Butterfly
12th March 2009, 17:53
Satsuki uninstalled and CCCP installed.
i can played the .ts video with haali+ffdshow. :)
And last but not least i can open the script in meGUI!
Thanks HymnToLife! I should have thought at the beginning of that. Sorry for taking so much time from you. :/
P.S : currently encoding...
Butterfly
12th March 2009, 18:08
All right!
HERE (http://www.zshare.net/download/56931827bc12cd42/) is the result :)
Thanks to all of you guys and to you HymnToLife my fellow countryman ;)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.