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

合成的元素为无声视频时,合成会报错 Stream specifier ':a:0' in filtergraph description ... matches no streams. #464

Open
shelleyCoco opened this issue Jan 22, 2025 · 2 comments

Comments

@shelleyCoco
Copy link

shelleyCoco commented Jan 22, 2025

需求为将多个无声视频合成为一个视频,并添加背景音和字幕讲解音

@drawcall
Copy link
Member

设置 addOutputOptions '-ignore_unknown'尝试,或者在使用FFCreator之前,可以先给无声视频添加一个空白音轨。ffmpeg -i i.mp4 -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=44100 -c:v copy -c:a aac -shortest o.mp4

@shelleyCoco
Copy link
Author

设置 addOutputOptions '-ignore_unknown'尝试,或者在使用FFCreator之前,可以先给无声视频添加一个空白音轨。ffmpeg -i i.mp4 -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=44100 -c:v copy -c:a aac -shortest o.mp4

感谢

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

2 participants