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.

 

Go Back   Doom9's Forum > (HD) DVD, Blu-ray & (S)VCD > DVD & BD Rebuilder

Reply
 
Thread Tools Search this Thread Display Modes
Old 16th May 2023, 05:32   #31501  |  Link
MrVideo
Registered User
 
MrVideo's Avatar
 
Join Date: May 2007
Location: Wisconsin
Posts: 2,089
Quote:
Originally Posted by Lathe View Post
but I did revert it back to an .avsi as it is supposed to be.
.AVS not .AVSI. Instructions for its use are in the link.
MrVideo is offline   Reply With Quote
Old 16th May 2023, 08:44   #31502  |  Link
Lathe
Registered User
 
Lathe's Avatar
 
Join Date: Aug 2005
Posts: 1,080
So, I've been spending hours and hours trying to get this movie to look at least somewhat watchable. The good news is now after Selur's suggestion to install all those C++ and Visual Runtimes, and who knows what else (it took about 10 minutes) now most of the dll's do run after being loaded, so I get to try out all this stuff.

I just couldn't deal with the washed out and super ghosty/comby DVD print, so I've been working with the screwed up HD print. But, since I've been able to get the denoising and decombing filters working, I think after a LOT or trial and error, I am getting there. First, I tried TemporalSoften, but it didn't seem strong enough, so I then went to the Denoise and that is a lot stronger. Then, I'm trying to resharpen it and found a supposedly good edge sharpener vsMSharpen (it sure it great to be able to run all these dll's now )

Anyway, this film is NEVER going to look 'good', but at least I THINK I'm 'improving' it considering the messed up encode I started with. Oddly, when I just tried dropping my original AVS code into BDRB and set it for Alternate Output, the same resolution, intact audio, and a CRF of 16, for some reason it still 'analized' the CRF values and chose 12.x...??? Then, when it was done 3 hours later, the audio was WAY out of sync, even though the runtime of the resulting file was the same as the original file and audio. Again...HUH??? Using those settings didn't look that great anyway, but I was very disappointed mainly in the file being out of sync.

I FINALLY figured out how to use MKVMerge to set the FPS correctly after a million tries (DAMN syntax!) Anyway, I've just been using the x264 CMD line set to ultrafast so I can do small snippets and see how they look. Again, VERY oddly when I tried to set the SAR according to Selur's values for both PAL and NTSC, none of them would render the aspect ratio correctly, so I just eliminated the line. Another really odd thing is that the original HD MKV file shows as 25 FPS in MediaInfo, but the resulting encode using the CMD line always renders it as 20 FPS...??? And, if I change it using MKVMerge to 25, then it runs too fast. WTF...?!! So, I leave it alone and it SEEMS to be the right speed. Hopefully, when I'm done screwing around with the video, I can somehow get the audio in sync with it (uh huh... sure...)

I even tried using AssumeFPS(25/1) and Assume FPS(boolean string for either PAL or NTSC) But, nope... the CMD line renders it at 20 FPS EVERY time no matter what. Oh well...

So, here's a snippet with the following code that I've come up with so far (still, not really knowing what the hell I'm doing, but at least doing it...) And, I'll link to the snippet on my site. I know it still looks hideous, but at least MOST of the combing and ghosting and noise is gone, so we'll see if I can figure it out before I die...

Here is the code I have currently come to after a whole bunch of trial and error (after loading all the dll's first, of course):

TComb(mode=2, fthreshC=6, othreshC=6)
assumeTFF()
TFM().TDecimate()
DeNoise(getvar=false, var=120, evar=160, xgrid=5, ygrid=7)
vsMSharpen(threshold=2.0, strength=90.0, mask=false, luma=true, chroma=true)
UnFilter(90, 90)


I just grabbed a nice USB thumb drive from Amazon so that I can put the various encoded snippets on it and then play them directly on my OPPO to see how they look. Interesting that the OPPO natively incorporates some kind of filters automatically when I play the original file which does help some, but it still looks pretty bad.

But, I have a LONG ways to go! Any suggestions would be great. It honestly IS a really good film, so I want to keep at it

http://lathe-of-heaven.com/AVSSnippet.mkv

Last edited by Lathe; 16th May 2023 at 08:47.
Lathe is offline   Reply With Quote
Old 16th May 2023, 11:19   #31503  |  Link
MrVideo
Registered User
 
MrVideo's Avatar
 
Join Date: May 2007
Location: Wisconsin
Posts: 2,089
OK, you were getting 20 fps results from 25 fps because you were doing IVTC to the video. 25 fps video doesn't have 2:3 pulldown, ever. The TFM().TDecimate() line needs to go away.
MrVideo is offline   Reply With Quote
Old 17th May 2023, 08:09   #31504  |  Link
Lathe
Registered User
 
Lathe's Avatar
 
Join Date: Aug 2005
Posts: 1,080
Quote:
Originally Posted by MrVideo View Post
OK, you were getting 20 fps results from 25 fps because you were doing IVTC to the video. 25 fps video doesn't have 2:3 pulldown, ever. The TFM().TDecimate() line needs to go away.
Oh wow, really...? Heh... I must've misunderstood what Sharc suggested I do then. How strange... I thought the IVTC was what was helping with all that combing and stuff.

I have a lot to learn... Well, it will be interesting to remove those lines and see how it looks. Thanks mate!

***EDIT

Yep, you are right! (Wow, twice in a row! )

The resulting frame rate is now 25. The video doesn't really look that different in motion for that first minute or so. I tried going back and forth between the encode with the IVTC and without and I couldn't see any difference other than changing the frame rate according to MediaInfo.

Well hmmm... I'll still need to see what I can do though to reduce that ghosting and combing. I have NO bloody idea what the parameters of the TComb line are doing, I just pasted an example script. So, should I change those values, will that help with the combing and stuff? Is there another plugin/script I should try to reduce that, because if I can get rid of more of that that would help. Just softening it though seems to have helped with that. I remember one encode where I had both the TemporalSoften and the Denoise cranked up, and it looked REALLY smooth and clean, but almost no detail

What to do... Well, at least my different plugins are mostly working now.

Last edited by Lathe; 17th May 2023 at 08:26.
Lathe is offline   Reply With Quote
Old 17th May 2023, 11:43   #31505  |  Link
MrVideo
Registered User
 
MrVideo's Avatar
 
Join Date: May 2007
Location: Wisconsin
Posts: 2,089
Quote:
Originally Posted by Lathe View Post
Oh wow, really...? Heh... I must've misunderstood what Sharc suggested I do then. How strange... I thought the IVTC was what was helping with all that combing and stuff.
IVTC = InVerse TeleCine
It removes the 2:3 pulldown used to get 23.976 fps video to play at 29.97 fps, i.e. 2:3 pulldown telecine..

In order to cheaply get 23.976/24 fps video to play at 25 fps, the video is sped up by 4%. If the audio isn't fixed, it will have a pitch change. By using an expensive commercial standards converter, the 23.976 video is converted to 25 fps without a pitch change. But, in doing so, there is frame blending involved.
Quote:
The resulting frame rate is now 25. The video doesn't really look that different in motion for that first minute or so. I tried going back and forth between the encode with the IVTC and without and I couldn't see any difference other than changing the frame rate according to MediaInfo.
Out of every 5 frames, you should see a dropped/missing frame, which is why it became 20 fps.
Quote:
I'll still need to see what I can do though to reduce that ghosting and combing. I have NO bloody idea what the parameters of the TComb line are doing, I just pasted an example script. So, should I change those values, will that help with the combing and stuff? Is there another plugin/script I should try to reduce that, because if I can get rid of more of that that would help. Just softening it though seems to have helped with that. I remember one encode where I had both the TemporalSoften and the Denoise cranked up, and it looked REALLY smooth and clean, but almost no detail
Instead of trying to find it, it there a link to a piece of the original 25 fps video?

My guess is that it is 25p and not 50i. Decombing only really works on interlaced video as it is working with two separate fields in order to create a new frame. If the video is progressive, there are no fields to work with. Since I never do any decombing, you'd have find a filter that will take the progressive frame and create two interlaced fields and then do the decombing. I do not know if there is a filter setting for progressive vs interlaced sources.

Since appears to be a very cheaply produced video, it is very possible they took a 29.97 2:3 pulldown video and converted it to 25 fps. Blending of frames would be a result.

I'd have to look at a file containing several minutes of the video.

Last edited by MrVideo; 17th May 2023 at 13:30.
MrVideo is offline   Reply With Quote
Old 19th May 2023, 03:50   #31506  |  Link
Lathe
Registered User
 
Lathe's Avatar
 
Join Date: Aug 2005
Posts: 1,080
Quote:
Originally Posted by MrVideo View Post
IVTC = InVerse TeleCine
It removes the 2:3 pulldown used to get 23.976 fps video to play at 29.97 fps, i.e. 2:3 pulldown telecine..

In order to cheaply get 23.976/24 fps video to play at 25 fps, the video is sped up by 4%. If the audio isn't fixed, it will have a pitch change. By using an expensive commercial standards converter, the 23.976 video is converted to 25 fps without a pitch change. But, in doing so, there is frame blending involved.

Out of every 5 frames, you should see a dropped/missing frame, which is why it became 20 fps.

Instead of trying to find it, it there a link to a piece of the original 25 fps video?

My guess is that it is 25p and not 50i. Decombing only really works on interlaced video as it is working with two separate fields in order to create a new frame. If the video is progressive, there are no fields to work with. Since I never do any decombing, you'd have find a filter that will take the progressive frame and create two interlaced fields and then do the decombing. I do not know if there is a filter setting for progressive vs interlaced sources.

Since appears to be a very cheaply produced video, it is very possible they took a 29.97 2:3 pulldown video and converted it to 25 fps. Blending of frames would be a result.

I'd have to look at a file containing several minutes of the video.
Good explanation, thanks mate!

Yes, I think you are right because there is some kind of 'ghosting'(what looks like combing) going on. And yes the original HD video is encoded at 25 fps. It was kind of funny though that with the 2 softeners/denoisers cranked up, everything looked pretty damn smooth But, I have a feeling that I am only going to be able to get it to look so 'good' because of the original crappy encoding that was done.

You honestly CAN see though through all the crap that the basics underneath it do look quite a bit better than the absolutely washed out, though 'properly' encoded DVD. But, when you look at the DVD, the underlying substance is so weak that there is nothing much to work with. It's kind of like it's been watered down about 50% from the basic information in the HD print. Colours, definition, saturation, contrast. There is just more 'there' there in the HD print, thus my wanting to 'fix' the HD encode the best I can.

I will post a link to about a 5 minute snippet of the original video (I think my first post was only about 20 seconds) but it is going to be about 350 Megs, so if you don't mind downloading that. But yeah, I would LOVE to see what you think could be done with it. All I've been doing is shooting from the hip and guessing so far...

http://lathe-of-heaven.com/GCHD-001.mkv
Lathe is offline   Reply With Quote
Old 19th May 2023, 06:50   #31507  |  Link
MrVideo
Registered User
 
MrVideo's Avatar
 
Join Date: May 2007
Location: Wisconsin
Posts: 2,089
Yep, that is a crappy conversion to HD @ 25 fps. It looks like it came from a VHS source.

They didn't bother to IVTC the source before converting to 25 fps, hence the 2:3 pulldown frames showing up with combing. And yes, their standards converter melded frames. All of which you will not be able to get rid of.

I'd be interested in seeing the first TOC file of the DVD. Since DVD files are only 1 GB in size, that would be just fine.
MrVideo is offline   Reply With Quote
Old 19th May 2023, 06:52   #31508  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,964
Quote:
Originally Posted by Lathe View Post
Oh wow, really...? Heh... I must've misunderstood what Sharc suggested I do then. How strange... I thought the IVTC was what was helping with all that combing and stuff.
Sorry, you don't understand, do you?
I did IVTC the DVD version because it was telecined. IVTC is not a general tool to "help with all that combing and stuff".
The "HD" crap which you want to "fix" now is the work of a moron. It is no longer telecined, just totally borked. Ditch it.
Sharc is offline   Reply With Quote
Old 19th May 2023, 12:14   #31509  |  Link
gonca
Registered User
 
Join Date: Jul 2012
Posts: 1,199
I read your posts at VH, and Sharc is correct.
The DVD might be a better candidate for "improvement"
gonca is offline   Reply With Quote
Old 19th May 2023, 21:51   #31510  |  Link
MrVideo
Registered User
 
MrVideo's Avatar
 
Join Date: May 2007
Location: Wisconsin
Posts: 2,089
I don't need a copy of a DVD TOC file, as Sharc has already dug into the DVD.
MrVideo is offline   Reply With Quote
Old 20th May 2023, 07:14   #31511  |  Link
Lathe
Registered User
 
Lathe's Avatar
 
Join Date: Aug 2005
Posts: 1,080
Quote:
Originally Posted by Sharc View Post
Sorry, you don't understand, do you?
I did IVTC the DVD version because it was telecined. IVTC is not a general tool to "help with all that combing and stuff".
The "HD" crap which you want to "fix" now is the work of a moron. It is no longer telecined, just totally borked. Ditch it.
Heh, okay, okay, got it! I was just SO damn determined that I could do SOMETHING to make it look better, but I think I got as far as I could.

Sorry about that. I posted back about your code for the DVD that I could not call the Spotless or the Sharpen that you suggested. I got errors which I posted on VideoHelp. But yeah, I'm AM coming to the point where I'll try to work with the DVD now, thanks! I don't know if I'm quite onboard with the greyscale, but if I can get the Spotless/Sharpen working or something like it, then I can play around and see about that.

***EDIT

Okay, just ONE last gasp... (I promise, and I won't bring this up any more UNLESS you guys are so impressed that you just MIGHT have some more suggestions)

And then, I'll get to work on the DVD. But guys, honestly, in my stumbling around for the last week or so and hours and hours of trial and error (mostly error) I THINK I've got this li'l bugger looking pretty good, considering what I have to work with.

Now, please just take a quick look at this latest encode. I believe that SOMEHOW, God knows how, I've been able to get rid of a lot of the combing and crap, and I honestly think it looks quite a bit better. Tell me honestly what you think... Please forgive this ONE last attempt (Sharc) I KNOW I am industriously polishing a big turd, but it is my turd! (somehow that sounded better before I wrote it...)

Seriously, for this last time, tell me truthfully what you'all think - I think I could live with this. Here is the code I ended up using:

TComb(mode=2, fthreshC=6, othreshC=6)
DeNoise(getvar=false, var=120, evar=160, xgrid=5, ygrid=7)

vsMSharpen(threshold=2.0, strength=90.0, mask=false, luma=true, chroma=true)
WarpSharp(depth=128, blur=3, bump=128, cubic=0.6)


I noticed that after adding the WarpSharp (it was the only other sharpener I could get working...) the picture was looking more defined. I will research its settings to see if I can bump it up some more, but as it is, compared to what it was, I honestly think it isn't too bad...

Thanks too gonca and Mr.Video for all your help and input!

http://lathe-of-heaven.com/Encode002.mkv

***EDIT 2

Notice particularly the two close ups of Anthony Hopkins face around 1:30 and a few seconds later as he backs from the room.

Last edited by Lathe; 20th May 2023 at 08:02. Reason: More stuff...
Lathe is offline   Reply With Quote
Old 20th May 2023, 12:48   #31512  |  Link
gonca
Registered User
 
Join Date: Jul 2012
Posts: 1,199
Yep, you polished it
But it is still a turd (yours)
I've seen old up scaled DVDs look better
Work with the DVD
gonca is offline   Reply With Quote
Old 20th May 2023, 21:36   #31513  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,964
Plastic look (overfiltered), blurry, combing artefacts, horrible colors .......
You're wasting your time, but to each his own
Sharc is offline   Reply With Quote
Old 25th May 2023, 04:45   #31514  |  Link
Lathe
Registered User
 
Lathe's Avatar
 
Join Date: Aug 2005
Posts: 1,080
You guys... Have some faith!

Well, FWIW I just got finished watching my highly polished turd. It is a damn good movie! Good ol' Levinson/Link and their brilliant convoluted Crime Thrillers (FWIW, a fairly obscure 1979 Telefilm called 'MURDER BY NATURAL CAUSES' that they did is even better than this one) I transfered (and polished it) many years ago to DVD. Great little film!

So, now that I've pretty much done the 'best' I could with the mangled HD print, I'm going to see what I can do with the DVD print. It's true that it doesn't have the multiple issues that the HD print has, but the print itself is SO washed out, especially if grey scaled, that honestly I think that would bother me in this particular case much more so than the weird issues with the HD print.

BUT... I do very much appreciate the input and help because it has helped me a lot to reacquaint myself with Avisynth and really helped me to get my plugins and all the supporting software in order. Actually, once I had my 'brilliant' AVS script put together, I did indeed drop it right into BDRB and had it do the encode. But, this time I used the Archive function which I should have used in the first place and everything came out pretty well considering...

I'll drop some screenshots here of what I ended up with. Other than flushed and waxy faces, I really don't think it turned out that bad. Also, watching it played as a Blu-ray through my OPPO player helped. I THINK it may have detected and incorporated more filters automatically in playback, thus perhaps helping some with any residual combing. On my ancient 50" Plasma though, it honestly looked pretty good.

This is the script I ended up using, purely by trial and error. I have like 3 strong sharpeners in a row, that was the best I could come up with, although I'm sure you guys could come up with better ones:

TComb(mode=2, fthreshC=6, othreshC=6)
DeNoise(getvar=false, var=120, evar=160, xgrid=5, ygrid=7)
vsMSharpen(threshold=2.0, strength=100.0, mask=false, luma=true, chroma=true)
LimitedSharpenFaster(strength=200, edgemode=0)
WarpSharp(depth=200, blur=3, bump=200, cubic=0.6)


For the most part, stationary surfaces came across very well, and overall I honestly didn't even notice any combing while watching the film. I think for this kind of 'Hip' 1985 Telefilm, the brighter and more robust presentation, although not the best, just seems to lend itself better than a more trouble free but super faded/washed out looking nearly B&W print - Now, if this were a Classic period 1940's Film Noir or something along those lines, that would be a completely different story of course.

It will be interesting (and hopefully instructive) now to start working on the DVD print just to see how 'good' I can get it to look. Maybe I will be surprised

A sincere 'Thank You' though for your guys' help and input, I'm still applying it as I go...










Last edited by Lathe; 25th May 2023 at 04:55.
Lathe is offline   Reply With Quote
Old 25th May 2023, 08:20   #31515  |  Link
Lathe
Registered User
 
Lathe's Avatar
 
Join Date: Aug 2005
Posts: 1,080
Okay, I am working with the DVD print now. I am using Sharc's suggested settings, but without the Greyscale and using the FluxSmooth plugin because I can't seem to get Spotless running, and I can't get MDegrain working either, so I left off any sharpeners for now. So, here is a comparison (so far) of what I've got with the DVD and a similar snapshot of the 'finished' HD print. I guess I can see where maybe with some more saturation and if I can figure out a good sharpener, I MIGHT get a better result. But, just as is, you can see the darker outlines, the sharper delineation, and just the deeper, richer colours of the HD print (for now...) There just seems to be more 'substance' there...

DVD print:



'Processed' HD print:

Lathe is offline   Reply With Quote
Old 25th May 2023, 08:25   #31516  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,143
Out of interest... What's the movie?
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 28th May 2023, 13:47   #31517  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,361
https://www.amazon.com/Guilty-Consci...dp/B000B6TSN8/
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain)
"Data reduction ? Yep, Sir. We're working on that issue. Synce invntoin uf lingöage..."
Emulgator is offline   Reply With Quote
Old 28th May 2023, 15:53   #31518  |  Link
cartman0208
Registered User
 
Join Date: Jun 2010
Location: Germany
Posts: 203
Quote:
Originally Posted by Lathe View Post
Do you have the original of that snippet available? 20FPS looks a bit off.
I'd like to give it a try with AI support ;-)
cartman0208 is offline   Reply With Quote
Old 28th May 2023, 22:30   #31519  |  Link
MrVideo
Registered User
 
MrVideo's Avatar
 
Join Date: May 2007
Location: Wisconsin
Posts: 2,089
Quote:
Originally Posted by cartman0208 View Post
Do you have the original of that snippet available? 20FPS looks a bit off.
As pointed out in a posting, the 20fps was a result of doing IVTC on a video that didn't have 2:3 pulldown and was 25fps.
MrVideo is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 15:10.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.