Skip to content

Overlay the image generated in processing about another image #62

@dancodedev

Description

@dancodedev

I'm trying to put a default background image and overlay the image generated by processing, but I can't get it.

This is the normal configuration, it works correctly

videoExport.setFfmpegVideoSettings(
    new String[]{
    "[ffmpeg]",
    "-y",
    "-f",        "rawvideo",
    "-vcodec",   "rawvideo",
    "-s",        "[width]x[height]",
    "-pix_fmt",  "rgb24",
    "-r",        "[fps]",
    "-i",        "pipe:0",
    "-an",
    "-vcodec",   "h264",
    "-pix_fmt",  "yuv420p",
    "-crf",      "[crf]",
    "-preset",  "ultrafast",
    "[output]"
    });

With this code I can do what I want. But I don't know how to use it with pipe

ffmpeg -loop 1 -framerate 1 -i 4k.jpg -framerate 30 -i 1k.jpg -filter_complex "overlay=0:0:shortest=1,format=yuv420p" -c:v libx264 -r 30 -movflags +faststart output.mp4

I hope someone can help me. Thank you

The green image would be the processed image in processing, the one coming by pipe and the background image would be a static image configured in the ffmpeg output
image

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