Page 1 of 1

mismatch frame rate (output & original)

Posted: Tue Jun 28, 2022 7:18 pm
by damingxing

I found the converted video has a different frame rate than the original video. The original video is 26 fps (don't ask me why) and the converted video is 29.997 fps.

I used FFmpeg to convert. Is there a place we can specify the output frame rate to match the original video's frame rate?

Thanks.


Re: mismatch frame rate (output & original)

Posted: Wed Jun 29, 2022 9:37 am
by torzdf

No. This should happen automatically. The process reads the input's frame rate. If it is outputting at an incorrect framerate, then most likely it is misreporting.

I would suggest using "open-cv" writer to output converted frames, and then use ffmpeg (either the Effmpeg tool in Faceswap, or ffmpeg itself) to turn these frames back into a video.


Re: mismatch frame rate (output & original)

Posted: Tue Jul 12, 2022 5:40 pm
by damingxing

Thanks for the response. I changed the option to "opencv" now, but there are some duplicated frames after the convert. Do you happen to know what may cause that and how I can solve this? Thanks


Re: mismatch frame rate (output & original)

Posted: Tue Jul 12, 2022 5:43 pm
by torzdf

Duplicate frames usually happen because, at some point (probably before you even received it), the video has been converted from one frame rate to another. It is very common.

Read more here:
https://helpcenter.extremereach.com/hc/ ... ate-Frames


Re: mismatch frame rate (output & original)

Posted: Tue Jul 12, 2022 8:11 pm
by damingxing

Thank you for the information.

It seems that the duplicated frames are not exactly the same.

The background from video A is the same as the previous frame, but the face is a little different from the previous one.

If I want the output video to have the synced body movement with the original video but with a different face, is there any way I can accomplish that?

Thank you.


Re: mismatch frame rate (output & original)

Posted: Wed Jul 13, 2022 7:34 am
by torzdf

I'm not entirely sure what you mean.

If you mean that the wrong face is being swapped on (i.e. the face being swapped on is from a previous/next frame) then this is not something I've heard of before, and would suggest an issue with your video file. The process basically goes through the video frame by frame swapping the faces. It shouldn't be possible for it to be out of sync.

The best I could suggest, at this point, is to re-encode the video with a known framerate and generate a new alignments file for your re-encoded video