encoder
Browse files- create_captions.py +2 -1
create_captions.py
CHANGED
|
@@ -75,13 +75,14 @@ def add_captions_to_video(input_video,soft_subtitle, subtitles,output_video="out
|
|
| 75 |
video_input_stream,
|
| 76 |
output_video,
|
| 77 |
**{
|
| 78 |
-
"c:v": "
|
| 79 |
# "q:v": 50, # Specify video codec (H.264)
|
| 80 |
"c:a": "copy", # Copy audio stream to avoid re-encoding
|
| 81 |
"vf": f"subtitles={subtitle_file}:{subtitle_style}", # Burn subtitles
|
| 82 |
"threads": 0
|
| 83 |
}
|
| 84 |
)
|
|
|
|
| 85 |
|
| 86 |
print("here")
|
| 87 |
ffmpeg.run(stream, overwrite_output=True)
|
|
|
|
| 75 |
video_input_stream,
|
| 76 |
output_video,
|
| 77 |
**{
|
| 78 |
+
"c:v": "libx264",
|
| 79 |
# "q:v": 50, # Specify video codec (H.264)
|
| 80 |
"c:a": "copy", # Copy audio stream to avoid re-encoding
|
| 81 |
"vf": f"subtitles={subtitle_file}:{subtitle_style}", # Burn subtitles
|
| 82 |
"threads": 0
|
| 83 |
}
|
| 84 |
)
|
| 85 |
+
|
| 86 |
|
| 87 |
print("here")
|
| 88 |
ffmpeg.run(stream, overwrite_output=True)
|