fffiloni commited on
Commit
d30a16f
1 Parent(s): 42e07a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -115,12 +115,10 @@ def infer(image_path, prompt, orbit_type, progress=gr.Progress(track_tqdm=True))
115
  stream = ffmpeg.output(stream, final_path,
116
  vcodec='libx264',
117
  preset='medium',
118
- crf=23,
119
- acodec='copy')
120
- ffmpeg.run(stream, overwrite_output=True, capture_stdout=True, capture_stderr=True)
121
- except ffmpeg.Error as e:
122
- print('stdout:', e.stdout.decode('utf8'))
123
- print('stderr:', e.stderr.decode('utf8'))
124
  raise e
125
  finally:
126
  if os.path.exists(temp_path):
 
115
  stream = ffmpeg.output(stream, final_path,
116
  vcodec='libx264',
117
  preset='medium',
118
+ crf=23)
119
+ ffmpeg.run(stream, overwrite_output=True)
120
+ except Exception as e:
121
+ print(f'Error during video processing: {str(e)}')
 
 
122
  raise e
123
  finally:
124
  if os.path.exists(temp_path):