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. |
26th November 2024, 18:47 | #41 | Link | |
Registered User
Join Date: Jun 2024
Location: South Africa
Posts: 234
|
Quote:
Code:
mkdir "out-jxl" for %%i in (*.png *.jpg *.jpeg *.gif) do ( cjxl "%%i" "out-jxl\%%~ni.jxl" --effort 7 ) Last edited by GeoffreyA; 26th November 2024 at 18:57. |
|
26th November 2024, 18:54 | #42 | Link | |
Registered User
Join Date: Apr 2024
Posts: 303
|
Quote:
What about Shutter Encoder? Did you test it out and see if it got the right colors? |
|
26th November 2024, 19:09 | #43 | Link | |
Registered User
Join Date: Nov 2015
Posts: 601
|
Quote:
If your browser supports jxl you can just save-as, but if it doesn't, then you will need to look at the page source and replace the png saying no jxl with the jxl version. |
|
26th November 2024, 19:15 | #44 | Link | |
Life's clearer in 4K UHD
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,293
|
Quote:
It produced an image file that MediaInfo could not read but VirtualDub2 was able to see the .jxl file and detect the following properties: -
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
|
|
26th November 2024, 20:14 | #46 | Link | |||
Registered User
Join Date: Sep 2007
Posts: 5,599
|
Quote:
Quote:
Quote:
|
|||
26th November 2024, 20:23 | #47 | Link |
Registered User
Join Date: Apr 2006
Posts: 153
|
You can transcode the PNGs with some other software that will remove the Gamma chunk, for example, IrfanView batch mode. Most common programs ignore it, but some go out of their way to respect it, such as JPEGli which will construct an ICC profile to emulate the useless gamma.
It's easy to see whether you get the 601 or 709 matrix looking at some face-like tones. 601 will be more red and 709 will be more green. Some video players guess by resolution or allow you to switch and preview (ffdshow). |
26th November 2024, 22:27 | #48 | Link | |
Registered User
Join Date: Apr 2024
Posts: 303
|
Quote:
Code:
-colorspace bt709 -color_trc bt709 -color_primaries bt709 -color_range tv Code:
-vf zscale=min=709,format=gbrp By the way, why not use rgb24 instead of gbrp? Last edited by jay123210599; 26th November 2024 at 23:00. |
|
27th November 2024, 00:18 | #49 | Link | |||
Registered User
Join Date: Sep 2007
Posts: 5,599
|
Quote:
Quote:
**See post #35 Quote:
|
|||
27th November 2024, 03:40 | #50 | Link | |
Registered User
Join Date: Apr 2024
Posts: 303
|
Quote:
Code:
-vf zscale=pin=2:p=2:tin=2:t=2:min=709,format=gbrp |
|
27th November 2024, 04:41 | #51 | Link | ||
Registered User
Join Date: Sep 2007
Posts: 5,599
|
Quote:
Quote:
"easier" or not depends on the person and preferences. For some people one method might be easier. Or not. Vdub2 is not "automatic" - requires you to select the decode format interpretation as 709 for non colorimetry tagged input, otherwise 601 is used for the RGB conversion The PNG compression step is lossless for either - but there will be slight differences in the 4:2:0 YUV to RGB conversion algorithms so they will not be exactly the same, but should be very close |
||
27th November 2024, 08:37 | #53 | Link |
Registered User
Join Date: Jun 2024
Location: South Africa
Posts: 234
|
While we're on the topic of zscale and colour spaces, is this the correct way of downscaling, from 1080p to 720p, in the linear domain:
Code:
-vf zscale=min=709:tin=709:pin=709:rin=limited:m=gbr:t=linear:p=709:dither=none,format=gbrpf32le,zscale=1280:-1:f=spline36,crop=%crop%,zscale=m=709:t=709:p=709:r=limited:dither=error_diffusion,format=yuv420p |
27th November 2024, 09:18 | #54 | Link | |
Registered User
Join Date: Aug 2024
Posts: 326
|
Quote:
|
|
28th November 2024, 12:10 | #56 | Link | |
Registered User
Join Date: Jun 2024
Location: South Africa
Posts: 234
|
Quote:
The following stays at YUV420 throughout the process, only raising the bit depth to 16 and later dithering down. Code:
-vf zscale=min=709:tin=709:pin=709:rin=limited:m=709:t=linear:p=709:r=limited:dither=none,format=yuv420p16le, zscale=1280:-1:f=spline36,crop=%crop%, zscale=m=709:t=709:p=709:r=limited:dither=error_diffusion,format=yuv420p |
|
28th November 2024, 15:39 | #57 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,599
|
Quote:
The results are slightly different with linear Y scaling path , instead of linear scaling RGB path - The linear Y downscaling results are more saturated than they should be. Chroma Up sampling and then down sampling can be lossless if nearest neighbor algorithm is used - but this factor is usually negligible because linear scaling is usually used and more important in the downscaling direction anyways Here is one of the prototypical tests used for gamma scaling error "Calliphora_sp" . It has been cropped 1px on each side to 1292x1928, converted to a YUV420P8 "source" for testing. The goal is to downscale to half width and half height. The same command lines were used as the ones you posted (with width and height adjusted to the goal ) https://www.mediafire.com/file/ef77j...sting.zip/file The zscale linear RGB path result closely matches what industry standard scalers do (e.g. NukeX). The explanation I've got from colorists is that gamma is a RGB defined concept, and it's not correct to perform in YUV |
|
28th November 2024, 17:51 | #59 | Link | |
Registered User
Join Date: Aug 2024
Posts: 326
|
Quote:
Last edited by Z2697; 28th November 2024 at 18:00. |
|
28th November 2024, 18:06 | #60 | Link | ||
Registered User
Join Date: Jun 2024
Location: South Africa
Posts: 234
|
Quote:
Apart from the increase in saturation, which is visibly off, the linear-Y path seems slightly sharper: at least on the hairs. The brightness on the eyes has also gone up. This is a source that I am going to keep and experiment with. Earlier today, when I put together the revised command, I tested a shot from Mulholland Drive and all looked identical, even scaling in gamma light. Quote:
|
||
Tags |
colorspace, ffmpeg, ffmpeg gui, image-quality |
Thread Tools | Search this Thread |
Display Modes | |
|
|