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. |
11th January 2017, 18:05 | #1 | Link |
Registered User
Join Date: Dec 2016
Posts: 4
|
Encoding Rec.601 and Rec.709 footage
Hi there
I would like to combine Rec.601 and Rec.709 footage to be encoded at Rec.709 in HD using x264 I've used DGIndexNV to decode the HD footage and DGIndex to decode the SD footage. I'm not sure if I am understanding Rec.601 and Rec.709 correctly. Is it a type of color encoding? So once I have decoded the footage according to its coding (Rec.601/Rec.709) then if I try to encode it to HD using the x264 encoder then it will encode it at Rec.709, but is there anything I should add to my script for the DVD footage? Or does it not matter after decoding the footage? By decoding the footage, I mean indexing with DGIndex: DGSource("C:\BD.dgi") Mpeg2Source("C:\DVD.d2v") Please help, I'm a bit confused. A bit of clarity would go a long way. Thanks |
11th January 2017, 19:41 | #3 | Link |
Registered User
Join Date: Dec 2016
Posts: 4
|
Thanks for the response
What will happen if I do not apply ColorMatrix to the Rec.601 footage, will the encoder be unable to process it/crash? Also if I want to match the color grading of the SD footage with that of the HD footage then which filter should I use? Thanks |
11th January 2017, 20:07 | #4 | Link | |
Registered User
Join Date: Dec 2002
Posts: 5,565
|
Quote:
That's what my example does. |
|
11th January 2017, 20:35 | #5 | Link |
Registered User
Join Date: Dec 2016
Posts: 4
|
Sorry I should've phrased it better. Yes the example puts them in the same color space, but the SD footage needs to actually be adjusted/tweaked to match the color grading of the HD footage. Like maybe some kind of autocorrecting filter that will compare and match the colors to the HD footage?
|
11th January 2017, 21:10 | #6 | Link | |
Registered User
Join Date: Mar 2011
Posts: 4,829
|
Quote:
When encoding YUV it's normally just decoded & re-encoded as YUV so the colorimetry doesn't change and you don't have to think about it, except when upscaling or downscaling, as HD is generally converted to RGB on playback using rec.709 and for SD it's rec.601. You can also use the colormatrix plugin to manually convert the colours like this if it's easier. Downscaling: ColorMatrix(mode="Rec.709->Rec.601", clamp=0) Upscaling: ColorMatrix(mode="Rec.601->Rec.709", clamp=0) I don't know if there's any plugins for automatically adjusting the colours, but for doing it manually I find the Avisynth RGBAdjust function easiest. ConvertToRGB() RGBAdjust(1.0,1.0,1.0) ConvertToYV12() ColorYUV() and Tweak() can both adjust colours without the need to convert to RGB and back but I can't think in YUV. |
|
11th January 2017, 21:50 | #7 | Link | |
Registered User
Join Date: Dec 2016
Posts: 4
|
Thank you so much for that explanation
Quote:
|
|
Tags |
avisynth, colorimetry, rec.601, rec.709, x264 |
Thread Tools | Search this Thread |
Display Modes | |
|
|