View Bug Details

IDProjectCategoryView StatusLast Update
0002176DCP-o-maticFeaturespublic2024-04-17 07:50
Reportercarl Assigned Tocarl  
PriorityhighSeveritymajorReproducibilityN/A
Status acknowledgedResolutionopen 
Summary0002176: Look at nvJPEG to make playback and encoding faster
Description

https://docs.nvidia.com/cuda/nvjpeg2000/userguide.html

TagsNo tags attached.
Branchnvidia
Estimated weeks required
Estimated work requiredMajor

Activities

carl

2022-05-19 16:14

administrator   ~0005032

Maybe try it on Linux and then think about the whole Windows build tool SNAFU.

carl

2022-05-23 22:45

administrator   ~0005037

Last edited: 2022-05-23 22:46

Some encoding hacks on the nvidia branch. Only seeing ~ 7fps on NVIDIA GeForce GTX 980 TI (with arrietty); maybe I'm doing something wrong.

Current showstopper is it doesn't seem to support custom precinct sizes; setting enable_custom_precincts to 1 gives a NVJPEG2K_STATUS_JPEG_NOT_SUPPORTED (I think I'm using 0.5.0 of nvjpeg2k).

It seems that there's more optimisation (pipelining) in the decoder than the encoder at the moment. Perhaps the encoder will get better.

carl

2022-05-24 00:21

administrator   ~0005038

Fixed a few things to make it actually work and the FPS is closer to 10.5.

carl

2022-05-24 00:33

administrator   ~0005039

Translating the PSNR to our bitrate still needs doing.

carl

2022-05-24 19:46

administrator   ~0005040

Last edited: 2022-05-24 19:46

Decoding seems not to work with 4K (nvjpeg2kStreamParse gives NVJPEG2K_STATUS_INTERNAL_ERROR)

carl

2022-05-24 21:35

administrator   ~0005041

2K playback seems OK, about 1 core being used on i7-7700 with GeForce GTX 980 Ti to play back a DCI flat DCP (BTaER).

carl

2022-05-24 21:38

administrator   ~0005042

Last edited: 2022-05-24 22:26

I put a message on nvidia's foruma about precinct sizes:

https://forums.developer.nvidia.com/t/nvjpeg2k-enable-custom-precincts/215482

carl

2022-05-24 22:10

administrator   ~0005043

Last edited: 2022-10-15 21:45

https://forums.developer.nvidia.com/t/nvjpeg2kstreamparse-error-on-4k-jpeg2000-stream/202551 says they're already on the 4K problem.
Fixed apparently in 0.6.0.

carl

2024-04-02 21:42

administrator   ~0006362

Got a sponsorship offer to implement this for playback on Linux.

Bug History

Date Modified Username Field Change
2022-01-30 22:45 carl New Bug
2022-01-30 22:45 carl Assigned To => carl
2022-01-30 22:45 carl Status new => acknowledged
2022-05-19 16:10 carl Summary Look at nvJPEG to make playback faster => Look at nvJPEG to make playback and encoding faster
2022-05-19 16:10 carl Estimated work required => Undecided
2022-05-19 16:14 carl Description Updated
2022-05-19 16:14 carl Note Added: 0005032
2022-05-23 22:45 carl Note Added: 0005037
2022-05-23 22:45 carl Note Edited: 0005037
2022-05-23 22:45 carl Note Edited: 0005037
2022-05-23 22:46 carl Note Edited: 0005037
2022-05-23 22:46 carl Note Edited: 0005037
2022-05-24 00:21 carl Note Added: 0005038
2022-05-24 00:33 carl Note Added: 0005039
2022-05-24 08:29 carl Branch => nvidia
2022-05-24 08:29 carl Estimated work required Undecided => Major
2022-05-24 19:46 carl Note Added: 0005040
2022-05-24 19:46 carl Note Edited: 0005040
2022-05-24 21:35 carl Note Added: 0005041
2022-05-24 21:38 carl Note Added: 0005042
2022-05-24 22:10 carl Note Added: 0005043
2022-05-24 22:26 carl Note Edited: 0005042
2022-05-24 22:26 carl Note Edited: 0005042
2022-09-10 21:44 carl Target Version 2.18.0 =>
2022-10-15 21:45 carl Note Edited: 0005043
2024-04-02 21:42 carl Priority normal => high
2024-04-02 21:42 carl Note Added: 0006362
2024-04-02 21:42 carl Severity minor => major