Open linhcentrio opened 2 weeks ago
https://github.com/user-attachments/assets/e39eb9e3-6ffe-4e8d-b5f2-39ba8264e04f python demo_change_a_video_lip.py --source_path test_data/green_screen_video.mp4 --audio_driving_path test_data/mouth_source.wav --save_path res/green_screen_video.mp4
https://github.com/user-attachments/assets/37f9c729-6957-42ad-ac72-0bb371ee42c1 python data_preprocess/crop_video.py --inp test_data/green_screen_video.mp4 --outp test_data/green_screen_video_crop.mp4 python demo_change_a_video_lip.py --source_path test_data/green_screen_video_crop.mp4 --audio_driving_path test_data/mouth_source.wav --save_path res/green_screen_video_crop.mp4
Why after crop_video result so bad?
https://github.com/user-attachments/assets/e39eb9e3-6ffe-4e8d-b5f2-39ba8264e04f python demo_change_a_video_lip.py --source_path test_data/green_screen_video.mp4 --audio_driving_path test_data/mouth_source.wav --save_path res/green_screen_video.mp4
https://github.com/user-attachments/assets/37f9c729-6957-42ad-ac72-0bb371ee42c1 python data_preprocess/crop_video.py --inp test_data/green_screen_video.mp4 --outp test_data/green_screen_video_crop.mp4 python demo_change_a_video_lip.py --source_path test_data/green_screen_video_crop.mp4 --audio_driving_path test_data/mouth_source.wav --save_path res/green_screen_video_crop.mp4
Why after crop_video result so bad?
which one is your source video?
Assuming that test_data/green_screen_video.mp4 is the source video, the correct process should be:
python data_preprocess/crop_video.py --inp test_data/green_screen_video.mp4 --outp test_data/green_screen_video_crop.mp4
ffmpeg -i test_data/green_screen_video_crop.mp4 -r 25 test_data/green_screen_video_fps25.mp4
python demo_change_a_video_lip.py --source_path test_data/green_screen_video_fps25.mp4 --audio_driving_path test_data/mouth_source.wav --save_path res/green_screen_video.mp4
It should work.
Can you manual How to lipsync an video with other audio?