View Full Version : Good deinterlace for 1080i movie?
AlexeyS
23rd April 2005, 03:01
I have movie 1080i MPEG2. How to deinterlace i in good/best way?
reepa
23rd April 2005, 08:54
If it's a video source (pure interlace), you need to deinterlace it to 1080p 60fps (or 50fps if it's a PAL source) to retain maximum quality. That way you preserve all the spatial and temporal information, interpolating when necessary. I deinterlace using AviSynth. I use a plugin called tdeint to deinterlace, but there are many others; tdeint is quite slow even at standard resolutions so you might want to consider others for HDTV stuff.
If it's a movie source (or otherwise progressive which is interlaced or telecined for broadcasting) you can deinterlace it back to progressive 24fps (or 25fps or 30fps). Again, AviSynth and a plugin called Decomb are useful.
Unless you have massive amounts of storage space for the finished stuff and lots and lots of time for processing the stuff, the practical way is to just cut the resolution to 1/4 and halven the framerate. 1920x1080 at 60fps interlaced would yield 960x540 at 30fps, which is not much bigger than DVD, so it should compress better, and it's really fast to process. Discarding the other field and then horizontally resizing from 1920 to 960 will give you the fastest result. For the best quality (at the cost of speed) you should do the stuff described for maximum quality, but finally resizing to the wanted smaller resolution with Lanczos or Bicubic.
AlexeyS
23rd April 2005, 12:58
Originally posted by reepa
If it's a video source (pure interlace), you need to deinterlace it to 1080p 60fps (or 50fps if it's a PAL source) to retain maximum quality. That way you preserve all the spatial and temporal information, interpolating when necessary. I deinterlace using AviSynth. I use a plugin called tdeint to deinterlace, but there are many others; tdeint is quite slow even at standard resolutions so you might want to consider others for HDTV stuff.
If it's a movie source (or otherwise progressive which is interlaced or telecined for broadcasting) you can deinterlace it back to progressive 24fps (or 25fps or 30fps). Again, AviSynth and a plugin called Decomb are useful.
Unless you have massive amounts of storage space for the finished stuff and lots and lots of time for processing the stuff, the practical way is to just cut the resolution to 1/4 and halven the framerate. 1920x1080 at 60fps interlaced would yield 960x540 at 30fps, which is not much bigger than DVD, so it should compress better, and it's really fast to process. Discarding the other field and then horizontally resizing from 1920 to 960 will give you the fastest result. For the best quality (at the cost of speed) you should do the stuff described for maximum quality, but finally resizing to the wanted smaller resolution with Lanczos or Bicubic.
I've tried few deinterlace filters for VirtualDub and also tried invert telecine - hopeless. :(
This is little sample (http://www.callofdutyserver.net/br/sample.mpg) (look at arms).
PS: I didn't found filter you called "tdeint".
SeeMoreDigital
23rd April 2005, 13:16
Does this samples properties look odd to anybody else?
http://img150.echo.cx/img150/17/mpeg2clip3ag.png
Cheers
Guest
23rd April 2005, 14:37
Is that the unprocessed source? It's all screwed up. Did you capture this off air, or how was it generated? Can you post a longer sample?
AlexeyS
23rd April 2005, 14:46
Originally posted by neuron2
Is that the unprocessed source? It's all screwed up. Did you capture this off air, or how was it generated?
This is .ts file MPEG2+AC3. I've made this sample without any recompression with Womble MPEG Video Wizard 2003.
Can you post a longer sample?
Yes, I can, but what for? And what kind of sample? :confused:
nexx
23rd April 2005, 14:58
looks like telecined material to me.
Unfortunately I cant help you, I stay away this stuff in PAL land.
Guest
23rd April 2005, 15:03
Originally posted by AlexeyS
This is .ts file MPEG2+AC3. Then why is your sample .mpg? The sample you posted is not a transport stream; it's a program stream. I asked how it was created or where it came from, because it is totally screwed up. Did you capture this off air?
Yes, I can, but what for? And what kind of sample? :confused: Because 9 frames is not enough to properly analyze the video. The sample should be a fragment of the unprocessed *source* that is about 3-5 seconds in length. Not filtered or reencoded in any way. Just cut it with a binary splitter.
AlexeyS
23rd April 2005, 15:27
Originally posted by neuron2
Then why is your sample .mpg? The sample you posted is not a transport stream; it's a program stream. I asked how it was created or where it came from, because it is totally screwed up. Did you capture this off air?
I get .ts from my friend - he is big HDTV fan (I don't know how it was captured - from Sattelite maybe). But I can only view .ts file with Nero ShowTime. That's why I've turn it from Transport Stream to regular MPEG2 with HDTV2MPG. Do you think HDTV2MPG make something wrong with video? :confused:
Because 9 frames is not enough to properly analyze the video. The sample should be a fragment of the unprocessed *source* that is about 3-5 seconds in length. Not filtered or reencoded in any way. Just cut it with a binary splitter. [/B]
Could you tell me how I can cut with some GUI program?
Guest
23rd April 2005, 15:42
We always like to see the unprocessed source material, because it gives the most reliable clues to the nature of the problem.
Google for "binary file splitter" and find something you like. I would just use my hex editor application but if you're not a programmer that might be non-user-friendly.
AlexeyS
23rd April 2005, 15:52
Google for "binary file splitter" and find something you like. I would just use my hex editor application but if you're not a programmer that might be non-user-friendly. [/B]
Ok. But I dont' have any idea how I can cut 1-2 megs from 10.2 Gb file with "binary file splitter". :confused:
Guest
23rd April 2005, 16:20
OK, try this approach.
Load the TS in DGIndex 1.3.0b5 and detect and set the PIDS. Then set the starting and ending points with the [ and ] buttons. Select field operation NONE. Then do Save Project and Demux Video. It will make a small .M2V file containing the selected range. Post a link to that.
Get DGIndex 1.3.0b5 here:
http://neuron2.net/dgmpgdec/dgmpgdec130b5.zip
The longer the clip the better.
AlexeyS
24th April 2005, 00:54
DGIndex says "can't find video and audio" when I try to insert file...
AlexeyS
24th April 2005, 01:02
Maybe I should post here all info? How I can get all info about this file? What software I should use?
Guest
24th April 2005, 01:05
Originally posted by AlexeyS
DGIndex says "can't find video and audio" when I try to insert file... Dismiss that popup and then select Stream/Detect PIDs PAT/PMT. Then highlight the MPEG2 Video line and click on Set Video.
If the PAT/PMT doesn't show the video PID, use Detect PIDs Raw.
If you get another warning about an open GOP, just click OK and ignore it.
GaveUp
24th April 2005, 01:11
I can't say I'm a fan of the tool for anything other than this type of use ... cutting samples from a TS for debugging. This tool being HDTV2MPEG2.
AlexeyS
24th April 2005, 01:28
Originally posted by neuron2
Dismiss that popup and then select Stream/Detect PIDs PAT/PMT. Then highlight the MPEG2 Video line and click on Set Video.
If the PAT/PMT doesn't show the video PID, use Detect PIDs Raw.
If you get another warning about an open GOP, just click OK and ignore it.
Done. :)
New sample (http://www.callofdutyserver.net/br/sample2.m2v) is 14 Mbs.
Guest
24th April 2005, 02:09
No need to deinterlace that. It's telecined. It has a few interlaced frames but Telecide can deal with that. Here is *one way* to recover all the progressive frames and return to film rate:
Load the .ts in DGIndex as before. Set the PIDs (highlight video and click Set Video, then highlight the audio and select Set Audio. Use the Audio/Output Method menu to enable Demux all tracks. Set Video/Field Operation to Forced Film. Then do File/Save Project (no need to demux this time). You'll end up with a D2V file and an audio file. Now make an Avisynth script like this:
loadplugin("dgdecode.dll")
loadplugin("decomb.dll")
MPEG2Source("matrix.d2v")
telecide(order=1,post=0) # this just corrects the few combed frames
You *may* have to change to order=0 for the whole movie. Look at the Quick Start guide of DGMPGDec to figure out which to use.
Then open the script in VirtualDubMod. Add the audio and encode.
AlexeyS
24th April 2005, 02:46
VirtualDub says "Unable to load "dgdecode.dll"... ... line 1". :(
Guest
24th April 2005, 03:04
Why do you suppose that is? Did you put dgdecode.dll somewhere and reference its path? Or did you think your computer is telepathic? :)
This is basic Avisynth scripting. Go to www.avisynth.org and learn the fundamentals.
AlexeyS
24th April 2005, 03:07
Originally posted by neuron2
Why do you suppose that is? Did you put dgdecode.dll somewhere and reference its path? Or did you think your computer is telepathic? :)
I've copied dgdecode.dll from DGIndex program to Avisynth plugins directory. And I get same error. :confused:
Guest
24th April 2005, 03:12
Put the full path to the DLL:
loadplugin("c:\where\it\is\dgdecode.dll")
AlexeyS
24th April 2005, 03:19
Originally posted by neuron2
Put the full path to the DLL:
loadplugin("c:\where\it\is\dgdecode.dll")
:D
Didn't understand you first time...
Now it seems it's working.
Thank you for your patience. :)
AlexeyS
24th April 2005, 03:21
By the way, this method is best for this movie?
Guest
24th April 2005, 03:22
Hey, no problem! I enjoy helping. That's why I'm here.
I've been accused of being too terse in my posts, so I'll try to be more complete and assume less.
Write again if you run into further problems. I promise to be good. :)
Guest
24th April 2005, 03:24
Originally posted by AlexeyS
By the way, this method is best for this movie? It's hard to say without seeing the whole thing. But if your sample is representative, it's a good approach because it doesn't do any deinterlacing and recovers the best possible original film frames. If you do see some combing in the output we may want to add some postprocessing. Give it a go and if there are any problems post again and I'll tell you how to do that.
If you plan to resize, be sure to do that *after* the Telecide call.
Jenyok
18th September 2012, 13:51
Good, but very slow deinterlace.
.
AssumeTFF()
#AssumeBFF()
edeintted = eedi3(field = -2, \
sclip = nnedi3(field = -2, \
qual = 2))
TDeint(edeint = edeintted, \
order = -1, \
mode = 2, \
sharp = true, \
mtnmode = 3, \
full = false, \
tryWeave = false, \
type = 2, \
emask = TMM(mode = 1))
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.