codec2_encode

command
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2026 License: CC0-1.0 Imports: 8 Imported by: 0

Documentation

Overview

Codec2 H.264 encoding via HIDL hwbinder.

This example connects to the Codec2 software IComponentStore via HIDL hwbinder, creates an H.264 encoder component, feeds a single gray YUV frame, and reports the result.

Build:

GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -buildmode=pie -o build/codec2_encode ./examples/codec2_encode/
patchelf --set-interpreter /system/bin/linker64 --replace-needed libdl.so.2 libdl.so --replace-needed libpthread.so.0 libc.so --replace-needed libc.so.6 libc.so build/codec2_encode
adb push build/codec2_encode /data/local/tmp/ && adb shell /data/local/tmp/codec2_encode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL