使用SVT JPEG-XS进行编解码测试(ubuntu 22.04 64bit上测试通过)
编码1帧 1920x1080 yuv422p10bit的YUV数据
./SvtJpegxsEncApp -i 1920x1080_yuv422p10.yuv -b 1920x1080_yuv422p10.bin -w 1920 -h 1080 --input-depth 10 --colour-format yuv422 --bpp 3
-------------------------------------------
SVT [version]: SVT-JPEGXS Encoder Lib v0.9
SVT [build] : GCC 11.4.0 64 bit
LIB Build date: Feb 24 2025 17:39:27
-------------------------------------------
[asm level on system : up to avx512]
[asm level selected : up to avx512]
Max Quantization 18, Max Refinement: 29
Number of logical cores available: 0
Number of PPCS 10
slice pack input count 2
slice pack output count 2
-------------------------------------------
SVT [config]: Resolution [width x height] : 1920 x 1080
SVT [config]: EncoderBitDepth / EncoderColorFormat : 10 / PLANAR YUV422
SVT [config]: Slice height : 16
SVT [config]: Rate Control : 0:CBR per precinct
SVT [config]: Coding Type: Significance : Enabled
SVT [config]: Coding Type: Vertical Prediction : Disabled
SVT [config]: Coding Type: Signs handling : Disabled
SVT [config]: Vertical / Horizontal : 2 / 5
SVT [config]: Quantization method : Deadzone
SVT [config]: BPP / Compression Ratio : 3 / 6.67
SVT [config]: Profile Latency, Slice Threads : 11
Finish 1 frames, average 34.48[fps]
Latency: min 24.00[ms], max 24.00[ms], average 24.00[ms]
Packet Latency: min 24.00[ms], max 24.00[ms], average 24.00[ms]
Time: total encoding 0.03[s], total execution 0.03[s]
解码1帧JPEG-XS 1920x1080 yuv422p10bit的YUV数据
./SvtJpegxsDecApp -i 1920x1080_yuv422p10.bin -o 1920x1080_yuv422p10-decode.yuv
-------------------------------------------
SVT [version]: SVT-JPEGXS Decoder Lib v0.9
SVT [build] : GCC 11.4.0 64 bit
LIB Build date: Feb 24 2025 17:39:27
-------------------------------------------
[asm level on system : up to avx512]
[asm level selected : up to avx512]
[Threads : 0]
-------------------------------------------
SVT [config]: Resolution [width x height] : 1920 x 1080
SVT [config]: DecoderBitDepth / DecoderColorFormat : 10 / PLANAR YUV422
-------------------------------------------
1
Finish 1 frames, average 43.48[fps]
Latency: min 18.00[ms], max 18.00[ms], average 18.00[ms]
Time: total decoding 0.02[s], total execution 0.02[s]
YUVPlayer播放器播放
选择Size为1920x1080,Color为YUV422,由于YUVPlayer不支持YUV422p 10bit,所以需要使用ffmpeg把1920x1080_yuv422p10-decode.yuv转成YUV422p 8bit后再查看,参考命令:
ffmpeg -video_size 1920x1080 -pixel_format yuv422p10 -framerate 50 -i 1920x1080_yuv422p10-decode.yuv -s 1920x1080 -pix_fmt yuv422p 1920x1080_yuv422p8.yuv

JPEG-XS压缩率计算
假设1920x1080@50fps原始信号采用YUV422P 8bit,原始信号BPP=16bpp(即每个像素使用16bit),压缩率设定为10:1,则JPEG-XS编码后的BPP=1.6(即每个像素平均为1.6bit),原始无压缩信号码率为1920*1080*16*50=1658 Mbps,压缩后码率为1920*1080*1.6*50=165 Mbps,压缩率正好为10:1。
同理YUV422P 10bit 原始信号BPP=20bpp(即每个像素使用20bit),压缩率设定为10:1,则JPEG-XS编码后的BPP=2(即每个像素平均为2bit),压缩前码率=1920*1080*20*50=2073 Mbps,压缩后码率=1920*1080*2*50=207 Mbps。
&spm=1001.2101.3001.5002&articleId=145995065&d=1&t=3&u=956cffe0deaa4c0a86f52fd8cdf10a1d)
335

被折叠的 条评论
为什么被折叠?



