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.

 

Go Back   Doom9's Forum > Video Encoding > New and alternative video codecs

Reply
 
Thread Tools Search this Thread Display Modes
Old 20th February 2020, 15:58   #241  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 662
Code:
"Library:          libJPEGXL                  c++ [19 Feb 2020] {include PIK,FUIF}\n"
"                  brotli        1.0.7        c   [14 Feb 2020]\n"
"                  brunsli                    c++ [14 Feb 2020]\n"
"                  butteraugli JXL            c++ [19 Feb 2020]\n"
"                  highway     JXL            c++ [19 Feb 2020]\n"
"                  skcms                      c++ [07 Feb 2020]\n"
"                  libJPEG-turbo 2.0.5 8bit   c   [18 Feb 2020]\n"
"                  libsJPEG      0.1.0        c++ [07 Jan 2020]\n"
"                  lodePNG                    c++ [19 Feb 2020]\n"
"                  libPNG        1.6.38       c   [20 Apr 2019] {for APNG}\n"
"                  giflib        5.2.1        c   [24 Jun 2019]\n"
"                    zlib        1.2.11.1     c   [09 Jul 2019]\n"
"                  openexr       2.4.1        c++ [11 Feb 2020] {instead TIFF, Adobe DNG}\n"
"Compiled by Jamaika\n\n"
https://www.sendspace.com/file/05rlmw
Quote:
Originally Posted by LigH View Post
@Jamaika: You may use this photo I just shot (CC0), containing some office tools with more or less saturated colors, plenty digicam noise, 4000x3000 px, PNG developed from raw data.
OK, here is Jamaika test for new JpegXL
https://www.sendspace.com/file/dgrscv

Last edited by Jamaika; 20th February 2020 at 16:46.
Jamaika is offline   Reply With Quote
Old 20th February 2020, 19:20   #242  |  Link
kanaka
Registered User
 
Join Date: Jan 2019
Posts: 20
Quote:
Originally Posted by Jamaika View Post
OK, here is Jamaika test for new JpegXL
https://www.sendspace.com/file/dgrscv
Why do you use huffman coding instead arithmetic in jpegXT? If you want to create the smallest jpeg, try mozjpeg with proper quantization table.

I made comparission jpeg vs org for you https://imgsli.com/MTIzNjU
Quality 20 is not enough for this photo.

Last edited by kanaka; 20th February 2020 at 20:08.
kanaka is offline   Reply With Quote
Old 20th February 2020, 20:50   #243  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 662
I don't know all the possibilities. The JpegXT commands I use are the qualitative and size equivalent of the jpeg9d commands. What are your suggestions?
Quote:
Originally Posted by kanaka View Post
I made comparission jpeg vs org for you https://imgsli.com/MTIzNjU
fhx JPG(lossy) vs PNG(lossless)
Quote:
Originally Posted by kanaka View Post
Quality 20 is not enough for this photo.
Only for JPEG photos. It's better for other formats.

Last edited by Jamaika; 20th February 2020 at 21:40.
Jamaika is offline   Reply With Quote
Old 21st February 2020, 08:09   #244  |  Link
kanaka
Registered User
 
Join Date: Jan 2019
Posts: 20
Quote:
Originally Posted by Jamaika View Post
I don't know all the possibilities. The JpegXT commands I use are the qualitative and size equivalent of the jpeg9d commands. What are your suggestions?
For smaller file with the same quality, try:
Code:
jpegXT.exe -q 20 -a -qt 3 -s 1x1,2x2,2x2 images.ppm Stationery_jpegxt.jpg
kanaka is offline   Reply With Quote
Old 21st February 2020, 09:27   #245  |  Link
Jan Wassenberg
Registered User
 
Join Date: Jan 2020
Location: Switzerland
Posts: 19
Thanks for the new build, SmilingWolf!

Quote:
Originally Posted by Jamaika
I use fix lodePNG in JpegXL. Codec imports PNG RGBA.
Great, glad to hear it. We fixed both LodePNG and the JPEG XL call site based on your feedback. Thank you for reporting the issue!
Jan Wassenberg is offline   Reply With Quote
Old 21st February 2020, 21:11   #246  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 662
Hmm… Fix LodePNG works but new updates JpegXL doesn't work.
dec_ans.cc:212: Invalid huffman tree number 0, alphabet size 14
dec_ans.cc:257: Histo DecodeANSCodes
dec_context_map.cc:86: Return after error: DecodeHistograms(input, 1, ANS_MAX_ALPHA_SIZE, &code, &dummy_ctx_map)
dec_ans.cc:253: Return after error: DecodeContextMap(context_map, &num_histograms, br)
compressed_dc.cc:586: Return after error: DecodeHistograms( reader, kNumDCContexts, ANS_MAX_ALPHA_SIZE, &code, &context_map)
dec_frame.cc:561: Return after error: num_errors.load(std::memory_order_relaxed) == 0
dec_file.cc:171: Return after error: DecodeFrame( dparams, file, nullptr, &frame_dim, &multiframe, pool, &reader, aux_out, &io->frames.back(), nullptr)
Failed to decompress JPEGXL.

Introduced corrections to tests:
https://imgsli.com/MTIzODg
https://imgsli.com/MTIzODk
https://imgsli.com/MTIzOTA
https://imgsli.com/MTIzOTY
https://imgsli.com/MTIzOTc
https://imgsli.com/MTIzOTg

Quote:
Originally Posted by kanaka View Post
For smaller file with the same quality, try:
Code:
jpegXT.exe -q 20 -a -qt 3 -s 1x1,2x2,2x2 images.ppm Stationery_jpegxt.jpg
The disadvantage is the lack of support for arithmetic coding by the ffmpeg converter and programs based on it.

Conclusion:
Decoder Openjpeg 2.3.1 has error. Changes color matrix.

Last edited by Jamaika; 23rd February 2020 at 14:32.
Jamaika is offline   Reply With Quote
Old 22nd February 2020, 20:17   #247  |  Link
paul97
Registered User
 
Join Date: Mar 2018
Posts: 8
So what you can do to make it work?
paul97 is offline   Reply With Quote
Old 23rd February 2020, 11:14   #248  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 662
Maybe this time I was able to compile correctly. Three hours of research on how to correctly add new additions and it is already. This time I overlooked Brunsli news and GCC didn't communicate bugs.
https://www.sendspace.com/file/a4jsqm
Jamaika is offline   Reply With Quote
Old 1st March 2020, 11:24   #249  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 662
Fleeting antiquities:
Adobe has posted XMP SDK 6.0 2020 on github. Unfortunately, he doesn't want to point out errors. DNG SDK 1.5 2020 is recommended for the complete set.
The truth is that libRAW are already obsolete. Why convert RAW to (Jpeg2000) DNG since we already have JpegXL and HTjpeg2000.
https://github.com/adobe/XMP-Toolkit-SDK

New libRAW 0.19.5
Code:
Library encoder:  libRAW        0.19.5       [01 Dec 2019]\n"
                  libJPEG-turbo 2.0.5   8bit [18 Feb 2020]\n"
                  libjasper     2.0.14       [14 Jun 2018]\n"
                  zlib          1.2.11.1     [09 Jul 2019]\n"
                  libLCMS       2.10a        [08 Jan 2020]\n"
                  DNG SDK       1.5          [01 Apr 2019]\n"
                  XMP SDK       6.0          [18 Jan 2020]\n"
                  libexpat      2.2.9        [10 Feb 2020]\n"
Compiled by Jamaika\n\n"
https://www.sendspace.com/file/1zlcqv

Last edited by Jamaika; 1st March 2020 at 11:29.
Jamaika is offline   Reply With Quote
Old 8th March 2020, 08:13   #250  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 662
The most active who are not afraid of coronavirus.

Jpeg XL with new codec sjpeg and lodepng
New codec Jpeg LS (lossless)
New codec JVETVVC v8.0 with new 360lib 10.1 (photos only with function IntraPeriod=-1)

https://www.sendspace.com/file/99tf2w

Last edited by Jamaika; 8th March 2020 at 08:17.
Jamaika is offline   Reply With Quote
Old 22nd March 2020, 06:43   #251  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 662
New experimental libHEIF 1.6.2
https://github.com/strukturag/libheif/commits/all-rgb
https://github.com/strukturag/libde265
Jamaika is offline   Reply With Quote
Old 22nd March 2020, 23:23   #252  |  Link
MattGore
Registered User
 
Join Date: Mar 2020
Posts: 2
Hi, I'm not sure if this is the right place to ask, but why/how does

cjpegxl test.jpg test.jxl
djpegxl test.jxl test.png

produce a qualitatively superior PNG output compared to the JPEG input (less banding)?


Example:


(JPEG1)


(Resulting PNG)

This is now way closer to the original PNG:

(Lossless Original)
MattGore is offline   Reply With Quote
Old 23rd March 2020, 15:34   #253  |  Link
Jan Wassenberg
Registered User
 
Join Date: Jan 2020
Location: Switzerland
Posts: 19
Hi, glad you noticed That command line includes our loop filter.

Could also be interesting to try running cjpegxl -b (with fix_dc_staircase set to true in the code, we don't yet export that to the command line). That does higher quality dequantization than a normal JPEG decoder.
Jan Wassenberg is offline   Reply With Quote
Old 23rd March 2020, 18:30   #254  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 662
I tried many options for the JPEG XL codec. To tell the truth I don't see banding.

for %%f in ("%~dp1*.png") do cjpegXL_jxl.exe -q 100 -s 8 -C 1 %%f %%~nf.jxl
heifenc_081012bit_hdr.exe -q 100 -L -p preset=placebo -o 1200pxa-rgb24.heic 1200pxa-rgb24.png
heifenc_081012bit_hdr.exe -q 100 -L -p preset=placebo -o 1200pxa-rgb32.heic 1200pxa-rgb32.png
heifenc_081012bit_hdr.exe -q 100 -L -p preset=placebo -b 12 -o 1200pxa-rgb48.heic 1200pxa-rgb48.png
jpegXT.exe -q 90 -a -qt 3 -r -g 1.0 -s 1x1,1x1,1x1 1200pxa-rgb24.ppm 1200pxa-rgb24.jpg
jpegXT.exe -q 90 -a -qt 3 -r12 -g 1.0 -s 1x1,1x1,1x1 1200pxa-rgb48.ppm 1200pxa-rgb48.jpg
for %%f in ("%~dp1*.jpg") do cjpegXL_jxl.exe --jpeg_transcode --jpeg_quality=90 -s 8 -C 1 %%f 1_%%~nf.jxl
for %%f in ("%~dp1*.jxl") do djpegXL_jxl.exe --jpeg_quality=90 %%f 2_%%~nf.jpg
for %%f in ("%~dp1*.heic") do heifdec.exe %%f 3_%%~nf.jpg

Adding the 'jpeg_group' function complicates jpeg XT processing. Cannot import photos. Other problem. Why does the jpeg xl decoder decode jpeg files to 4:4:4 subsampling by default? JPEG standard is not then. For 'use_sjpeg' is subsampling jpeg 4:2:0.
file_io.h:68: Failed to open file for reading
codec.cc:136: Return after error: ReadFile(pathname, &encoded)
Failed to read image 1200pxa-rgb32.jpg.
cjxl.cc:640: Return after error: LoadAll(args, pool, &io, &decode_mps)

https://www.sendspace.com/file/x5f4ra

Last edited by Jamaika; 23rd March 2020 at 20:24.
Jamaika is offline   Reply With Quote
Old 25th March 2020, 00:49   #255  |  Link
MattGore
Registered User
 
Join Date: Mar 2020
Posts: 2
Quote:
Originally Posted by Jan Wassenberg View Post
Hi, glad you noticed That command line includes our loop filter.

Could also be interesting to try running cjpegxl -b (with fix_dc_staircase set to true in the code, we don't yet export that to the command line). That does higher quality dequantization than a normal JPEG decoder.
Nice, would it be possible the get those results directly from a JPEG file without needing the JXL intermediate step, i.e. programs would be able to ditch the bad "normal JPEG decoder" or is the loop filter to slow/inefficient?
MattGore is offline   Reply With Quote
Old Yesterday, 09:03   #256  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 662
I thought it was a dead project JpegXT.
Minor fixes for gcc. Unfortunately the "-ftree-vectorize -g0 -O3 -fPIC" functions still don't work so we will not connect the project to other projects.
https://github.com/thorfdbg/libjpeg/...e209701ef70f69
Jamaika is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 00:09.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.