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

out.mp4 #62

Open
Z-Times opened this issue Dec 26, 2024 · 4 comments
Open

out.mp4 #62

Z-Times opened this issue Dec 26, 2024 · 4 comments

Comments

@Z-Times
Copy link

Z-Times commented Dec 26, 2024

为什么这个指令运行完了之后python synthesize_fuse.py -S data/may -M output/may_talkingface --use_train --audio data/may/aud.npy,out.mp4还是没有声音

@Fictionarry
Copy link
Owner

mp4文件由该命令合成,本身没有合入音频:

imageio.mimwrite(os.path.join(render_path, 'out.mp4'), all_preds, fps=25, quality=8, macro_block_size=1)

需要音频的话可以手动合入

@Z-Times
Copy link
Author

Z-Times commented Dec 26, 2024

所以需要我自己写代码将语音添加进视频里吗

@Fictionarry
Copy link
Owner

所以需要我自己写代码将语音添加进视频里吗

命令行也可以

ffmpeg -i <video_path> -i <audio_path> -q 2 <output_path>

@Z-Times
Copy link
Author

Z-Times commented Dec 26, 2024

好的,非常感谢

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