I have a DVD I am scaling and the DVD is rec.601 if I am not mistaken. The problem here is that even if I flag the video as rec.601 in h.264 settings, it still plays back with incorrect colors. I believe the flag is being ignored by the player and it is deciding to choose the colorspace based on resolution.
I am attempting to adjust the colorspace with this and no clamping
It works, but I am noticing a nasty side effect I am not liking. It's adding in artifacts everywhere over the video.Code:ColorMatrix(hints=true, mode="rec.601->rec.709", clamp=0, threads=0)
https://slowpics.org/comparison/0f48a42e-c1b4-484b-9338-c628391d8535
This does not happen if I use RGB, but I need to keep it in YV12 for TV playback I believe. My encoder even tries to tell me to make it YV12 when adding to queue.
Code:ConvertToRGB(matrix="rec709")
Is there any alternative method of conversion out there via avisynth usage? Is there a problem if it is adding in artifacts like this?
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 9 of 9
Thread
-
Last edited by killerteengohan; 8th Sep 2019 at 08:31.
-
why clamp=0, wouldn't clamp=1 no be the saver way to go?
users currently on my ignore list: deadrats, Stears555 -
-
Your source video isn't interlaced, right? (in case it is, make sure to set interlaced=true)
users currently on my ignore list: deadrats, Stears555 -
Your telling me things I already know. Thanks, but what I am looking for is an answer to my original question.
-
Just wanted to make sure you didn't make some common mistake since you didn't share much info.
A single line which uses hints=true suggest you use MPEG2Source as Source filter, but it doesn't really say whether:
a. your source really is Rec.601
b. whether you it's interlaced, telecine, mixed, whatever..
-> No problem, I shut up and whish you luck finding the cause of the problem.
Cu Selurusers currently on my ignore list: deadrats, Stears555 -
I don't know what artifacts you are referring to exactly but maybe try dither tools:
Code:Dither_convert_8_to_16 () Dither_resize16 (720, 480, csp="YV24") # change to the desired dimensions Dither_convert_yuv_to_rgb (matrix="601", output="rgb48y", lsb_in=true) r = SelectEvery (3, 0) g = SelectEvery (3, 1) b = SelectEvery (3, 2) Dither_convert_rgb_to_yuv (r, g, b, matrix="709", lsb=false, mode=0, output="YV12")
==
Or HDRMatrix:
Code:Matrix(from=601, to=709)
Possibly the internal filters of AviSynth+ are also capable of producing better quality. I haven't evaluated this. I imagine something like:
Code:ConvertBits(16) ConvertToRGB(matrix="Rec601") ConvertToYV12(matrix="Rec709") ConvertBits(8, dither=0)
Note about screenshots: for display and often screenshot creation you convert from YUV to RGB. If you have YUV 601 and YUV 709 but use the very same conversion path to RGB they will look different. This doesn't necessarily mean your script or video encode are wrong because these usually don't involve that conversion. -
Gohan, I understand this is a an old thread, but last year you specifically advised me AGAINST converting SD DVD Rec. 601 to 709. You said it would mess up my colors. Now I understand that our conversation took place a year after this thread. I will thus assume that you experimented with this a bit between 2019 and 2020 and came to the conclusion that this conversion is not a good idea?
-
I did my little experiments comparing masters against vhs or dvd's with rec601<>709. 8 times out of ten it's a mess; colors don't look like in the master (i mean they'refar off) . Food for thought
*** DIGITIZING VHS / ANALOG VIDEOS SINCE 2001**** GEAR: JVC HR-S7700MS, TOSHIBA V733EF AND MORE
Similar Threads
-
Converting rec.709 to rec.601?
By killerteengohan in forum RestorationReplies: 22Last Post: 13th Jun 2020, 17:19 -
how to remove the exactly string colorMatrix(mode="Rec.601->Rec.709") ?
By marcorocchini in forum Newbie / General discussionsReplies: 16Last Post: 11th Aug 2019, 00:40 -
10-bit encodes with REC.709
By snadge in forum Newbie / General discussionsReplies: 2Last Post: 31st Jul 2019, 15:14 -
can x264vfw do change rec.601 --> rec.709?
By marcorocchini in forum Newbie / General discussionsReplies: 2Last Post: 9th Mar 2017, 16:06 -
Virtualdub rec.601 <--> rec.709 colormatrix conversion
By marcorocchini in forum Newbie / General discussionsReplies: 1Last Post: 18th Sep 2014, 20:06