Skip to content

Exposure of command-related methods for the filter #1998

@caffeinism

Description

@caffeinism

#676

Video processing seems both fun and complex. In that sense, as a Python user, I feel very fortunate to have PyAV.

Recently, I've been encountering issues while using various filters. The root cause is that you can't control the options of a pre-built filter at runtime. (For example, moving the position of an overlay or changing its size.)

While search a few filters recently (involving sendcmd, zmq, etc... quite complex work), I discovered that libav actually allows direct command injection into filters. (Ta-da!) Currently, for my overlay, I'm recreating everything every time x or y changes.

I wish avfilter_process_command were exposed in PyAV. I'd love to implement it myself if possible, but I'm practically a novice when it comes to Cython and libav. Someone else seemed to have the same idea five years ago, but that issue has since been stale.

Is this even feasible? It could make my life so much easier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions