Skip to content

提取视频某一帧并和现有图像叠加 #10

Description

@xbstory

目的:
提取input.mp4的第1024帧,并叠加在backround.jpg的(100,50)处
我尝试使用如下命令,但它生成的图和backround.jpg是一样的

ffmpeg -i "input.mp4" -i backround.jpg -filter_complex [0:v]select=eq(n\,1024)[frame];[1:v][frame]overlay=100:50 -frames:v 1 output.jpg -y

快速生成一个backround.jpg

ffmpeg -f lavfi -i color=c=0xcaff70:s=3840x2160 -vframes 1 backround.jpg -y

如果单独提取指定帧生成图像文件,再作为输入是可行的,如果想直接得到最终输出,有办法实现吗?

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