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. |
14th September 2008, 08:45 | #1 | Link |
likes to tinker
Join Date: Jan 2004
Location: girt by sea
Posts: 635
|
Colourspace conversion ? 1080i -> 576i DVD
Think I've been missing something .
Have used .TS -> VideoReDo QuickStreamFix -> DGindex -> Avisynth -> HC eg Code:
MPEG2Source("c:\test\test.d2v",cpu=6) Code:
ColorMatrix(mode="Rec.709->Rec.601") Last edited by halsboss; 14th September 2008 at 14:03. Reason: added step "VideoReDo QuickStreamFix" |
14th September 2008, 12:38 | #2 | Link |
brainless
Join Date: Mar 2003
Location: Germany
Posts: 3,653
|
depends on the colour mode of your source video 709 or 601
and the ability of your mpeg2-encoder to switch between 709 and 601. dgdecode will tell you which mode your source video was encoded in.
__________________
Don't forget the 'c'! Don't PM me for technical support, please. |
14th September 2008, 14:02 | #3 | Link |
likes to tinker
Join Date: Jan 2004
Location: girt by sea
Posts: 635
|
Thanks! DGIndex says "BT709*" and it's HC023 used to encode ... if PAL DVD is BT601 then I suppose I should be using ColorMatrix(mode="Rec.709->Rec.601") ?
This is the code in question:- Code:
MPEG2Source("c:\test\test.d2v",cpu=6) # 1080i PAL -> DVD Converttoyv12(interlaced=true) Global NewHeight=576 Global NewWidth=704 SeparateFields() Shift = (GetParity() ? -0.25 : 0.25) * (Height()/Float(NewHeight/2)-1.0) E = SelectEven().Spline36resize(NewWidth, NewHeight/2, 0, Shift) O = SelectOdd( ).Spline36resize(NewWidth, NewHeight/2, 0, -Shift) Ec = SelectEven().Spline36Resize(NewWidth, NewHeight/2, 0, 2*Shift) Oc = SelectOdd( ).Spline36Resize(NewWidth, NewHeight/2, 0, -2*shift) #E = SelectEven().Lanczos4resize(NewWidth, NewHeight/2, 0, Shift) #O = SelectOdd( ).Lanczos4resize(NewWidth, NewHeight/2, 0, -Shift) #Ec = SelectEven().Lanczos4resize(NewWidth, NewHeight/2, 0, 2*Shift) #Oc = SelectOdd( ).Lanczos4resize(NewWidth, NewHeight/2, 0, -2*shift) Interleave(E, O) IsYV12() ? MergeChroma(Interleave(Ec, Oc)) : Last Weave() |
14th September 2008, 14:09 | #4 | Link | |
likes to tinker
Join Date: Jan 2004
Location: girt by sea
Posts: 635
|
HC's manual says
Quote:
Here http://forum.doom9.org/showthread.ph...81#post1058881 jdobbs says default DVD spec is bt709 ... Well well, I just checked a couple of recordings with DGindex and PAL HDTV 1080i (after a VideoReDo Quickstreamfix) comes up as "BT.709*" and PAL SD 576i comes up as "BT470-2 B,G*" ... Till now with SD I've been simply using .TS -> VideoReDo QuickStreamFix -> straight into a DVD author program without any recoding/tinkering and it authors/records/plays DVD OK. Wonder what it's doing ? With HDTV the steps were .TS -> VideoReDo QuickStreamFix -> DGindex -> Avisynth to SD size -> HC -> author to DVD so I wonder what colourspace it ended up as on the DVD (and whether it's right). EDIT: http://forum.doom9.org/showthread.ph...92#post1060292 says "DGIndex won't show Rec.601 unless there is a sequence_display_extension() calling it out. If it is missing, DGIndex assumes Rec.709 (as it should)." so I'm not sure if that's of much help then... I'm not sure if there's any rec.601 or not Last edited by halsboss; 14th September 2008 at 15:10. |
|
14th September 2008, 14:37 | #5 | Link | ||||
likes to tinker
Join Date: Jan 2004
Location: girt by sea
Posts: 635
|
http://www.dvddemystified.com/dvdfaq.html#1.1 says
Quote:
http://www.glennchan.info/articles/t...olor-space.htm has a nice ""HD" versus "SD" color space" roundup too, which says Quote:
Interestingly, http://forum.doom9.org/showthread.ph...257#post807257 says Quote:
Quote:
Last edited by halsboss; 14th September 2008 at 15:40. |
||||
15th September 2008, 11:15 | #6 | Link |
Registered User
Join Date: Mar 2006
Posts: 1,049
|
halsboss - in fact You can have on DVD mpeg with BT.709 so transcoding of colorspaces is not mandatory.
btw 470 BG it is BT601 (norm 470 is for analog signal, norms 601 and 656 for digital representation of the 470) |
24th September 2008, 11:59 | #7 | Link | |
likes to tinker
Join Date: Jan 2004
Location: girt by sea
Posts: 635
|
OK. Pandy, how do I tell HCEnc this and ensure it does the right thing with producing the .mpv ? If I have an SD clip and an HDTV clip to combine into a 2-title DVD I guess I should settle on a standard ...
Unless someone says otherwise, assuming (a) AU PAL HDTV is Rec.709 and (b) AU PAL SD is Rec.470-2B,G (which is really Rec.601) (c) that HCEnc is my encoder and (d) PAL DVD is Rec.601, then I suppose I'll settle for this when processing HDTV Quote:
Last edited by halsboss; 27th September 2008 at 10:19. Reason: removed d2v= as it didn't work (something about #frames mismatch), replaced by info=3 and hints=true |
|
28th September 2008, 02:27 | #8 | Link | |
likes to tinker
Join Date: Jan 2004
Location: girt by sea
Posts: 635
|
Well, so much for that theory... the combination of HC with the colorspace plugin yields "odd" reds ... if I leave that off, it seems fine. Oh well, less cpu cycles used anyway. So, the result seem to be for Aus HDTV->DVD :-
Assuming (a) AU PAL HDTV is Rec.709 and (b) AU PAL SD is Rec.470-2B,G (which is really Rec.601) (c) that HCEnc is my encoder, then I suppose I'll settle for this when processing AU HDTV Quote:
|
|
28th September 2008, 17:23 | #9 | Link | |
Moderator
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
|
Quote:
If i understand it correctly, HC doesn't write the colorimetry parameter in the header. Meaning that it should be treated as Rec.601. Yes, first we thought it should be treated as Rec.709 (like jdobbs stated at that time), based on some outdated mpeg-2 specs. Based on the latest mpeg-2 specs, and what players do, we changed our opinion. I'm sure you can find those discussions in the AviSynth forum, or wherever they took place. What does info=1 report on the source? Code:
MPEG2Source("Input.d2v",info=1,ipp=true,cpu=4) |
|
29th September 2008, 02:37 | #10 | Link |
likes to tinker
Join Date: Jan 2004
Location: girt by sea
Posts: 635
|
just deleted the source, just my luck. Will capture another -> VideoRedo -> Avisynth -> author DVD -> Nero burn -> Play with standard Sony Aus DVD player. Not sure why but the reds seemed "pinker". Beats me.
|
29th September 2008, 08:52 | #11 | Link | ||
Registered User
Join Date: Mar 2006
Posts: 1,049
|
Quote:
Quote:
If i have MPEG-2 with valid Sequence Display Extension then DVD player must fulfill MPEG-2 standard - if from unknown reason DVD player is not capable to properly decode and display valid MPEG-2 stream with valid Sequence Display Extension then such DVD player is not compatible with MPEG-2 standard |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|