Skip to content

Support for multiple input streams via pipes #43

@JohnnyRacer

Description

@JohnnyRacer

Hello, I would like to execute some code to overlay images on a video, this works fine using filepaths, but I would really prefer loading everything via bytes and streaming in the data. I tried the following snippet and got an error : FFmpeg.execute() takes from 1 to 2 positional arguments but 3 were given

overlay = (
    FFmpeg()
    .option("y")
    .input("pipe:0")
    .input("pipe:1")
    .option("filter_complex", "[1:v]format=argb,geq=r='r(X,Y)':a='alpha(X,Y)'[zork];[0:v][zork]overlay")
    .output("test.mp4", vcodec="libx264")
)

overlay = overlay.execute(vid_bytes,image_bytes)

Is there a way to achieve this already or can it be implemented in the future. I would be happy to open a PR and implement if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions