saifhassan / Wav2Lip-HD

High-Fidelity Lip-Syncing with Wav2Lip and Real-ESRGAN
Other
320 stars 75 forks source link

NO HD Video in - output_videos_hd AFTER RUN .SH FILE #7

Closed cyzzion closed 1 year ago

cyzzion commented 1 year ago

After i run the final .sh command i just get all the HD Frames in the wave2liphd Frames folder but no HD Video in the output_videos_hd folder.

Whats the Problem? How can i fix thad? Please Help 😇

saifhassan commented 1 year ago

After i run the final .sh command i just get all the HD Frames in the wave2liphd Frames folder but no HD Video in the output_videos_hd folder.

Whats the Problem? How can i fix thad? Please Help 😇

uncomment the last line in run_final.sh and then execute again. or just go to terminal/cmd and run following command:

ffmpeg -r 20 -i ${back_dir}/${frames_hd}/${filename}/frame_%05d_out.jpg -i ${back_dir}/${input_audios} -vcodec libx264 -crf 25 -preset veryslow -acodec copy ${back_dir}/${output_videos_hd}/${filename}.mkv

variables in above command in run_final.sh.

Note: Make sure ffpmeg is installed. Hope it works, let me know if working or any error.

saifhassan commented 1 year ago

I hope above solution worked for you, as for now, I'm closing this issue.

You can re-open in case of query related to this issue.

cyzzion commented 1 year ago

I tryed the command but the respond was a new Error:

[image2 @ 000002aa5b0f3ac0] Could find no file with path '//frame_%05dout.jpg' and index in the range 0-4 //frame%05d_out.jpg: No such file or directory (python-wav2lip)

Any solution?

prometheus-alien commented 7 months ago

correct command: ffmpeg -r 20 -i ${back_dir}/${frames_hd}/${filename}/frame_%05d_out.jpg -i ${back_dir}/${input_audio} -vcodec libx264 -crf 25 -preset veryslow -acodec copy ${back_dir}/${output_videos_hd}/${filename}.mkv