View Full Version : Deinterlacing of Star Trek dvd
Hvidgaard
8th April 2006, 10:18
Hi
I'm having a hard time encoding some video to x264. I want to make a backup of my StarTrek dvd to x264 but it seems to be interlaced, and in VLC the deinterlacer "linear" produces the best result. But how and what deinterlacer should I use with AVISynth 2.5? I tried using "Telecide(order=1)" and it did make the video much better, but there is still some interlacing. I can send a part of the m2v file to analyse if someone would be so kind :) (and tell me how to split it)
Some of you might already have figured it out, I'm a total newbie in this area of video editing and processing :)
PS. I don't think that it matters how i demuxed the files, but I tell just in case. Using dvd decryptor I enter IFO mode and checked "Enable Stream Processing" and demuxed the video to an m2v file.
scharfis_brain
8th April 2006, 10:29
provide an unprocessed VOB fragment, please.
Hvidgaard
8th April 2006, 10:31
tell me what program to use :)
Lil' Jer
8th April 2006, 11:06
Star Trek is hybrid material which contains both pure interlaced material, the special effects, and telecined 24fps sections. There are a couple of things you can do. You can do a vfr encode using the tdecimate function from TIVTC or you can try using mode=3 in Decomb's decimate.
Lil' Jer
8th April 2006, 11:07
tell me what program to use :)
You can use Cuttermaran or you can just select a section of the video in DGIndex and do "Save project and demux video".
Hvidgaard
8th April 2006, 11:13
Star Trek is hybrid material which contains both pure interlaced material, the special effects, and telecined 24fps sections. There are a couple of things you can do. You can do a vfr encode using the tdecimate function from TIVTC or you can try using mode=3 in Decomb's decimate.
Will try that, and btw, itīs a PAL dvd
Lil' Jer
8th April 2006, 11:16
Will try that, and btw, itīs a PAL dvd
Then it may be a bit more tricky then. Those solutions would be for the NTSC version and I don't think they'd work for the PAL version. Upload a sample vob somewhere and that would really help.
Hvidgaard
8th April 2006, 11:45
A sample m2v file, the first 1003 frames. Contains both special effects and normal video.
http://s65.yousendit.com/d.aspx?id=2P413R9MX44QP3N695UJ09WI96
Hvidgaard
10th April 2006, 21:54
noone that can help me out here?
Capturing and trying to display Star Trek PAL material on a PC is what got me started with computer video and it turns out to be one of the most difficult types of material to work with.
At the end if the day, I decided to try and make as many progressive frames as possible but to default to just leaving the frames alone or using simple deinterlacing if things got too complicated.
So give my PFR (http://www.geocities.com/siwalters_uk/pfravs.html) plugin a go - just leave it at default settings and see what you think.
regards
Simon
PS Always compare the source with the final output on the display device you plan on watching it with and don't single step.
Hvidgaard
10th April 2006, 23:00
Si
Will try that tomorrow :) I was thinking of perhaps it would be an idea to split the source into the interlaced parts and the noneinterlaced part and process them separately to get better quality?
scharfis_brain
12th April 2006, 14:22
PFR just would mess up with it :(
sometime ago I wrot a function called Repair_PAL_TNG_DVD() or so. it aims for such DEFT-conversions.
but maybe you're still satisfied with either:
fielddeinterlace()
or
Tdeint(full=false)
Si
I was thinking of perhaps it would be an idea to split the source into the interlaced parts and the noneinterlaced part and process them separately to get better quality?
Well, if you've got the time and patience then that is always the best way to do things :-)
But usually people around here want/need an automatic/semi-automatic process :-)
My filter is very pragmatic and useful for those in a hurry .
I'm sure scharfis_brains's solution is much better.
regards
Simon
Hvidgaard
12th April 2006, 23:29
@scharfis_brain
I'm all in for better quality, so the next best would not do it for me :rolleyes: so any help you can give would be appreciated :) I don't mind spending some time writing avs scripts that would spilt the video in the to "easy" parts, and the problamatic parts.
If you have looked at the sample you can se what script/deinterlacer that would be best :) (VLC has an deinterlacer "linear" that will do the job very good, don't know if it can be used!)
Stingrey
19th April 2006, 18:38
I made a good experience with TDeint on Babylon 5, which is also hybrid, with the following settings:
TDeint(mode=0,full=false,tryWeave=true)
Explanation:
mode=0 - same rate output
full=false - check all input frames for combing first
tryWeave=true - Basically, this setting allows TDeint to try to use per-field motion adaptation instead of per-pixel motion adaptation where possible.
Explanations are taken from TDeint Readme.
Markbo98
19th April 2006, 19:51
Here is some info I found on processing hybrid material.
I think it's for NTSC, so you may have to adjust it for PAL.
Better deinterlacing in Post-processing
-------------------------------------
When Telecide cannot match a field, it has to deinterlace the frame.
By default it uses FieldDeinterlace... but FieldDeinterlace isn't all that good.
You can specify other filters to do the interlacing on those frames.
Two deinterlacers that can do this are KernelDeinterlace and TDeinterlace.
To use these, do as follows:
To use KernelDeint:
MPEG2Source("C:\yourfolder\blah.d2v")
Telecide(order=1,guide=1,hints=true=,post=1) #1 for Top Field First or order=0 for Bottom.
KernelDeinterlace(order=1) #See readme for kerneldeinterlace options.
Decimate(cycle=5, mode=2)
To use Tdeint:
MPEG2Source("C:\yourfolder\blah.d2v")
orig = last
loadTdeint()
Telecide(order=1,guide=1,hints=true,post=1) #1 for Top Field 1st or order=0 for Bottom.
Tdeint(order=1,clip2=orig)
Decimate(cycle=5, mode=2)
Hvidgaard
19th April 2006, 23:46
@Stringrey - Works very well :)
@Markbo98 - Didn't try KernelDeint, but didn't have much luck with Tdeint, no visual diffence over Stringreys Tdeint, perhaps a tiny tiny bit worse
@scharfis_brain - and change I can try that function af yours?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.