Skip to content

AV1R

'AV1' Video Encoding for Biological Microscopy Data

v0.1.3 · Mar 23, 2026 · MIT + file LICENSE

Description

Converts legacy microscopy video formats (H.264/H.265, AVI/MJPEG, TIFF stacks) to the modern 'AV1' codec with minimal quality loss. Typical use cases include compressing large TIFF stacks from confocal microscopy and time-lapse experiments from hundreds of gigabytes to manageable sizes, re-encoding MP4 files exported from 'CellProfiler', 'ImageJ'/'Fiji', and microscope software with approximately 2x better compression at the same visual quality, and converting legacy AVI (MJPEG) and H.265 recordings to a single patent-free format suited for long-term archival. Automatically selects the best available backend: GPU hardware acceleration via 'Vulkan' 'VK_KHR_VIDEO_ENCODE_AV1' or 'VAAPI' (tested on AMD RDNA4; bundled headers, builds with any 'Vulkan' SDK >= 1.3.275), with automatic fallback to CPU encoding through 'FFmpeg' and 'SVT-AV1'. User controls quality via a single CRF parameter; each backend adapts automatically (CPU and Vulkan use CRF directly, VAAPI targets 55 percent of input bitrate). TIFF stacks use near-lossless CRF 5 by default, with optional proportional scaling via tiff_scale (multiplier or bounding box, aspect ratio always preserved). Small frames are automatically scaled up to meet hardware encoder minimums. Audio tracks are preserved automatically. Provides a simple R API for batch conversion of entire experiment folders.

Downloads

CRAN

247

Last 30 days

20089th

703

Last 90 days

1.4K

Last year

Trend: +18.8% (30d vs prior 30d)

r2u CRAN

25

Last 30 days

114

Last 90 days

168

Last year

Trend: -35.9% (30d vs prior 30d)

autoCRAN

7

Last 7 days

27

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Line coverage

Expression

Tests / Examples

Functions

96 9 exported

Complexity

5.6 avg / 25 max

Call network

96 nodes / 106 edges

Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Code

Structure

Lines of code

5,758

Files

65

Compiled share

56.4%

Has compiled src

Yes

Language breakdown

R 1,306 (22.7%)C/C++/src 3,248 (56.4%)Tests 898 (15.6%)Docs 306 (5.3%)

API

Exported functions

9

Internal functions

27

Recent export changes

v0.1.2+9 av1r_options, av1r_status, convert_folder +6 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.69

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

25%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

33.3%

Unsafe pattern score

0

Dep constraint coverage

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.1.0

System requirements

7

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

2

First release

2026-03-05

Latest release

2026-03-23

Avg cadence

18 days

Cold removal rate

Dep drift

0

LOC over versions

v0.1.2: 4,538 LOCv0.1.3: 5,758 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Version History

2 tracked
updated 0.1.3 ← 0.1.2 diff Mar 23, 2026
new 0.1.2 Mar 10, 2026

R Observatory began tracking this package on Mar 10, 2026; it first appeared on CRAN Mar 5, 2026. Releases before tracking aren’t shown.