Package: AV1R
Type: Package
Title: 'AV1' Video Encoding for Biological Microscopy Data
Version: 0.1.3
Authors@R: c(
    person("Yuri", "Baramykov",
        email = "lbsbmsu@mail.ru",
        role = c("aut", "cre")))
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.
Depends: R (>= 4.1.0)
License: MIT + file LICENSE
URL: https://github.com/Zabis13/AV1R
BugReports: https://github.com/Zabis13/AV1R/issues
Encoding: UTF-8
SystemRequirements: C++17, GNU make, FFmpeg (>= 4.4) with
        libavcodec/libavformat, libvulkan-dev (optional, for GPU
        encoding on Linux), Vulkan SDK (optional, for GPU encoding on
        Windows)
Suggests: magick, testthat (>= 3.0.0)
RoxygenNote: 7.3.3
Config/testthat/edition: 3
NeedsCompilation: yes
Packaged: 2026-03-21 22:46:50 UTC; yuri
Author: Yuri Baramykov [aut, cre]
Maintainer: Yuri Baramykov <lbsbmsu@mail.ru>
Repository: CRAN
Date/Publication: 2026-03-23 08:40:40 UTC
Built: R 4.6.0; x86_64-apple-darwin20; 2026-04-25 09:52:21 UTC; unix
Archs: AV1R.so.dSYM
