PDA

View Full Version : Any suggestions for this tricky conversion?


Avisynth_challenged
18th November 2009, 18:21
Hi all. Okay here's my dilemma:


Source specs:
1920x1080i transport stream, but the original material is SD non-film (i.e. true interlaced), which, prior to broadcast, became an HD upconvert with pillarboxing to make it 16:9. Though captured at 1080i, the source is not true HD.

Desired format:
4:3AR @ 480i (true interlaced, no pulldown) for DVD authoring (in NTSC land).


I've had some experience with film-based HD sources (both 1080i and 720p) and have converted these to DVD, but this type of source is something I've never tried.

I'm thinking my conversion workflow needs to be something like this:

bob().converttoyuy2().resize().weave()

The source looks like it has aliasing in static areas (probably from the SD -> HD upscaling), so I may choose to apply an AA filter as well, but am not sure where to do this in the workflow.

Any insights or suggestions would be appreciated. Thanks :)

neuron2
18th November 2009, 19:24
How did you capture the source stream?

Avisynth_challenged
18th November 2009, 19:40
Capture made with PC tuner card, which receives ATSC content via over-the-air (OTA) broadcast. Tuner card writes program to PC hard drive as *.tp file.

neuron2
18th November 2009, 19:45
Can you post a link to an unprocessed source stream sample?

Avisynth_challenged
18th November 2009, 20:33
Can you post a link to an unprocessed source stream sample?

Sure can, thanks Neuron. Is Rapidshare still okay to use? It's been a while since I've uploaded a sample clip.

Didée
18th November 2009, 20:41
Rapidshare is better than nothing. And anything else is better than Rapidshare. :devil:
MediaFire is (imho) one of the preferred hosters currently.

Avisynth_challenged
19th November 2009, 05:04
Here it is:
http://www.mediafire.com/file/nzyhmbmjkym/1080i_sample.zip

Untouched sample, 1920x1080i, 29.97fps, 300 frames (appx. 10s), video only, *.mpv format

File archived in zip format, appx. 19MB

Thanks again.

manono
19th November 2009, 15:24
The file is corrupt. There's no need to ZIP it up. Just upload the MPV.

Avisynth_challenged
19th November 2009, 16:45
The file is corrupt. There's no need to ZIP it up. Just upload the MPV.

Okay, MPV file is up:
http://www.mediafire.com/file/lemy3nxryjy/1080i_300f.mpv

Apologies and thanks :)

Alex_ander
19th November 2009, 19:32
It was deinterlaced before upscaling, not very well, but probably now it's good enough to do just this:

LoadPlugin("path\dgdecode.dll")
LoadPlugin("path\colormatrix.dll")
MPEG2Source("path\1080i_300f.d2v")
LanczosResize(704,480,239,4,-241,0)
ColorMatrix(mode="Rec.709->Rec.601")
AddBorders(8,0,8,0)#encode as progressive

davidhorman
19th November 2009, 19:47
AddBorders(8,0,8,0)#encode as progressive

Can't it be left at 704x480 and still be DVD compliant?

David

Alex_ander
19th November 2009, 19:48
P.S. The script I posted above is for progressive (by mistake, since the video is interlaced). The corrected version is in post below.

Alex_ander
19th November 2009, 19:52
Can't it be left at 704x480 and still be DVD compliant?

David

Of course, that's possible.

davidhorman
19th November 2009, 20:02
It was deinterlaced before upscaling, not very well
...
but removes some blending from the older de-interlacing.

Now I've been able to download it, it still looks interlaced to me, and I don't see any residual blending?

This will keep the interlacing in the downscaled version, and crops the black bars to give you a 4:3 picture.

mpeg2source("1080i_300f.d2v")
crop(240,0,-240,0) # a little bit of the bars remains but this will be in the overscan area after resizing
bob # no need for anything more complex
lanczosresize(720,480)
separatefields
selectevery(4,0,3)
weave

David

Alex_ander
19th November 2009, 20:35
it still looks interlaced to me, and I don't see any residual blending?

My fault, it is interlaced. I started with LeakKernelBob and saw repeated frames (probably had forgotten to activate slider in AVSP before advancing by frame). Correcting that completely wrong script.

LoadPlugin("path\dgdecode.dll")
LoadPlugin("path\LeakKernelDeint.dll")
LoadPlugin("path\colormatrix.dll")
MPEG2Source("path\1080i_300f.d2v")
Spline36Resize(704,Last.Height,239,0,-241,0)
LeakKernelBob(order=1)
LanczosResize(704,480,0,4,0,0)
ColorMatrix(mode="Rec.709->Rec.601")
#ConvertToYUY2() # if for CCE or Canopus
AddBorders(8,0,8,0)
DoubleWeave().SelectEvery(4,1)#TFF

davidhorman
19th November 2009, 21:13
I think, but am not sure, that you should either crop more than (239,0,-241,0) or resize to 720, because after that crop the picture still seems to have some overscan, suggesting that it wasn't cropped to the active picture before being upscaled/pillarboxed.

David

Alex_ander
20th November 2009, 07:46
Maybe. They could have previously cropped it to visible (up to 711 for NTSC) but some reference object in picture is needed to estimate this (then something like 712 instead of 704 would be closer to true).