AndroidMediaCodec
Android Media codec for video encoding and decoding from C++ (e.g. for use with QT). Not fully tested yet, ergo not stable, API 23.
Install / Use
/learn @kueblert/AndroidMediaCodecREADME
AndroidMediaCodec
Android Media codec for video encoding and decoding from C++ for use with QT. By using the native codec we have the possibility of leveraging hardware acceleration for compression and decoding, if available on the device.
Not fully tested yet, ergo not stable!
I am using API 23, lower versions (>18?) are probably possible. I am not able to provide any support but thought this might help some people to get through the partially quite rough documeentation for the ndk.
NativeCodecReader opens and decodes a media file (such as mp4 with h264 or webm) You can query OpenCV's cv::Mat via read() Frame counts are calculated from video duration / current sample timestamps and the framerate. TODO Might be worth having a look at the asynchronous functions so that we can actually push the frames out instead of querying them, which might allow for faster playback without a buffering layer.
NativeCodecWriter encodes frames to a video and muxes them to a media file (such as mp4 with h264 or webm) You can push OpenCV's cv::Mat via write() After recording you need to call end() to finish the writing process and to flush the remaining buffers. This might take a while. The object can be deleted once the recordingFinished() signal is emitted (and no earlier!)
You might want to run the encoding in a separate thread, e.g.
QThread* mEncodingThread = new QThread(); NativeCodecWriter* videoWriter = new NativeCodecWriter(videofile, fps, Size(data.input.cols, data.input.rows)); videoWriter->moveToThread(mEncodingThread); mEncodingThread->start(); QMetaObject::invokeMethod(videoWriter, &NativeCodecWriter::prepareEncoder); connect(this, &DataRecorder::pushFrame, videoWriter, &NativeCodecWriter::write);
Related Skills
qqbot-channel
349.2kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
100.3k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
349.2kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
arscontexta
3.0kClaude Code plugin that generates individualized knowledge systems from conversation. You describe how you think and work, have a conversation and get a complete second brain as markdown files you own.
