Forum archive - divx or xvid for black and white

http://www.supermediastore.com/



Forum Archive Home -> DVD Ripping -> divx or xvid for black and white



divx or xvid for black and white

craigarta posted 2009 Sep 09 17:44
I have some DVD's of the old Dark Shadows TV show and want to convert them so I don't touch the discs unless really needed to.

Which codec is better so I can play them in my divx capable player.

I know xvid has the greyscale option and I have never really used divx to much except here and there.

I tried FU but there are not enough options sp I'm trying XVID4PSP to see what I can do.



edDV posted 2009 Sep 09 18:03
Monochrome could be handled with 8 bit 4:0:0 MPeg2 @ 4Mb/s or lower with Y only. Key issue is to null the chroma.


jagabo posted 2009 Sep 09 18:46
Xvid. Single pass, Target Quantizer mode, Q=3, grayscale, Adaptive Quantization enabled. 1 or two B frames with packed bitstream if your player handles it.

I suspect Dark Shadows will have to be deinterlaced.



craigarta posted 2009 Sep 09 19:31
Ah I found those options and yes it is a NTSC source


jagabo posted 2009 Sep 09 20:27
Since Dark Shadows was shot on video it's probably noisy. Q=3 may give you a bitrate higher (bigger files) than you want.


craigarta posted 2009 Sep 09 22:41
Well here is a sample done at 2 B frames with a packed bitstream. Hope I did this correct

samp.avi



stiltman posted 2009 Sep 09 23:39
Not bad, but personally, I would up the bitrate a little


craigarta posted 2009 Sep 10 00:15
I did notice that but what is odd is I used a Q=3 and the whole episode came out at 114 MB.

Here is what GSpot says:

File Length Correct
DivX Style "packed bitstream" AVI
OpenDML (AVI v2.0)
Interleave: 1 vid frame (42 ms), preload=504
Audio frames: Aligned on interleaves
Video: 93.6 MB (81.63%)
Audio: 19.6 MB (17.13%)
AVI Overhead: 1.42 MB (1.24%)



manono posted 2009 Sep 10 01:48
If it were I, I'd crop and resize to a better resolution (640x480, maybe) so that people aren't fat. Also, the black levels in that short sample seem kind of faded-to-grey to me and I'd probably adjust them as well. The contrast may be low as well, but since that's a dark scene, it may not be like that in the rest of the episode.

However, unless you're going to have the player do a proper resize (and most standalone DVD/MPEG-4 players won't), you definitely want to resize it.



jagabo posted 2009 Sep 10 06:13
I agree the black levels are off. Judging by the fade to black at the end (and the clip overall) the luma should be pulled down by 14. Given the dark scene it's hard to say if the gain should be bumped up. With just ColorYUV(off_y=-14), left is the original, right is the adjusted:



With ColorYUV(gain_y=120, off_y=-27):



Note that off_y had to be increased because gain_y increased the black level as well as the contrast. And the black level isn't all the way down to IRE 0 (Y=16) because that shot's black level is a little lighter than the fade to black at the end.

That's an awful lot of gain so it's probably not right for the entire video. I would look through an entire episode and see what the brightest elements are and adjust gain for that.



craigarta posted 2009 Sep 10 08:05
OK so where are these settings in xvid4psp?
Most of the episode is set inside. There are 2 scences set inside the crypt

Here is what I have for avisynth

mport("C:\Program Files (x86)\Winnydows\XviD4PSP5\dlls\AviSynth\functions\AudioFunctions.avs")
import("C:\Program Files (x86)\Winnydows\XviD4PSP5\dlls\AviSynth\functions\VideoFunctions.avs")
loadplugin("C:\Program Files (x86)\Winnydows\XviD4PSP5\apps\DGMPGDec\DGDecode.dll")
loadplugin("C:\Program Files (x86)\Winnydows\XviD4PSP5\dlls\AviSynth\plugins\NicAudio.dll")
loadplugin("C:\Program Files (x86)\Winnydows\XviD4PSP5\dlls\AviSynth\plugins\TIVTC.dll")
loadplugin("C:\Program Files (x86)\Winnydows\XviD4PSP5\dlls\AviSynth\plugins\ColorMatrix.dll")

video = MPEG2Source("D:\DVD Rips\DISCONE\DISCONE.index\DISCONE_T03.d2v",cpu=0,info=3)
audio = NicAC3Source("D:\DVD Rips\DISCONE\DISCONE.index\DISCONE_T03 T80 2_0ch 192Kbps DELAY -40ms.ac3")
AudioDub(video, audio)

DelayAudio(-0.040)
AmplifydB(3.086)
AutoYV12()
ColorMatrix(hints=true,interlaced=true)
TFM(order=1).TDecimate(hybrid=1)

#plugin_files
LoadVirtualDubPlugin("C:\Program Files (x86)\Winnydows\XviD4PSP5\dlls\AviSynth\plugins\MSUDenoiser.vdf", "Denoiser", 0)
ConvertToRGB32()
Denoiser (50, "20.0")
ConvertToYV12()

Crop(12, 0, -4, -0)
Lanczos4Resize(640, 480)



manono posted 2009 Sep 10 08:35
ColorYUV is built into AviSynth so you can add jagabo's line in anywhere by just editing the .avs, perhaps right after the TFM/TDecimate line.

Is your AVI sample from the encode that followed that basic script? If so, that denoiser smoothed the heck out of it. The source isn't that smoothed, is it? To me that AVI sample looks pretty bad. When I first saw it I thought the DVD used a kinescope or perhaps a VHS tape as a source. Now I'm not so sure. The denoiser itself may also be responsible for ruining the black levels. Either that or those incorrect colorspace conversions. Is the source that 'grey'?

Do you have a pic from the untouched source of that same frame, perhaps after the IVTC and resize but with no other filtering? Just comment everything else out and open the .avs in VDub or whatever you use to take a picture:

Import("C:\Program Files (x86)\Winnydows\XviD4PSP5\dlls\AviSynth\functions\AudioFunctions.avs")
import("C:\Program Files (x86)\Winnydows\XviD4PSP5\dlls\AviSynth\functions\VideoFunctions.avs")
loadplugin("C:\Program Files (x86)\Winnydows\XviD4PSP5\apps\DGMPGDec\DGDecode.dll")
loadplugin("C:\Program Files (x86)\Winnydows\XviD4PSP5\dlls\AviSynth\plugins\NicAudio.dll")
loadplugin("C:\Program Files (x86)\Winnydows\XviD4PSP5\dlls\AviSynth\plugins\TIVTC.dll")
loadplugin("C:\Program Files (x86)\Winnydows\XviD4PSP5\dlls\AviSynth\plugins\ColorMatrix.dll")

video = MPEG2Source("D:\DVD Rips\DISCONE\DISCONE.index\DISCONE_T03.d2v",cpu=0,info=3)
audio = NicAC3Source("D:\DVD Rips\DISCONE\DISCONE.index\DISCONE_T03 T80 2_0ch 192Kbps DELAY -40ms.ac3")
AudioDub(video, audio)

DelayAudio(-0.040)
AmplifydB(3.086)
#AutoYV12()
#ColorMatrix(hints=true,interlaced=true)
TFM(order=1).TDecimate(hybrid=1)

#plugin_files
LoadVirtualDubPlugin("C:\Program Files (x86)\Winnydows\XviD4PSP5\dlls\AviSynth\plugins\MSUDenoiser.vdf", "Denoiser", 0)
#ConvertToRGB32()
#Denoiser (50, "20.0")
#ConvertToYV12()

Crop(12, 0, -4, -0)
Lanczos4Resize(640, 480)



craigarta posted 2009 Sep 10 19:26
Well here is a sample of the video with no filters what so ever but it is resized

test.avi



craigarta posted 2009 Sep 10 19:32
Oh and the pic




craigarta posted 2009 Sep 10 19:33
And here is the raw mpg


Sorry the file was to big :o


3.rar



jagabo posted 2009 Sep 10 21:26
The MPG file link is messed up.


craigarta posted 2009 Sep 10 23:57
OK I see what I did with my file


manono posted 2009 Sep 11 03:19
Thank you for the samples. I was completely wrong about the filtering being responsible for the ruined black levels. And the denoiser didn't do much damage at all, although I think I prefer it undenoised. But I guess that's a matter of taste since it's only lightly smoothing it.

You agree that the resize makes him look 'normal', don't you?



craigarta posted 2009 Sep 11 06:30
Yes it did make a huge difference and this explains why the show looked the way it did.

http://en.wikipedia.org/wiki/Dark_Shadows#Series_production

I was shocked to find out the show was taped back in 1966. I thought everyone used film back then



jagabo posted 2009 Sep 11 08:06
Dark Shadows was a soap opera. Most soaps are recorded on video. Time constraints don't allow for film processing. That's why I said you would probably have to deinterlace.


manono posted 2009 Sep 11 14:11
But it is film. It just needed an IVTC to return it to 23.976fps. That MPG sample is hard telecine. It wasn't shot on video. Or did you mean something else? Or did I overlook something ?


jagabo posted 2009 Sep 11 16:27
Maybe that clip is from the intro sequence? Or a traier?


craigarta posted 2009 Sep 11 19:52
No I just cut it out of a vob file and posted it up


craigarta posted 2009 Sep 11 21:48
Hey thank you all for the help. I got it encoding and the sample I did looks pretty good.
Of course ripping chapters was crazy on the first disc. So I said screw it, encode it all and cut them out later




Login/Register to our forum to be able to post here.








Replay Video Capture, if you can Watch it, you can Capture it ! and save it to your computer. More info or download trial!
About   Advertise   Forum Archive   RSS Feeds   Statistics