sheikhed commited on
Commit
ed6f8ce
·
verified ·
1 Parent(s): 26f59a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -101,7 +101,7 @@ def create_video_from_image(image_url, output_path, duration=10):
101
  cmd = [
102
  'ffmpeg', '-loop', '1', '-i', temp_image_path,
103
  '-c:v', 'libx264', '-t', str(duration), '-pix_fmt', 'yuv420p',
104
- '-vf', 'scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2',
105
  '-y', output_path
106
  ]
107
  subprocess.run(cmd, check=True)
 
101
  cmd = [
102
  'ffmpeg', '-loop', '1', '-i', temp_image_path,
103
  '-c:v', 'libx264', '-t', str(duration), '-pix_fmt', 'yuv420p',
104
+ '-vf', 'copy',
105
  '-y', output_path
106
  ]
107
  subprocess.run(cmd, check=True)