Replies: 2 comments 3 replies
-
Do you have a specific example script that you could share that you feel is slow? I have in the past occasionally helped people get quite good performance saving DNG files, such as here: https://forums.raspberrypi.com/viewtopic.php?t=360334 (sorry, quite a long thread, but we were able to get some pretty blazing speeds using a thread pool and an NVMe drive). My recollection was that you have to avoid using packed or compressed formats. Of course it's extremely sensitive to the speed of whatever disk you're writing too - that Samsung NVMe was just awesome and blew away my SATA SSDs. I don't recall that I thought the speed of PiDNG was an issue, but it was a while ago. We do know the author of PiDNG, and I'm sure he would be amenable to improvements if we could identify any. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer, no problems actually with the installed version of PiDNG. It was just a remark about a potential problem with the Github version, there is one more SampleFormat tag and it's normal but the DNG file does not seem correct. I did not investigate further. Nothing urgent in any case. |
Beta Was this translation helpful? Give feedback.
-
I think it's essential for any photo device to offer proper raw/dng encoding. In Picamera2, DNG encoding is done by a third party PiDNG library. This has the merit of existing, but it's far from optimal, as the encoding is extremely slow, probably due to the use of Python, despite good use of numpy.
I think the Raspberry Foundation should take on the task of making this encoding more efficient.
I'd also like to point out that when using DNG encoding, do not use CSI2P compressed formats, as decompression before encoding is catastrophically slow!
Regards
Beta Was this translation helpful? Give feedback.
All reactions