User User name Password  
   
Saturday 26.7.2025 / 02:40
Search AfterDawn Forums:        In English   Suomeksi   På svenska
afterdawn.com > forums > digital video > copy dvd to dvdr > transcoded results are brighter/darker
Show topics
 
Forums
Forums
Transcoded results are brighter/darker
  Jump to:
 
Posted Message
jlz900
Newbie
_
12. December 2004 @ 17:52 _ Link to this message    Send private message to this user   
I've used DVDShrink 3.2 on many DVDs and Rebuilder/CCE 2.5 Basic for a few DVDs and I just now notice the brightness/color of the resulting compressed video is slightly different than the original. Rebuilder/CCE produces slightly darker with more natural looking color -- like using the "Levels adjustment" feature in Photoshop. DVDShrink produces sometimes slightly lighter and sometimes slightly darker results. I did this comparison by opening the VOB files in Media Player Classic and looking at them side by side. Has anyone noticed this difference and is there an explanation?
Advertisement
_
__
jlz900
Newbie
_
17. December 2004 @ 22:02 _ Link to this message    Send private message to this user   
^
AfterDawn Addict
_
20. December 2004 @ 12:31 _ Link to this message    Send private message to this user   
I can only guess that different software could produce different results. The problem comes with how each deals with compression.

Gif by Phantom69


jlz900
Newbie
_
20. December 2004 @ 15:21 _ Link to this message    Send private message to this user   
Both programs compress well, but they seem to change the brightness in doing so. I understand how the compressed result would have artifacts and less detail, but not why it should be brighter or darker.
AfterDawn Addict
_
20. December 2004 @ 15:44 _ Link to this message    Send private message to this user   
I really do not know, I guess it is just one of those things. In burning nothing is definite!

Gif by Phantom69


Staff Member

2 product reviews
_
21. December 2004 @ 06:22 _ Link to this message    Send private message to this user   
In DVD-RB's case I think it's an AviSynth issue. I haven't gotten a chance to do any backups since I learned about this, but apparently there's an issue with the color handling in the MPEG decoders for Avisynth that results in the difference you're seeing. You can solve it by using an Avisynth plugin called ColorMatrix which you can download from here:
http://www.geocities.com/wilbertdijkhof/ColorMatrix_v15.zip

The zip file will have a DLL in it that you need to extract into AviSynth's plugins directory (the default directory for this is C:\Program Files\Avisynth 2.5\plugins) and then you would have to open DVD-RB's filter editor and add this line:
ColorMatrix()

That should fix any color differences, but as I said I haven't tested this myself.

Rich Fiscus
@Vurbal on Twitter
AfterDawn Staff Writer
jlz900
Newbie
_
22. December 2004 @ 00:50 _ Link to this message    Send private message to this user   
Thanks very much. It works well, the colors are the same as the original now.

This thread linked below says I must use deinterlacing with ColorMatrix, any idea why?

http://forum.doom9.org/showthread.php?s=47e63a467b991130a4ca865df3ada364&threadid=82217&perpage=20&pagenumber=1

Staff Member

2 product reviews
_
22. December 2004 @ 03:39 _ Link to this message    Send private message to this user   
It has to do with how color is stored for MPEG video. The color information is actually only on every other line (the color information on one line is actually a combination of the information for 2 lines) and ColorMatrix assumes that the lines that share color information are right next to each other. With interlaced video the lines aren't next to each other (each field has it's own information) so it won't work properly on interlaced video. Keep in mind that most sources aren't actually encoded interlaced since they come from film sources.

Even if you do have interlaced video you don't necessarily have to deinterlace the final product. You can separate the fields (put all lines from field 1 together and all lines from field 2 together) before running the filter and then weave them together after the filter is run. There are many ways to do this, but this is the way I'd do it.

1. Copy these lines into a text file:

#Functions For Processing Interlaced Video
#By stickboy (James D. Lin)#
# SetParity
function SetParity(clip c, bool parity)
{
return parity ? c.AssumeTFF() : c.AssumeBFF()
}
# UnfoldFieldsVertical
function UnfoldFieldsVertical(clip c, bool "flip")
{
flip = default(flip, false)
oldParity = c.GetParity()
c = c.AssumeTFF().SeparateFields().AssumeFrameBased()
top = c.SelectEven()
bottom = c.SelectOdd()
c = StackVertical(top, flip ? bottom.FlipVertical()
\ : bottom)
return c.SetParity(oldParity)
}
# FoldFieldsVertical
function FoldFieldsVertical(clip c, bool "flip")
{
assert(c.Height() % 2 == 0, "FoldFieldsVertical: unexpected frame height")
flip = default(flip, false)
oldParity = c.GetParity()
originalHeight = c.Height() / 2
evens = c.Crop(0, 0, c.Width(), originalHeight)
odds = c.Crop(0, originalHeight, c.Width(), originalHeight)
odds = flip ? odds.FlipVertical() : odds
c = Interleave(evens, odds).AssumeFieldBased().AssumeTFF().Weave()
return c.SetParity(oldParity)
}


2. Save the text file (in the AviSynth plugins directory) as whatever.avsi Make sure you use the AVSI extension so it will be loaded automatically.

3. Add this line before ColorMatrix():

UnfoldFieldsVertical()

4. Add this line after ColorMatrix():

FoldFieldsVertical()

These functions will separate and then weave the fields, allowing ColorMatrix to have progressive video to work on without destructively deinterlacing. Make sure you don't do this on progressive video or the colors won't be corrected properly.

Rich Fiscus
@Vurbal on Twitter
AfterDawn Staff Writer

This message has been edited since posting. Last time this message was edited on 22. December 2004 @ 03:40

jlz900
Newbie
_
22. December 2004 @ 14:38 _ Link to this message    Send private message to this user   
Thanks again. I think I'm all set up to create the highest quality DVD5s currently possible. The video it creates now is just a hair darker than the original which can be observed only if you study it very closely. Unfortunately, the ColorMatrix filter takes a very long time to do. There are alternate versions of ColorMatrix in that thread I linked which may be faster.

Why do you suppose ColorMatrix isn't included in the DVD-RB guide? Do most users not have this issue or they do not notice the color difference?
Staff Member

2 product reviews
_
22. December 2004 @ 15:45 _ Link to this message    Send private message to this user   
It's not included in the guide because it didn't exist (or I didn't know about it) when it was written. Updating my guides is on my (long) list of things to do. Likewise, I'm not sure if jdobbs has noticed it or else he would have probably added it as at least an option in the standard AVS filters for DVD-RB. I should probably ask about that. I'd also say that most users don't even notice.

Rich Fiscus
@Vurbal on Twitter
AfterDawn Staff Writer
jlz900
Newbie
_
26. December 2004 @ 20:24 _ Link to this message    Send private message to this user   
I got a brightness difference again between the compressed and original, but the problem seems to be the software I'm using. For example, if I preview with two windows of Media Player Classic next to each other, it shows that the compressed video is brighter than original. If I preview with two DVDShrink windows, it tells me the opposite. In PowerDVD they seem to be the same, but I cannot see them both side by side.

I'd like to see them both side by side if possible. Is there some software that can do this and play them simultaneously?

This message has been edited since posting. Last time this message was edited on 26. December 2004 @ 21:08

Staff Member

2 product reviews
_
27. December 2004 @ 06:15 _ Link to this message    Send private message to this user   
You could create an Avisynth script that would do it. Start by opening each of the discs in DGIndex (the version of DVD2AVI that comes with DGDecode) and create projects for them. Then make a text file (named whatever.avs) that has these lines:
Quote:
Original = Mpeg2Source("C:\Project1.d2v")
#Replace C:\Project1.d2v with the actual path to the project file for the original
Backup = Mpeg2Source("C:\Project2.d2v")
#Replace C:\Project1.d2v with the actual path to the project file for the backup
StackHorizontal(Original,Backup)
The AVS file will play in most media players (I prefer Media Player Classic) and it will show you the original on the left and the backup on the right. You could also use StackVertical(Original,Backup) instead of StackHorizontal(Original,Backup) to see the original on top of the backup instead of beside it.

Rich Fiscus
@Vurbal on Twitter
AfterDawn Staff Writer

This message has been edited since posting. Last time this message was edited on 27. December 2004 @ 06:16

jlz900
Newbie
_
27. December 2004 @ 13:30 _ Link to this message    Send private message to this user   
It works great, thanks very much. So the brightness is the same, and only in a few frames is a color difference barely noticeable. I can also now see the incredible job that CCE does.

In 5 hours I produce a near-perfect replica (two passes, with ColorMatrix). It doesn't get much better than this.

This message has been edited since posting. Last time this message was edited on 27. December 2004 @ 20:50

Advertisement
_
__
 
_
Staff Member

2 product reviews
_
29. December 2004 @ 14:47 _ Link to this message    Send private message to this user   
Good to hear.

Rich Fiscus
@Vurbal on Twitter
AfterDawn Staff Writer
afterdawn.com > forums > digital video > copy dvd to dvdr > transcoded results are brighter/darker
 

Digital video: AfterDawn.com | AfterDawn Forums
Music: MP3Lizard.com
Gaming: Blasteroids.com | Blasteroids Forums | Compare game prices
Software: Software downloads
Blogs: User profile pages
RSS feeds: AfterDawn.com News | Software updates | AfterDawn Forums
International: AfterDawn in Finnish | AfterDawn in Swedish | AfterDawn in Norwegian | download.fi
Navigate: Search | Site map
About us: About AfterDawn Ltd | Advertise on our sites | Rules, Restrictions, Legal disclaimer & Privacy policy
Contact us: Send feedback | Contact our media sales team
 
  © 1999-2025 by AfterDawn Ltd.

  IDG TechNetwork