Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xhlove opened this issue Oct 6, 2019 · 0 comments
Open

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

xhlove opened this issue Oct 6, 2019 · 0 comments

Comments

@xhlove
Copy link

xhlove commented Oct 6, 2019

目的:
提取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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant