Hello, I've been having an issue where reds on anime are turning orange after converting them. This has been ongoing for a while now and is still present in the latest release. Full details below.
Version used: rev 2022.11.28.1
debug log:
https://drive.google.com/file/d/1y32Y-P7...share_link
3 second clip for testing:
https://drive.google.com/file/d/1aAqh-9a...share_link
Before/After showing issue:
https://imgsli.com/MTQwNzkz
(Note: it looks like all colors are affected, but reds are most noticeable)
Settings / Steps (everything default except what's mentioned)
1. Open Hybrid, set input file (attached above) and output name
2. Set x264 > Base
a. AVC Profile/Level set to High10, 5.2
b. bitrate set to 9000
c. calculation precision: 10bit (using 8bit made no difference)
d. preset: fast
3. Set x264 > Frames
a. ref frames: 5
b. b-frames: 16
4. Set Filtering options
a. Auto deinterlace handling: TIVTC (Vapoursynth) (also tried Avisynth but same results)
b. FM Speed: slower
c. Deinterlacer: QTGMC (very slow)
5. Start queue
Any ideas what might be happening here? Appreciate the help.
Seems like the wrong color matrix is signaled.
I'll look into it tomorrow (on my way to bed now).
Input has bt470gb, but x264 wrongly signals bt709.
Seems like there's a bug in the auto adjusting of the color matrix in x264s VUI to the input.
-> try disabling "x264->VUI->Video Useability Information->Color Matrix->to input" and setting "x264->VUI->Video Useability Information->Color Matrix" to "bt470gb"
---
quick look at the source:
Hybrid doesn't find any color matrix info in the source
Code:
Video
Count : 383
Count of stream of this kind : 1
Kind of stream : Video
Kind of stream : Video
Stream identifier : 0
StreamOrder : 0
ID : 1
ID : 1
ID in the original source medium : 224
ID in the original source medium : 224 (0xE0)
Unique ID : 10247548616594038797
Format : MPEG Video
Format : MPEG Video
Commercial name : MPEG-2 Video
Format version : Version 2
Format profile : Main@Main
Format settings : CustomMatrix / BVOP
Format settings, BVOP : Yes
Format settings, BVOP : Yes
Format settings, Matrix : Custom
Format settings, Matrix : Custom
Format_Settings_Matrix_Data : 080808080808080808080808080808080808080808080808080808080909090808080808080808080909090A09090909090A0A0A0A0A0C0C0C0C0E0E0F111115 / 08080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808
Format settings, GOP : Variable
Internet media type : video/MPV
Codec ID : V_MPEG2
Codec ID/Info : MPEG 1 or 2 Video
Codec ID/Url : http://ffdshow-tryout.sourceforge.net/
Duration : 3370.000000
Duration : 3 s 370 ms
Duration : 3 s 370 ms
Duration : 3 s 370 ms
Duration : 00:00:03.370
Duration : 00:00:03.370
Bit rate mode : VBR
Bit rate mode : Variable
Bit rate : 5810673
Bit rate : 5 811 kb/s
Maximum bit rate : 9800000
Maximum bit rate : 9 800 kb/s
Width : 720
Width : 720 pixels
Height : 480
Height : 480 pixels
Sampled_Width : 720
Sampled_Height : 480
Pixel aspect ratio : 0.889
Display aspect ratio : 1.333
Display aspect ratio : 4:3
Frame rate mode : VFR
Frame rate mode : Variable
Frame rate : 10688.131
Frame rate : 10 688.131 FPS
Original frame rate : 23.976
Original frame rate : 23.976 (24000/1001) FPS
FrameRate_Original_Num : 24000
FrameRate_Original_Den : 1001
Frame count : 36019
Color space : YUV
Chroma subsampling : 4:2:0
Chroma subsampling : 4:2:0
Bit depth : 8
Bit depth : 8 bits
Scan type : Progressive
Scan type : Progressive
Scan order : 2:3 Pulldown
Scan order : 2:3 Pulldown
Compression mode : Lossy
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.002
Delay : 0
Delay : 00:00:00.000
Delay : 00:00:00.000
Delay, origin : Container
Delay, origin : Container
Delay_Original : 4393968
Delay_Original : 1 h 13 min
Delay_Original : 1 h 13 min 13 s 968 ms
Delay_Original : 1 h 13 min
Delay_Original : 01:13:13.968
Delay_Original : 01:13:13.968
Delay_Original_Settings : drop_frame_flag=0 / closed_gop=1 / broken_link=0
Delay_Original_DropFrame : No
Delay_Original_Source : Stream
Time code of first frame : 01:13:13:29
TimeCode_DropFrame : No
Time code source : Group of pictures header
GOP, Open/Closed : Open
GOP, Open/Closed : Open
GOP, Open/Closed of first frame : Closed
GOP, Open/Closed of first frame : Closed
Stream size : 1074546780
Stream size : 1.00 GiB
Stream size : 1 GiB
Stream size : 1.0 GiB
Stream size : 1.00 GiB
Stream size : 1.001 GiB
Language : en
Language : English
Language : English
Language : en
Language : eng
Language : en
Default : No
Default : No
Forced : No
Forced : No
Buffer size : 229376
colour_description_present : Yes
colour_description_present_Source : Container
Color range : Limited
colour_range_Source : Container
Original source medium : DVD-Video
intra_dc_precision : 10
and selected 'bt709' since input is MPEG-2 and TV scale. (Which is correct for normal MPEG-2, but since yours is from a DVD it's wrong.
)
Cu Selur
Wrote a workaround for it so that if the source was DVD (Mediainfo reports: 'Original source medium : DVD-Video'), Hybrid will guess 'bt470gb'.
Send you a link to a dev version via pm, which hopefully should fix the issue. (jobs need to be recreated)
Cu Selur
Thank you for the detailed breakdown of what's happening. I tested the new build you sent, and it seems to have resolved the issue. Colors are now matching the source after converting. Appreciate the help with this.