Spaces:
Sleeping
Sleeping
Update app.py
#4
by
kavehtaheri
- opened
app.py
CHANGED
|
@@ -57,9 +57,9 @@ def video_edit(srt, input_video, color, font, font_size, input_audio):
|
|
| 57 |
""""" if not color.startswith('#') or len(color) != 7:
|
| 58 |
raise ValueError("Color must be a hex code like '#RRGGBB'")
|
| 59 |
ffmpeg_color = '&H' + color[1:] + '& """"
|
| 60 |
-
|
| 61 |
# Build subtitle style string for FFmpeg
|
| 62 |
-
subtitle_style = f"FontName={font},FontSize={font_size},PrimaryColour={
|
| 63 |
|
| 64 |
# Construct FFmpeg command
|
| 65 |
cmd = [
|
|
|
|
| 57 |
""""" if not color.startswith('#') or len(color) != 7:
|
| 58 |
raise ValueError("Color must be a hex code like '#RRGGBB'")
|
| 59 |
ffmpeg_color = '&H' + color[1:] + '& """"
|
| 60 |
+
ffmpeg_color='&HFFFF00&'
|
| 61 |
# Build subtitle style string for FFmpeg
|
| 62 |
+
subtitle_style = f"FontName={font},FontSize={font_size},PrimaryColour={ffmpeg_color}"
|
| 63 |
|
| 64 |
# Construct FFmpeg command
|
| 65 |
cmd = [
|