Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
27th August 2014, 11:34 | #1 | Link |
Registered User
Join Date: Dec 2011
Posts: 354
|
DVD decimate matching bluray source
I need to overlay bluray video on dvd video. But a bluray is progressive and a dvd is telecined.
If i just call tfm().tdecimate() some frames don't match bluray video. How can I decimate dvd to match bluray? |
29th August 2014, 13:39 | #2 | Link |
Registered User
Join Date: Jul 2011
Location: Tennessee, USA
Posts: 266
|
What do you mean by "overlay"?
That's not correct. DVD is almost always interlaced or telecined. Depending on who created them, some DVD's are purely progressive but encoded as interlaced. There are several variations. Standard BlueRay can be interlaced or progressive. 1920x1080 can be progressive if the originals are at progressive film speed (23.97 or 24 fps). 1920x1080 is otherwise interlaced at 29.97 or 25 fps. The same holds true for 1440x1080 BluRay. 1280x720 standard BluRay is always progressive at 23.97, 24, 50, or 59.94 fps. Standard-definiton BluRay is interlaced or telecined at 25 or 29.97 fps. There are variations on these standards, meaning that some people make non-standard videos. http://forum.doom9.org/showthread.php?t=154533 Can't answer that. No one knows anything about your source videos. Last edited by LemMotlow; 29th August 2014 at 13:57. |
29th August 2014, 18:18 | #3 | Link | ||
Registered User
Join Date: Dec 2011
Posts: 354
|
Upscale DVD and overlay bluray video on it to get some pixels from DVD source.
Quote:
Quote:
dvd - https://dl.dropboxusercontent.com/u/58215671/dvd.ts bluray - https://dl.dropboxusercontent.com/u/...71/bluray.m2ts Code:
dvd=MPEG2Source("C:\Users\win8\Desktop\dvd.d2v", cpu=0).Trim(4,0) # This trim is to start progressive frame of this sample. Doesn't exist in my real script bd=lwlibavvideosource("C:\Users\win8\Desktop\bluray.m2ts").Trim(178,0) # This trim is for match first frame with dvd's first frame. Doesn't exist in my real script dvd.TFM().crop(0,2,0,0).TDecimate(mode=1) nnedi3_rpow2(2,cshift="spline36resize") d1=Spline36Resize(1280,718) d2=Spline36Resize(1280,720) dvd=overlay(d2,d1) overlay(dvd,bd.Spline36Resize(1260,718,0.5,0.5,-0.5,0),10,2) Last edited by bxyhxyh; 29th August 2014 at 21:03. |
||
29th August 2014, 19:51 | #4 | Link |
Registered User
Join Date: Jul 2011
Location: Tennessee, USA
Posts: 266
|
The BluRay has been inverse telecined and is progressive at 23.976 fps.
The dvd (why is DVD in a .ts file?) was formerly progressive with 3:2 pulldown (telecine). Instead of inverse telecine, some clever individual has field-blend deinterlaced it. The formerly telecined frames are field-blended. Unless someone has some ideas and solutions otherwise, no way to repair those frames. Regardless, upscaling standard def will have lower quality and other differences. Even if you could get good frames for overlay, the differences in overlaid frames would produce flicker and/or uneven playback. Last edited by LemMotlow; 29th August 2014 at 19:57. |
29th August 2014, 20:58 | #5 | Link | ||
Registered User
Join Date: Dec 2011
Posts: 354
|
Quote:
Quote:
Problem here is Decimation. Decimation based on other progressive source. Also DVD.Spline36Resize(1280,720,10.5,1.5,-10.5,-0).crop(0,0,0,-2) is same as bd.Spline36Resize(1280,718,0,0,0,-2.5) pixel wise. That would help to decide which frame should be decimated. Last edited by bxyhxyh; 29th August 2014 at 21:06. |
||
29th August 2014, 21:55 | #6 | Link |
Registered User
Join Date: Sep 2007
Posts: 5,434
|
Yes, there are resizing and AR differences, but they line up in terms of matching frames for me. Could it be L-smash issue /difference ?
For example try MPEG2Source (DGIndex), and AVCSource (DGAVCIndex) MPEG2Source() AssumeTFF() TFM().TDecimate() Trim(1,0) AVCSource() Trim(176,0) Trim(0,324) |
29th August 2014, 22:10 | #8 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,434
|
Quote:
or do your testclips not exhibit the problem ? Did you try what I posted above ? |
|
29th August 2014, 22:23 | #9 | Link | |
Registered User
Join Date: Dec 2011
Posts: 354
|
Quote:
Combed frames caused by TFM may be screwing up decimation. I will try QTGMC. Since I need only 10 pixels from both sides, there wouldn't significant quality loss. |
|
30th August 2014, 00:08 | #10 | Link | |
Registered User
Join Date: Jul 2011
Location: Tennessee, USA
Posts: 266
|
Quote:
TFM the cause of combing? I doubt it. After I got a proper AVI from that weirdo dvd.ts, TIVTC worked perfectly. No combing, either. Last edited by LemMotlow; 30th August 2014 at 03:14. |
|
Tags |
decimation |
Thread Tools | Search this Thread |
Display Modes | |
|
|