# Picamera2: jpg vs raw-dng

**URL:** <https://forums.kinograph.cc/t/picamera2-jpg-vs-raw-dng/2576>\
**Category:** Software\
**Created:** [August 10, 2023, 6:24pm UTC](https://forums.kinograph.cc/t/picamera2-jpg-vs-raw-dng/2576 "2023-08-10T18:24:36Z")\
**Posts on this page:** 1\
**Showing post:** 35

<div class="post-metadata">

**Author:** ![cpixip](https://forums.kinograph.cc/user_avatar/forums.kinograph.cc/cpixip/32/852_2.png) [@cpixip](https://forums.kinograph.cc/u/cpixip)\
**Post date:** [August 21, 2023, 5:02pm UTC](https://forums.kinograph.cc/t/picamera2-jpg-vs-raw-dng/2576/35 "2023-08-21T17:02:46Z")

</div>

ok… - I realized that _already the compression used to create the above linked video file_ eleminated some of the noise present in very dark areas of the RAW footage to a certain extent.

So, here’s another try, which should [show the noise and the horizontal banding slightly better](https://www.dropbox.com/scl/fi/fngny10mjgrhposzstm7n/SC_00000000.mp4?rlkey=s2imdl0bl13jsc0osdm6zsp9f&dl=0) (I have replaced the link above also with the higher bitrate version).

Now, I ran this footage through one of my degraining scripts for a quick and dirty test. And indeed, I have trouble to [notice any noise or banding in the result](https://www.dropbox.com/scl/fi/5bz7xvuvkqwn0eht1awn5/Timeline-3-degrained.mp4?rlkey=ku05xvj5d7ghd3se8mh1cpvhz&dl=0).

So, point 3. above, “ **employ noise reduction** ”, seems to me to be an integral component of the single RAW capturing approach. Given, one operates just at the verge of a cliff (sensor noise creeping into the image), but I think the approach is usable - with only a _single_ RAW capture.

[Note: this is really a quick-and-dirty test - the degraining script normally expects pre-stabilized imagery (which I did not bother to use) and a certain minimum image size (\>2k) (which I undercut with this footage). Nevertheless, I think in a real test with the full processing pipeline, the results will be similar.]

Here are two screen grabs out of the above linked videos. First the version with slight noise/banding:

 ![vlcsnap-2023-08-23-18h39m28s917](https://forums.kinograph.cc/uploads/default/original/2X/b/b23590e358b491997e90f7a17953cb83668df5ce.jpeg)

and here the same frame, degrained

 ![vlcsnap-2023-08-23-18h40m04s735](https://forums.kinograph.cc/uploads/default/original/2X/4/418358bfe45ef97ec2398a2aabecf9211d60df68.jpeg)

for direct comparision.

---

_[View the full topic](https://forums.kinograph.cc/t/picamera2-jpg-vs-raw-dng/2576)._
