Spaces:
Paused
Paused
Update app.py
Browse files
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 |
-
|
| 120 |
-
|
| 121 |
-
|
| 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):
|