Skip to content

Question about codec preprocessing internals and source availability #182

Description

@pfeibai

Hi, thanks for releasing this work.

I have a few questions about the codec preprocessing pipeline used in LLaVA-OneVision-2 / codec-video-prep.

From the Python API layer, I can trace the flow roughly as:

processor(..., video_backend="codec")
_run_cv_preinfer(...)
cv-preinfer
Python pipeline code such as api.py, pipeline.py, readiness.py, topk_2x2_bitcost.py
From these files, it looks like the current online codec path mainly uses bitcost / readiness-based grouping and patch selection.

However, I could not find the actual extraction logic for:

  • motion vectors (MV)
  • residual_y

lower-level codec-domain parsing / decoder instrumentation
So I want to ask:

  1. Is the current released codec pipeline for LLaVA-OneVision-2 using only bitcost, or does it also use MV / residual information somewhere in the lower-level backend?

  2. If MV / residual_y are used, where is that extraction logic implemented?

  3. Is the low-level backend source code public?
    For example, the source for cv_reader_fast
    Any FFmpeg patches / decoder modifications used to export bitcost / MV / residual-related signals
    If that code is not public yet, is there any plan to release it?

I can see the Python orchestration code in the wheel, but I could not find the underlying C/C++ source or FFmpeg patch code, so I am not sure whether I am missing another public repository.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions