dunnousername / yanderifier

First-Order-Wrapper (formerly known as Yanderify) is a front-end tool for first-order-motion. It aims to make using first-order-motion face animation accessible to everyone, for education and entertainment.
1.74k stars 290 forks source link

Super Pixelated #33

Open Atlas1021-YT opened 4 years ago

Atlas1021-YT commented 4 years ago

I am using the latest version for me (v4.0.2 stable) and every video I make is looks really compressed and pixelated. Is have not messed with settings or anything, I am just selecting a source video, image, and an output and clicking Go. Am I doing something wrong or is this a bug?

Animan8000 commented 3 years ago

The outputs of deepfakes have in general a bit low quality. I've made a repository that prevents the second phase (muxing audio) compressing the video further, to avoid the quality getting more messed up than it already is.

thegrandmasterflash commented 3 years ago

@Animan8000 Is there a way to set the bitrate so the output video is higher quality?

Animan8000 commented 3 years ago

@Animan8000 Is there a way to set the bitrate so the output video is higher quality?

You can make it lossless by changing the FFmpeg command in the source. In the repository I linked, in both branches it is set to lossless (CRF 0) by default instead of a low CBR value. One example of a CRF 0 FFmpeg command:

-map 0:v -map 1:a -movflags faststart -c:v libx264 -pix_fmt yuv420p -preset ultrafast -crf 0