Spaces:
Sleeping
Sleeping
roychao19477
commited on
Commit
·
95a8861
1
Parent(s):
a4cf77a
Fix
Browse files
app.py
CHANGED
@@ -220,7 +220,8 @@ def extract_faces(video_file):
|
|
220 |
|
221 |
import moviepy.video.fx.MirrorY # should import fine
|
222 |
flipped_output_path = os.path.join(tmpdir, "face_only_video_flipped.mp4")
|
223 |
-
flipped_clip =
|
|
|
224 |
flipped_clip.write_videofile(flipped_output_path, codec="libx264", audio=False, fps=25)
|
225 |
|
226 |
return flipped_output_path, enhanced_audio_path
|
|
|
220 |
|
221 |
import moviepy.video.fx.MirrorY # should import fine
|
222 |
flipped_output_path = os.path.join(tmpdir, "face_only_video_flipped.mp4")
|
223 |
+
flipped_clip = VideoFileClip(output_path, fps=25)
|
224 |
+
flipped_clip = flipped_clip.fx(vfx.mirror_y)
|
225 |
flipped_clip.write_videofile(flipped_output_path, codec="libx264", audio=False, fps=25)
|
226 |
|
227 |
return flipped_output_path, enhanced_audio_path
|