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 > Capturing and Editing Video > Avisynth Usage
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 23rd October 2016, 21:15   #21  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
@Lathe
It's 2:3 hard telecined.
So as davidhorman writes, or as discussed in your other thread(s):

- Import it into BD-RB
- enable IVTC
- Select Convert SD to HD (720p)

and BD-RB will produce a Blu-ray compatible file and folder structure which you can burn and which your OPPO will play without hassles.
Sharc is offline   Reply With Quote
Old 23rd October 2016, 21:26   #22  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Quote:
Originally Posted by manono View Post
TFM().TDecimate()
Yes, but without resizing it would leave him with a format (720x480p 23.976) which is not strictly Blu-ray compliant (primary stream). Very most players will play it, but his OPPO seems to be extremely picky ......
Sharc is offline   Reply With Quote
Old 23rd October 2016, 23:42   #23  |  Link
LemMotlow
Registered User
 
Join Date: Jul 2011
Location: Tennessee, USA
Posts: 266
Quote:
Originally Posted by Sharc View Post
Yes, but without resizing it would leave him with a format (720x480p 23.976) which is not strictly Blu-ray compliant (primary stream). Very most players will play it, but his OPPO seems to be extremely picky ......
720x480p 23.976 + DGPulldown = NTSC compliant DVD with 3:2 pulldown flags. Same for BluRay, but probably needs re-encoding for BD.

1280x720p (add black pixels for side pillars) + reencode as MPG2/h.264/AVC for BluRay/AVCHD, will be BluRay/AVCHD compliant at 23.976. Will look like soft and mushy blown-up VHS or SD.

Better off leaving it as SD DVD. Resizing has its costs. I don't know why people think they're gaining something. Will no longer play properly on 4:3 or 4:5 PC or TV displays, will be both letterboxed and pillarboxed, all 4 sides.
LemMotlow is offline   Reply With Quote
Old 23rd October 2016, 23:56   #24  |  Link
Lathe
Registered User
 
Lathe's Avatar
 
Join Date: Aug 2005
Posts: 1,100
Quote:
Originally Posted by manono View Post
TFM().TDecimate()
Thanks guys... That's what I thought. I just basically have to do the IVTC thing like all the others. Thankfully, I can go back and redo the other 2 I screwed up
Lathe is offline   Reply With Quote
Old 23rd October 2016, 23:58   #25  |  Link
Lathe
Registered User
 
Lathe's Avatar
 
Join Date: Aug 2005
Posts: 1,100
Quote:
Originally Posted by Sharc View Post
@Lathe
It's 2:3 hard telecined.
So as davidhorman writes, or as discussed in your other thread(s):

- Import it into BD-RB
- enable IVTC
- Select Convert SD to HD (720p)

and BD-RB will produce a Blu-ray compatible file and folder structure which you can burn and which your OPPO will play without hassles.
Yep, your first idea was the best Sharc. I've already done some others and they turned out just great. No more believing MediaInfo about deinterlaced material!
Lathe is offline   Reply With Quote
Old 24th October 2016, 00:05   #26  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
Quote:
Originally Posted by Sharc View Post
Yes, but without resizing it would leave him with a format (720x480p 23.976) which is not strictly Blu-ray compliant (primary stream).
Did he say the second one was intended for Blu-Ray? He can either encode it for DVD (or MP4 or MKV, whatever) or resize it and add borders if intended for Blu-Ray.
manono is offline   Reply With Quote
Old 24th October 2016, 00:15   #27  |  Link
Lathe
Registered User
 
Lathe's Avatar
 
Join Date: Aug 2005
Posts: 1,100
Quote:

Originally Posted by Sharc

Yes, but without resizing it would leave him with a format (720x480p 23.976) which is not strictly Blu-ray compliant (primary stream). Very most players will play it, but his OPPO seems to be extremely picky ......

Quote:
Originally Posted by LemMotlow View Post
720x480p 23.976 + DGPulldown = NTSC compliant DVD with 3:2 pulldown flags. Same for BluRay, but probably needs re-encoding for BD.

1280x720p (add black pixels for side pillars) + reencode as MPG2/h.264/AVC for BluRay/AVCHD, will be BluRay/AVCHD compliant at 23.976. Will look like soft and mushy blown-up VHS or SD.

Better off leaving it as SD DVD. Resizing has its costs. I don't know why people think they're gaining something. Will no longer play properly on 4:3 or 4:5 PC or TV displays, will be both letterboxed and pillarboxed, all 4 sides.
Yeah, the whole deal why I have to resize it (or at least add borders to make it 16x9) is all because of my inability to render ANY kind of MKV file that will play on my OPPO. It is the darndest thing... It just absolutely will NOT play any MKV file that I render through x264 no matter what I change. So... basically what I have to do to make any file that I re-encode playable on it, is to put it into a BDMV structure. THAT my OPPO will play just fine. Funny too, because I have a ton of MKVs that are from, well, let's say 'various sources', and unless the ref or B frames are too high, it usually plays just fine, even with really squirrelly parameters otherwise. But, when I try to do it, no matter how simple I make it, it ALWAYS chokes the player. I even wrote OPPO about it and even they don't know why...

So, no big deal... But, because of that ONE vexing limitation, if they are old 4x3 films especially and I want to re-encode them, use Avisynth, or x264, I absolutely HAVE to create a 16x9 file that will play as a Blu-ray (or perhaps an AVCHD folder)
Lathe is offline   Reply With Quote
Old 24th October 2016, 00:16   #28  |  Link
Lathe
Registered User
 
Lathe's Avatar
 
Join Date: Aug 2005
Posts: 1,100
Quote:
Originally Posted by manono View Post
Did he say the second one was intended for Blu-Ray? He can either encode it for DVD (or MP4 or MKV, whatever) or resize it and add borders if intended for Blu-Ray.
Yes Manono, exactly right...
Lathe is offline   Reply With Quote
Old 24th October 2016, 01:12   #29  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Sorry, Posted in wrong thread, removed,.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 24th October 2016 at 01:21.
StainlessS is offline   Reply With Quote
Old 24th October 2016, 03:14   #30  |  Link
LemMotlow
Registered User
 
Join Date: Jul 2011
Location: Tennessee, USA
Posts: 266
Quote:
Originally Posted by Lathe View Post
Yeah, the whole deal why I have to resize it (or at least add borders to make it 16x9) is all because of my inability to render ANY kind of MKV file that will play on my OPPO. It is the darndest thing... It just absolutely will NOT play any MKV file that I render through x264 no matter what I change. So... basically what I have to do to make any file that I re-encode playable on it, is to put it into a BDMV structure.
Where have you been getting your format information? BestBuy? CNet?

720x480 23.976fps video encoded as MPEG2 or h,264/AVC with 3:2 pulldown flags for 29.97fps playback is BluRay compatible and is treated as faux interlace by BD players. Hell, every damn standard def DVD or BD Hollywood retail movie is produced that way. And your 16:9 display will put the side pillars there for you on a 16:9 display. Jeez.

Neither of My OPPO's will play mks's. Neither will my Denon or Panasonic. Most external players won't play mkv. Ever heard of MP4, m2TS, TS? There are many more. Jeez again.
LemMotlow is offline   Reply With Quote
Old 24th October 2016, 04:18   #31  |  Link
Lathe
Registered User
 
Lathe's Avatar
 
Join Date: Aug 2005
Posts: 1,100
Quote:
Originally Posted by LemMotlow View Post
Where have you been getting your format information? BestBuy? CNet?

720x480 23.976fps video encoded as MPEG2 or h,264/AVC with 3:2 pulldown flags for 29.97fps playback is BluRay compatible and is treated as faux interlace by BD players. Hell, every damn standard def DVD or BD Hollywood retail movie is produced that way. And your 16:9 display will put the side pillars there for you on a 16:9 display. Jeez.

Neither of My OPPO's will play mks's. Neither will my Denon or Panasonic. Most external players won't play mkv. Ever heard of MP4, m2TS, TS? There are many more. Jeez again.
Despite your rudeness... I already know about DVDs, thanks...

Also, my OPPO does indeed play MKVs as I clearly bloody said, if you had read my last post properly. It simply does not play MY encodes to MKV.

Where did you learn how to read...?

From watching Duck Dynasty...?
Lathe is offline   Reply With Quote
Old 24th October 2016, 04:21   #32  |  Link
Lathe
Registered User
 
Lathe's Avatar
 
Join Date: Aug 2005
Posts: 1,100
BTW, I appreciate getting that straight about the telecined stuff (as opposed to interlaced) I'm unearthing my original discs now on the few that I pooched so that I can redo them properly, thanks to you guys kindly straightening me out.

Thanks!
Lathe is offline   Reply With Quote
Old 24th October 2016, 09:07   #33  |  Link
LemMotlow
Registered User
 
Join Date: Jul 2011
Location: Tennessee, USA
Posts: 266
Regarding MKV I'm going by your earlier remarks about your own mkv's as well as all the maverick mkv's I've tried playing on any of my players. Out of 10 I get maybe one MKV that plays on one player or another, but home made isn't all that great anyway so I just don't meddle with it. The internet and tech forums are flooded with the struggles of these format conversions and media convolutions, and frankly I got tired of meddling with what already works. By the time I get through one of those conversion threads I'm too exhausted just thinking about it. Now we have trusting souls with their stuff on cloud, but miss a few payments and poof your stuff is gone. Then there is an article I found about certain OPPO players (or was it all their players?) that won't play DVD or BluRay transferred to otherstorage devices (example, this one). This is too much craziness for me, I lost patience with this sort of thing long ago and just let others self-destruct trying to beat city hall.
LemMotlow is offline   Reply With Quote
Old 24th October 2016, 15:48   #34  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,829
I don't know about "most" external players not playing MKV. Both the Bluray players here do. There's a Plasma and two LCD TVs here with built in media players that'll play MKVs. One is DivX certified which ironically means it's a little more limited than the non-certified players in respect to bitrate, and it doesn't support DTS, but High profile Level 4.1 AVC in an MKV is pretty much standard. Xvid in an MKV is fine. My other half owns an old Sony Bluray player manufactured before they evolved to include USB inputs. It'll still play MKVs if you burn them to disc.
The main negative is a couple of the players don't support anamorphic video in an MKV, but the same applies to MP4 too.

For the sample from post #18.... it's already Bluray compliant, but you could apply IVTC and any other filtering and encode the 23.976 progressive output using soft pulldown to make it Bluray compliant again. http://www.x264bluray.com/home/480p-ntsc

Is there a weird line down the right side of the sample? Kind of like a mirror or split effect or am I imagining it?
I've never authored a Bluray complaint disc in my life as I mostly use MKV so I can't comment on any player oddities (if only there was an MP4 equivalent of MKVMergeGUI), but I don't like encoding black borders and I often resize even if it is evil, so I'd probably do the following to output a Bluray complaint resolution (if required) and set --SAR 10:11. Cropping the "line" down the right side means hacking off a bit more picture top and bottom than ideal to keep the correct aspect ratio, but it's either that or black borders.

tfm(order=-1).tdecimate()
crop(6, 8, -18, -8)
Spline36Resize(720,480)

Does the black level need adjusting? Something like this maybe?
Ylevels(12,1,255,0,255)

Last edited by hello_hello; 25th October 2016 at 01:42.
hello_hello is offline   Reply With Quote
Old 25th October 2016, 02:05   #35  |  Link
Lathe
Registered User
 
Lathe's Avatar
 
Join Date: Aug 2005
Posts: 1,100
Quote:
Originally Posted by LemMotlow View Post
Regarding MKV I'm going by your earlier remarks about your own mkv's as well as all the maverick mkv's I've tried playing on any of my players. Out of 10 I get maybe one MKV that plays on one player or another, but home made isn't all that great anyway so I just don't meddle with it. The internet and tech forums are flooded with the struggles of these format conversions and media convolutions, and frankly I got tired of meddling with what already works. By the time I get through one of those conversion threads I'm too exhausted just thinking about it. Now we have trusting souls with their stuff on cloud, but miss a few payments and poof your stuff is gone. Then there is an article I found about certain OPPO players (or was it all their players?) that won't play DVD or BluRay transferred to otherstorage devices (example, this one). This is too much craziness for me, I lost patience with this sort of thing long ago and just let others self-destruct trying to beat city hall.
Fair enough... Appreciate your reply and your sentiments. My OPPO plays normal, run of the mill MKVs as long as the ref frames are not too high (up to 7 or 8 I think with 720p stuff, and up to 4 or 5 with 1080 stuff) and if the B frames aren't too high (about 3 or 4 as per Blu-ray standard) and if the buffers aren't setup weird.

It pretty much plays all the basic stuff, and one thing that REALLY helps to preview snippets and such, is using the USB drive. But, I don't really get too esoteric with what I'm trying to play or trying to do.

Good comment about the 'Cloud' too...
Lathe is offline   Reply With Quote
Old 25th October 2016, 02:25   #36  |  Link
Lathe
Registered User
 
Lathe's Avatar
 
Join Date: Aug 2005
Posts: 1,100
Quote:
Originally Posted by hello_hello View Post
I don't know about "most" external players not playing MKV. Both the Bluray players here do. There's a Plasma and two LCD TVs here with built in media players that'll play MKVs. One is DivX certified which ironically means it's a little more limited than the non-certified players in respect to bitrate, and it doesn't support DTS, but High profile Level 4.1 AVC in an MKV is pretty much standard. Xvid in an MKV is fine. My other half owns an old Sony Bluray player manufactured before they evolved to include USB inputs. It'll still play MKVs if you burn them to disc.
The main negative is a couple of the players don't support anamorphic video in an MKV, but the same applies to MP4 too.

For the sample from post #18.... it's already Bluray compliant, but you could apply IVTC and any other filtering and encode the 23.976 progressive output using soft pulldown to make it Bluray compliant again. http://www.x264bluray.com/home/480p-ntsc

Is there a weird line down the right side of the sample? Kind of like a mirror or split effect or am I imagining it?
I've never authored a Bluray complaint disc in my life as I mostly use MKV so I can't comment on any player oddities (if only there was an MP4 equivalent of MKVMergeGUI), but I don't like encoding black borders and I often resize even if it is evil, so I'd probably do the following to output a Bluray complaint resolution (if required) and set --SAR 10:11. Cropping the "line" down the right side means hacking off a bit more picture top and bottom than ideal to keep the correct aspect ratio, but it's either that or black borders.

tfm(order=-1).tdecimate()
crop(6, 8, -18, -8)
Spline36Resize(720,480)

Does the black level need adjusting? Something like this maybe?
Ylevels(12,1,255,0,255)
Thanks kindly for the input and the suggestions!

Heh... it's funny that here with all you really expert guys, that you would say that about black borders I don't mind them really, but like you I also do not mind cropping a bit to (what I feel anyway) optimize a particular situation. And, I will likely be called an outcast, but depending on the content, I am happy sometimes just zooming in on old 4x3 content with the display...

Interesting what you said about black levels. I still don't really know anything about that (but I WILL look it up!) But, what I've done is I did have BDRB IVTC it and go ahead and make it 720p. Then what I did as far as the 'color', since to me the picture looks like it could use a LOT more contrast, is I did just that. I added Avisynth to BDRB's settings to boost the contrast and lessen the brightness to 'balance' it, I added 'greyscale' too, and I thought it came out pretty well. Hmmm, I didn't notice the 'line' you talked about; I'm sure it's there, I just didn't notice it.

I personally don't mind a picture looking a tad sharp, even if most 'puritans' recoil in horror at ANY kind of perceived manipulation or 'unnatural' looking film grain, etc. I mean, I DON'T wan to make it look like 'THE MATRIX' or anything, but I don't mind sharpening or deepening the contrast to what I feel anyway is a good looking level, but without hopefully overdoing it.

One good example is the Blu-ray for the excellent film 'SEA OF LOVE'. Darn if the Blu-ray isn't SO bloody dark, you cannot see anything! So, I ran it through BDRB to a BD25 (which was just a tad smaller than the Blu-ray movie file) and used BDRB's avisynth settings basically to do the same thing as above to brighten the picture so that at least you could dang well see it! Big difference. DAMN did that encode take a while! One of the longest for a Blu-ray ever for me, probably due to the added Avisynth and high quality settings I used. I guess sometimes when they encode these, perhaps terrified of offending the puritan 'elite' Audio/Videophiles, of which I AM one, but not the 'puritan elite' and I guess rather than tamper with them, they just leave them the way they are. But, honestly, if you've seen this Blu-ray, you truly cannot see anything!

***EDIT

Heh, I just remembered that I did just exactly what you suggested on another file that I had to UNpooch like the other one we've been talking about. In this case ('CRACK IN THE MIRROR') along the top and bottom I DID notice the last few pixels had a lot of noise, so when I just did the final x264 encode with Avisynth, I did indeed chop off like 4 pixels all around even though the resulting file won't be EXACTLY 16x9

Last edited by Lathe; 25th October 2016 at 02:36.
Lathe is offline   Reply With Quote
Old 25th October 2016, 07:42   #37  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,829
I wasn't referring to noise as such, but..... I don't know how to describe it properly so here's a pic. Have a look at the very right of the imagine. It looks like a kind of reflection. It's odd, but it's throughout the whole sample. Unless every player I've tried isn't decoding it properly.....

That's what I cropped:



The main reason I try to avoid black bars is because they lock you to an aspect ratio, unless you have a player that'll zoom. A classic example is widescreen video on a 4:3 DVD so it has black bars top and bottom. It's fine on a 4:3 screen but on a 16:9 screen you end up with black bars down each side as well as top and bottom.

Someone else may have a better suggestion but your sample looked a bit washed out to me and after stretching the luminance range a bit I think it looks better. It's similar to adjusting the contrast and there's no reason why you couldn't do some of both if need be. I used YLevels (it's similar to Avisynth's Levels() function) to "stretch" the levels towards the dark end.

Before:


YLevels(16,1,255,0,255)


I generally include GreyScale() when encoding black and white to kill any chroma noise, although until very recently I was blissfully unaware that black and white film was often deliberately tinted and the same tint wasn't always used throughout a movie. Night scenes might have a blue tint or an outdoor scene might have a brown one etc. I have seen movies where the tint noticeably changes and in my ignorance I assumed it was due to crappy DVD/Bluray production, but it turns out tinting was a thing back in the day and preserving the movie in it's original form should technically include any tinting.

Film tinting

I'll probably keep adding GreyScale() when encoding anyway as I find it distracting if I notice the tint change..... although I experimented with it myself last time I encoded a B/W movie and I think I prefer a very mild brown. It looks a bit softer than black and white, although that may depend on the colour temperature of your display. Not that I've actually encoded with a tint, just experimented a little.

A brownish tint:


I don't know how the production process works exactly.... whether on it's way to DVD/Bluray the video is sometimes converted to RGB and back without expanding/reducing the levels correctly and it ends up dark or washed out. I've seen quite a bit of video with incorrect levels. For the PAL DVDs of the re-imagined BattleStar Galactica, the opening sequence is the same for each episode but there's a couple of episodes in season three (from memory) where the levels are wrong as they display differently. "Space" is grey instead of black. Expanding the levels from TV range to PC range fixes it and the opening sequence looks the same as it does for the rest of the episodes.
ie ColorYUV(Levels="TV->PC")
I've no idea how that sort of thing happens but it definitely does.

Last edited by hello_hello; 25th October 2016 at 10:35.
hello_hello is offline   Reply With Quote
Old 25th October 2016, 09:11   #38  |  Link
Lathe
Registered User
 
Lathe's Avatar
 
Join Date: Aug 2005
Posts: 1,100
Quote:
Originally Posted by hello_hello View Post
I wasn't referring to noise a such, but..... I don't know how to describe it properly so here's a pic. Have a look at the very right of the imagine. It looks like a kind of reflection. It's odd, but it's throughout the whole sample. Unless every player I've tried isn't decoding it properly.....

That's what I cropped:



The main reason I try to avoid black bars is because they lock you to an aspect ratio, unless you have a player that'll zoom. A classic example is widescreen video on a 4:3 DVD so it has black bars top and bottom. It's fine on a 4:3 screen but on a 16:9 screen you end up with black bars down each side as well as top and bottom.

Someone else may have a better suggestion but your sample looked a bit washed out to me and after stretching the luminance range a bit I think it looks better. It's similar to adjusting the contrast and there's no reason why you couldn't do some of both if need be. I used YLevels (it's similar to Avisynth's Levels() function) to "stretch" the levels towards the dark end.

Before:


YLevels(16,1,255,0,255)


I generally include GreyScale() when encoding black and white to kill any chroma noise, although until very recently I was blissfully unaware that black and white film was often deliberately tinted and the same tint wasn't always used throughout a movie. Night scenes might have a blue tint or an outdoor scene might have a brown one etc. I have seen movies where the tint noticeably changes and in my ignorance I assumed it was due to crappy DVD/Bluray production, but it turns out tinting was a thing back in the day and preserving the movie in it's original form should technically include any tinting.

Film tinting

I'll probably keep adding GreyScale() when encoding anyway as I find it distracting if I notice the tint change..... although I experimented with it myself last time I encoded a B/W movie and I think I prefer a very mild brown. It looks a bit softer than black and white, although that may depend on the colour temperature of your display. Not that I've actually encoded with a tint, just experimented a little.

A brownish tint:


I don't know how the production process works exactly.... whether on it's way to DVD/Bluray the video is sometimes converted to RGB and back without expanding/reducing the levels correctly and it ends up dark or washed out. I've seen quite a bit of video with incorrect levels. For the PAL DVDs of the re-imagined BattleStar Galactica, the opening sequence is the same for each episode but there's a couple of episodes in season three (from memory) where the levels are wrong as they display differently. "Space" is grey instead of black. Expanding the levels from TV range to PC range fixes it and the opening sequence looks the same as it does for the rest of the episodes.
ie ColorYUV(Levels="TV->PC")
I've no idea how that sort of thing happens but it definitely does.
Very interesting indeed, thank you!

Yeah, I now see that little strip on the right, weird... I'll check to see if I can see it through the whole film or if it just happens to be in that snippet.

Very nice with the 'levels' change! Basically, that is what I did in a crude way with the contrast and brightness levels. Interesting about the 'tinting'. I sure didn't know about that. The brown (in this case) looks nice. Probably depending on the source, I think I personally kind of like the more stark, true B&W. But, there are likely cases where the brown would look nice.

I will definitely read about the Levels() funtion, thanks! I've gone back now and fixed (redid properly) the few captures that I screwed up before. Wow, what a difference; they sure do look better. I've been experimenting with different plugins, probably older, simpler ones, like UnFilter, MosquitoNR, and especially RemoveGrain for a couple of rougher older films. Worked really well. I figure with reading and experience, I should get a good idea as to what to use when and how much as time goes on (I hope...)

I just finished using BDRB to IVTC and convert to 1280x720 with just a tiny bit of sharpening on the older Noir film 'ESCAPE IN THE FOG' and it turned out great!

Oh yeah, I checked the Bogart film, and you are right! That little mirrored snippet is all through the film (Geez, some Videophile I am...) Glad you brought it to my attention; I'd better snip that out.



I love to keep learning

Last edited by Lathe; 25th October 2016 at 09:13. Reason: dying of old age until attachment is approved...
Lathe is offline   Reply With Quote
Reply


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 17:18.


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