Nikon ZR 終於可以放心拍 RED RAW 了
The Nikon ZR can finally shoot RED RAW
without worrying about space
Nikon ZR 用 R3D NE 拍,影像才能使用 RED 獨家的 Log3G10 曲線,那個顏色是我買它的原因。但一分鐘 11 GB 的檔案讓我每次拷卡都在算硬碟。我花了一段時間把 R3D 的格式研究清楚,然後寫了 ZCompr:把 N-RAW(.NEV)和 R3D NE(.R3D)縮小 25% 到 65%,出來的檔案仍然是 RAW,除了影像重新壓縮以外,容器、metadata、時間碼、音訊都與原檔一樣,在 DaVinci Resolve 的工作流完全沒變,但空間卻省下來了,你也可以試看看。
Shooting R3D NE on the Nikon ZR is the only way to get RED's own Log3G10 curve, and that colour is why I bought the camera. But at 11 GB a minute, every card offload turned into drive arithmetic. I spent a while taking the R3D format apart, then wrote ZCompr: it shrinks N-RAW (.NEV) and R3D NE (.R3D) by 25 to 65 percent, and what comes out is still RAW. Apart from the image data being re-compressed, the container, metadata, timecode and audio are identical to the original. Nothing changes in the DaVinci Resolve workflow; you just get the space back. Give it a try.

R3D NE:每分鐘 11 GB 的巨獸
R3D NE: the 11-GB-a-minute monster
買 ZR 之前我知道 RAW 很大,買了之後才知道有多大。
I knew RAW was big before I bought the ZR. I found out how big afterwards.
6K(6060 × 3410)、23.976 fps 的 R3D NE。每一格都是 7,750,656 bytes,不多不少,因為它是固定碼率。
6K (6060 × 3410) R3D NE at 23.976 fps. Every frame is exactly 7,750,656 bytes, no more, no less, because the format is constant bitrate.
1 分鐘 = 1437 影格,大約是 11.14 GB。
One minute = 1437 frames, about 11.14 GB.
1 小時的總量。除了煩惱要帶幾張卡,隨時擔心接下來會不會拍到卡不夠。
One hour's worth. Beyond working out how many cards to bring, you are forever worrying whether the next shot will run out of card.
網路上常見的解法是先基礎調色、轉成 log 曲線的 ProRes 或 H.265。檔案是小了,但白平衡、ISO、曝光也跟著定案,RED 獨有的 Log3G10 調整空間就沒了,等於為了省硬碟把當初選 R3D NE 的理由丟掉。另一個據說原廠不推薦的做法是拍 N-RAW,它有容量一半的選項,但在 DaVinci Resolve 看起來雜訊變大了(也多了自動鏡頭變形校正)。我覺得這樣就失去買 ZR 的意義了,於是我開始研究:R3D NE 裡面到底裝了什麼,有沒有辦法在不離開 RAW 的前提下讓它變小。
The usual answer online is to do a base grade and transcode to log ProRes or H.265. The files shrink, but white balance, ISO and exposure get locked in, and the room RED's Log3G10 gives you is gone. You end up throwing away the reason you picked R3D NE, to save drive space. The other option, which word has it Nikon doesn't recommend, is to shoot N-RAW with its half-size setting, but in DaVinci Resolve it looks noisier (and picks up automatic lens distortion correction). To me that defeats the point of buying a ZR. So I started digging: what is actually inside an R3D NE file, and is there a way to make it smaller without leaving RAW.
關於影片壓縮
Compression basics
做這個工具之前,有幾個觀念我自己也是邊做邊理解(或是誤解?)。
Before the tool, there were a few ideas I only understood while building it (or misunderstood?).
RAW file ≠ raw data
RAW file ≠ raw data
ZR 的感光元件一個像素 14 bit,R3D NE 卻只用 3.0 bpp(每像素位元數)存,相機已經壓到大約 1/4.7 了。所以這裡的「RAW」指的是資料還停在 Bayer 原始的階段、de-Bayer 的顯影階段還沒發生,不是指沒處理。
The ZR's sensor delivers 14 bits per pixel, yet R3D NE stores it at 3.0 bpp (bits per pixel); the camera has already compressed it about 4.7 to 1. So "RAW" here means the data is still at the Bayer stage, before de-Bayering and development. It does not mean unprocessed.
bpp 怎麼換算成檔案大小
From bpp to file size
6060 × 3410 個像素 × 3.0 bpp ÷ 8 = 7,750,000 bytes,就是一幀。乘 23.976 是每秒,再乘 60 是每分鐘的 11 GB。壓縮量用 bpp 講,是因為它跟解析度、幀率無關,兩支片段才能比。
6060 × 3410 pixels × 3.0 bpp ÷ 8 = 7,750,000 bytes, one frame. Multiply by 23.976 for a second, by 60 for the 11 GB a minute. Compression is stated in bpp because it is independent of resolution and frame rate, which is what makes two clips comparable.
Interframe vs Intra-frame
Interframe vs Intra-frame
H.265 之所以小,是靠「這一格和前一格差在哪」的跨影格預測來節省空間。RAW 格式(包括 TICO RAW、Canon 的 CRX、REDCODE)每一影格各自獨立壓縮。代價是省不到相似畫面之間的冗餘,好處是每格大小穩定、剪接時跳到哪一幀都是直接解、不會有運動帶來的殘影。
H.265 is small because it saves space with inter-frame prediction: "how does this frame differ from the last one". RAW formats (TICO RAW, Canon's CRX and REDCODE alike) compress every frame on its own. The cost is that redundancy between similar frames is left on the table; the benefit is steady frame sizes, instant access to any frame in the edit, and no motion artefacts.
小波、量化、熵編碼
Wavelet, quantization, entropy coding
這些 RAW 編碼器的骨架都一樣:先把畫面拆成不同頻率的小波子頻帶,把每個係數除以一個步階量化,再用熵編碼把數字寫得更短。檔案大小幾乎全由量化步階決定。
These RAW codecs share one skeleton: split the frame into wavelet sub-bands of different frequencies, quantize each coefficient by dividing it by a step, then write the numbers compactly with an entropy coder. File size is almost entirely set by the quantization step.
重新量化是什麼意思
What re-quantizing means
既然大小由步階決定,要讓檔案變小,只要把已經量化過的係數再除一次、用更粗的步階存回去就好。不需要解析出影像、不需要重新顯影、不經過任何一家的 SDK。出來的檔案結構跟相機寫的一模一樣,只是數字粗了一點。ZCompr 就是把這個計算加上 UI,讓你批次處理。
If size is set by the step, making a file smaller only takes dividing the already-quantized coefficients once more and storing them with a coarser step. No decode to pixels, no re-development, no vendor SDK. The file that comes out has exactly the structure the camera wrote, just with slightly coarser numbers. ZCompr is that calculation with a UI on top, so you can batch it.
誤差怎麼計算
How the error is measured
壓縮一定會產生誤差,問題是如何讓它無法被肉眼看到。因為感光元件本身有雜訊,誤差只要比雜訊小,就會被雜訊吃掉,螢幕上即便看得出不一樣也不一定看起來比較糟。所以我用 σ 來測量畫質:誤差是這一幀雜訊的幾倍。1σ 以下,找不到;超過 1σ 才開始需要擔心。這也表示雜訊是壓不掉的:高 ISO 的畫面天生比乾淨的畫面難壓。
Compression always creates error; the question is how to keep it below what the eye can see. The sensor has noise of its own, and as long as the error is smaller than that noise it gets swallowed by it. Even where you can tell something is different, it doesn't necessarily look worse. So I measure quality in σ: the error as a multiple of this frame's noise. Below 1σ you cannot find it; above 1σ is where to start worrying. It also means noise itself cannot be compressed away: a high-ISO frame is inherently harder to shrink than a clean one.
不能無損壓縮嗎?
Why not lossless?
用 ZIP 那類方法去壓已經熵編碼過的資料,幾乎擠不出空間。真的無損能省的只有相機塞的填充(R3D NE 固定碼率,每影格補到一樣大),所以 Lossless 檔位只有 4%。要再榨出空間,天下沒有白吃的午餐,但一定有便宜但還能吃的。
Running ZIP-style compression over data that is already entropy coded squeezes out almost nothing. The only truly lossless saving is the padding the camera adds (R3D NE is constant bitrate, every frame filled to the same size), which is why the Lossless preset gives 4%. To squeeze out more there is no free lunch, but there is always a cheap one that still tastes fine.
壓過的檔調色有不一樣嗎
Does a compressed file grade differently?
跟原檔一樣:白平衡、ISO、曝光都在顯影時才套用,量化誤差發生在那之前的 Bayer 資料上,和雜訊一起被同樣地處理。把暗部拉很亮,雜訊會出來,誤差也會跟著出來,但兩者只要是同一個量級就能忽略。不過每個專案能接受的標準不一,所以建議留著原檔,直到你找到自己能接受的設定,再開自動刪除原檔。
Same as the original: white balance, ISO and exposure are applied at development time, and the quantization error happened before that, on the Bayer data, where it gets treated the same way as noise. Push the shadows hard and the noise comes up, and so does the error, but as long as the two are on the same scale you can ignore it. Every project has its own threshold, though, so keep the originals until you have found a setting you are happy with, and only then turn on automatic deletion of originals.
我的發現
What I found
這段是整個專案裡最有趣的部分,不過如果你只是想要一個實用工具,可以直接下載去玩看看。
This was the most interesting part of the whole project. If all you want is a tool that works, skip ahead and download it.
- ZR 的 R3D NE 不是 RED 以前的 R3D。RED 自家機身的 REDCODE RAW 是 RED 的小波編碼;ZR 的 R3D NE(New Engine)裡面是另一種東西,叫 TICO RAW,是 JPEG XS 的變體,只是裝在 R3D 的容器裡。RED 的 SDK 把它列成獨立的檔案類型,連 GPU 解碼都不給。副檔名雖然一樣,其實是完全不同的東西,所以這個工具不能處理純血 RED 電影機的 R3D 檔哦!
- 它和 N-RAW 是同一份資料。這是最意外的發現:ZR 錄出來的 R3D NE 和 N-RAW,影像資料逐位元相同,難怪 NEV 改副檔名就可以用。兩者差別只在外面的標籤:codec 代號、gamma 與色域(N-Log+Rec.2020 對 Log3G10+REDWideGamutRGB)、RED 工具要讀的片段 metadata。所以色彩不同,其實都是轉換色域造成的。
- 所以選 R3D NE 是選調色工具,不是選畫質。兩種格式的調色彈性一模一樣,R3D NE 走 IPP2 那套流程:REDCINE-X PRO、Resolve 裡的 RED 解碼器、RMD 設定檔、Log3G10/REDWideGamutRGB 的工作流程。傳說中的「RED 的畫質」,其實是這個工作流。
- RED 的 SDK 只能解不能編。它沒有任何 REDCODE 或 N-RAW 的編碼器,連 trim 都不支援這兩種格式。想把檔案變小,官方路線走不通。
- 但 TICO RAW 是公開的結構。既然裡面是 JPEG XS 的變體,就可以直接重新量化裡面的小波係數,不用解成影像、不用經過任何人的 SDK。資料還是 Bayer 的原始資料,只是用比較粗的步階存。這就是 ZCompr 在做的事,也是為什麼它輸出的仍然是 RAW。
- 固定碼率的代價。R3D NE 規定每一幀一樣大,所以相機會在每幀後面補填充。光是把填充拿掉、一個像素都不改,6K 的檔就少 4%(2.14 GB → 2.05 GB)。這就是 Lossless 檔位,是不是很神奇。
- The ZR's R3D NE is not the R3D you knew from RED. REDCODE RAW from RED's own cameras is RED's wavelet codec; inside the ZR's R3D NE (New Engine) is something else, TICO RAW, a JPEG XS variant, just packed in an R3D container. The RED SDK lists it as a separate file type and does not even GPU-decode it. Same extension, completely different thing, which also means this tool cannot handle R3D files from actual RED cinema cameras.
- It is the same data as N-RAW. The biggest surprise: R3D NE and N-RAW recorded by the ZR carry bit-identical image data, which is why simply renaming an NEV works. The only differences are the labels outside: the codec tag, gamma and gamut (N-Log + Rec.2020 vs Log3G10 + REDWideGamutRGB), and the clip metadata RED's tools read. The colour difference you see comes entirely from the gamut conversion.
- So choosing R3D NE is choosing a grading toolset, not image quality. The grading latitude of the two formats is identical. R3D NE goes through the IPP2 workflow: REDCINE-X PRO, the RED decoder in Resolve, RMD sidecars, Log3G10 / REDWideGamutRGB. The legendary "RED look" is really that workflow.
- RED's SDK can decode but not encode. It has no REDCODE or N-RAW encoder at all, and it won't even trim these two formats. If you want smaller files, the official road is closed.
- But TICO RAW is a documented structure. Since the inside is a JPEG XS variant, its wavelet coefficients can be re-quantized directly, without decoding to pixels and without anyone's SDK. The data is still raw Bayer data, just stored with coarser steps. That is what ZCompr does, and why its output is still RAW.
- The price of constant bitrate. R3D NE requires every frame to be the same size, so the camera pads each one. Just removing the padding, without changing a single pixel, takes 4% off a 6K file (2.14 GB → 2.05 GB). That is the Lossless preset. Neat, isn't it?
總結:R3D NE 是裝在 R3D 容器裡的 NEV,裡面是可以直接重新量化的 TICO RAW。ZCompr 兩種都吃,給 .NEV 還 .NEV、給 .R3D 還 .R3D,Resolve 和 REDCINE-X 照樣當 RAW 開。
In short: R3D NE is an NEV in an R3D container, and inside is TICO RAW that can be re-quantized directly. ZCompr takes both, returns .NEV for .NEV and .R3D for .R3D, and Resolve and REDCINE-X still open the result as RAW.
這些是我對照 RED R3D SDK 9.2.1 的文件、拿自己的 ZR 片段反覆驗證的結果;格式細節參考了社群對 TICO RAW/JPEG XS 位元流的公開研究。
This is what I pieced together from the RED R3D SDK 9.2.1 documentation and repeated tests on my own ZR clips; the format details draw on published community research into the TICO RAW / JPEG XS bitstream.
壓縮的取捨
The trade-offs
壓多少用原檔 bpp(每像素位元數)的倍數算,ZR 原生是 3.00 bpp。畫質掉多少,我不想只靠眼睛。
How much to compress is a fraction of the source bpp (bits per pixel); the ZR records at 3.00 bpp. How much quality it costs, I didn't want to judge by eye alone.
| 檔位 | Preset | bpp | 影像資料 | Image data | 這代表什麼 | What it means |
|---|---|---|---|---|---|---|
| Lossless | = 原檔source | −4% | 只拿掉填充,每個像素解出來一模一樣。 | Padding removed only; every decoded pixel identical. | ||
| Light | × 0.75 | ≈ −25% | 預設。誤差低於雜訊,我看不出來差異。 | The default. The error sits below the noise; I can't see a difference. | ||
| Medium | × 0.55 | ≈ −45% | 要留很久的素材我會選這檔,硬碟一下多出一半。 | What I'd pick for footage that has to last. Half the drive comes back. | ||
| Strong | × 0.35 | ≈ −65% | 最後輸出是 4K 或更小解析度的時候。一段 243 幀的 6K 片段從 1.89 GB 變 694 MB(−63%),Resolve 照開。 | For projects that finish at 4K or smaller. A 243-frame 6K clip went from 1.89 GB to 694 MB (−63%) and Resolve opened it without complaint. |
為什麼要做 σ 差異圖
Why I built the σ map
「看起來一樣」不是證據。把壓縮造成的誤差畫成「這一幀本身雜訊的幾倍」:1σ 以下表示誤差比感光元件的雜訊還小,你在任何螢幕上都找不到它。
"Looks the same" isn't evidence. The map draws the compression error as a multiple of the frame's own noise: below 1σ the error is smaller than the sensor noise, and no monitor will show it to you.
在 RAW 上算,不能在 RGB 上算
Measure on RAW, not on RGB
在算繪後的畫面上相減,去馬賽克會把誤差抹平、色調曲線會把高光壓掉,剛好藏住誤差最大的地方,8-bit 又把剩下的吞掉。所以 σ 是在 14-bit 的 Bayer 資料上算的。
Subtract rendered frames and the debayer smears the error, the tone curve flattens the highlights where the error is largest, and 8-bit swallows what is left. So σ is computed on the 14-bit Bayer data.
速度,老實說有待優化
Speed: honestly, needs work
實測 M1 Pro(8 核)壓 6K 的 Light 檔位大約 14 到 19 fps,比 23.976 的即時慢一點。一小時的素材要一個多小時。所以我後來把監看資料夾做進去:拷完卡它自己壓,不用等。
Measured on an M1 Pro (8 cores), 6K at the Light preset runs about 14 to 19 fps, a little under the 23.976 of real time. An hour of footage takes a bit over an hour. That is why I later added watch folders: offload the card and it compresses on its own, no waiting.

同一格放大到 100%(一個感光元件像素對一個螢幕像素),左邊原檔、右邊 Strong 檔位。這是最嚴格的看法,差別還是得很用力找。
The same frame at 100% (one sensor pixel per screen pixel), original on the left, the Strong preset on the right. This is the harshest way to look, and the difference still takes real effort to find.
自己試試
Try it
功能不多,所以沒什麼好說明的:把 .NEV 或 .R3D 拖進去,選檔位,點縮圖比對一下,按開始。輸出位置、檔名格式、監看資料夾、轉 H.265 代理檔這些都在裡面,自己摸兩分鐘就會。常用功能有快速鍵,游標停在按鍵上就看得到。
There isn't much to it, so there isn't much to explain: drag .NEV or .R3D files in, pick a preset, click a thumbnail to compare, press Start. Output location, name formats, watch folders and H.265 proxies are all in there; two minutes of poking around covers it. The common actions have keyboard shortcuts, shown when you hover over a button.
為什麼免費:ZCompr 的壓縮核心來自別人開放出來的成果(Blue Compressor,Apache-2.0),R3D NE 這個格式的知識也多半來自網路上其他人的分析。靠它收錢我過不去,所以 ZCompr 全部功能免費,沒有期限,也不用註冊。有任何想法,app 裡「輔助說明」選單的「意見回饋…」會直接送到我這。我很想知道你的想法。如果它幫你省下了時間,可以在 Ko-fi 上請我喝杯咖啡;這不會解鎖任何東西,功能本來就全開。
Why it's free: ZCompr's compression core comes from work other people opened up (Blue Compressor, Apache-2.0), and most of what is known about the R3D NE format came from other people's analysis on the web. Charging for that doesn't sit right with me, so every ZCompr feature is free, with no time limit and no sign-up. Anything on your mind, Help → Send Feedback in the app comes straight to me. I really want to hear what you think. If it saved you some time, you can buy me a coffee on Ko-fi; it unlocks nothing, because nothing is locked.