This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Color change on encoding
#11
For me Hybrid then uses the following command line:
ffmpeg -y -noautorotate -nostdin -threads 8 -i "G:\color_change_099.mkv" -map 0:0 -an -sn -color_primaries bt709 -color_trc bt709 -colorspace bt709 -color_range tv  -pix_fmt yuv420p -fps_mode passthrough -vcodec ffv1 -coder 0 -context 0 -g 1 -level 1 -metadata encoding_tool="Hybrid 2024.11.10.1" "J:\tmp\2024-11-11@14_31_30_9810\color_change_099_reencoded_1_2024-11-11@14_31_30_9810_01.mkv"
which looks fine to me.
Comparing those two I used:
# Imports
import vapoursynth as vs
# getting Vapoursynth core
import sys
import os
core = vs.core
# Import scripts folder
scriptPath = 'F:/Hybrid/64bit/vsscripts'
sys.path.insert(0, os.path.abspath(scriptPath))
# loading plugins
core.std.LoadPlugin(path="F:/Hybrid/64bit/vsfilters/Support/libhistogram.dll")
core.std.LoadPlugin(path="F:/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/LSMASHSource.dll")
# Import scripts
import validate
# Source: 'G:\color_change_099.mkv'
# Current color space: YUV420P8, bit depth: 8, resolution: 1920x1080, frame rate: 23.976fps, scanorder: progressive, yuv luminance scale: limited, matrix: 709, transfer: bt.709, primaries: bt.709, format: FFV1
# Loading G:\color_change_099.mkv using LWLibavSource
clip = core.lsmas.LWLibavSource(source="G:/color_change_099.mkv", format="YUV420P8", stream_index=0, cache=0, prefer_hw=0)
clip = core.hist.Classic(clip=clip)

reencode = core.lsmas.LWLibavSource(source="G:/color_change_099_reencoded.mkv", format="YUV420P8", stream_index=0, cache=0, prefer_hw=0)
reencode = core.hist.Classic(clip=reencode)


clip = core.std.Interleave([clip.text.Text("Org"),reencode.text.Text("Reencode")])

# output
clip.set_output()
to load the original and the reencode and then compare them and their histograms.

The output is identical. (also tried different histogram, but as expected they are identical)
Sorry, but I can't produce your problem and if I can't produce it, I can't fix it.
My guess is that, either you are doing something different or for some unknown reason whatever you used to compare these chose to convert them differently to rgb.

Cu Selur
Reply


Messages In This Thread
Color change on encoding - by Lipomo - 10.11.2024, 19:39
RE: Color change on encoding - by Selur - 10.11.2024, 19:51
RE: Color change on encoding - by Lipomo - 10.11.2024, 20:30
RE: Color change on encoding - by Selur - 10.11.2024, 20:46
RE: Color change on encoding - by Lipomo - 10.11.2024, 20:57
RE: Color change on encoding - by Lipomo - 11.11.2024, 00:09
RE: Color change on encoding - by Selur - 11.11.2024, 06:16
RE: Color change on encoding - by Lipomo - 11.11.2024, 06:24
RE: Color change on encoding - by Selur - 11.11.2024, 06:31
RE: Color change on encoding - by Selur - 11.11.2024, 06:32
RE: Color change on encoding - by Selur - 11.11.2024, 15:43
RE: Color change on encoding - by Lipomo - 11.11.2024, 16:27
RE: Color change on encoding - by Selur - 11.11.2024, 17:28
RE: Color change on encoding - by Selur - 11.11.2024, 17:30
RE: Color change on encoding - by Lipomo - 11.11.2024, 17:40
RE: Color change on encoding - by Selur - 11.11.2024, 17:46
RE: Color change on encoding - by Lipomo - 11.11.2024, 17:54
RE: Color change on encoding - by Selur - 11.11.2024, 18:23
RE: Color change on encoding - by Lipomo - 11.11.2024, 18:35
RE: Color change on encoding - by Selur - 11.11.2024, 18:50
RE: Color change on encoding - by Lipomo - 11.11.2024, 19:23
RE: Color change on encoding - by Selur - 11.11.2024, 19:32
RE: Color change on encoding - by Lipomo - 11.11.2024, 19:58
RE: Color change on encoding - by Lipomo - 12.11.2024, 22:37
RE: Color change on encoding - by Selur - 13.11.2024, 05:17
RE: Color change on encoding - by Selur - 13.11.2024, 15:46
RE: Color change on encoding - by Lipomo - 13.11.2024, 15:56
RE: Color change on encoding - by Selur - 13.11.2024, 16:14
RE: Color change on encoding - by Selur - 13.11.2024, 18:18
RE: Color change on encoding - by Lipomo - 14.11.2024, 22:09

Forum Jump:


Users browsing this thread: 5 Guest(s)