idan054/sarra-video-maker-v2
Public
112
runs
Run idan054/sarra-video-maker-v2 with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
| Field | Type | Default value | Description |
|---|---|---|---|
| subs_position |
None
|
bottom75
|
Subtitles position
|
| font |
None
|
Arial/Arial_Bold.ttf
|
Font
|
| color |
string
|
white
|
Caption color
|
| kerning |
number
|
-4
|
Kerning for the subtitles
|
| opacity |
number
|
0
|
Opacity for the subtitles background
|
| MaxChars |
integer
|
15
|
Max characters space for subtitles. 20 is good for videos, 10 is good for reels
|
| fontsize |
number
|
5.3
|
Font size. 7.0 is good for videos, 4.0 is good for reels
|
| output_video |
boolean
|
True
|
Output video, if true will output the video with subtitles
|
| stroke_color |
string
|
black
|
Stroke color
|
| stroke_width |
number
|
1.3
|
Stroke width
|
| right_to_left |
boolean
|
True
|
Right to left subtitles, for right to left languages. Only Arial fonts are supported.
|
| highlight_color |
string
|
yellow
|
Highlight color
|
| video_file_input |
string
|
Video file
|
|
| output_transcript |
boolean
|
False
|
Output transcript json, if true will output a transcript file that you can edit and use for the next run in transcript_file_input | 12:35
|
| background_file_input |
string
|
Background music audio file (optional). Will be mixed at 0.22 volume with the main audio
|
|
| main_audio_file_input |
string
|
Main audio file to replace the original video audio. If not provided, video audio will be removed entirely.
|
|
| transcript_file_input |
string
|
Transcript file, JSON Format: [{'start': 12.34, 'end': 13.56, 'word': 'Hello World'}]
|
{
"type": "object",
"title": "Input",
"required": [
"video_file_input"
],
"properties": {
"font": {
"enum": [
"Poppins/Poppins-Bold.ttf",
"Poppins/Poppins-BoldItalic.ttf",
"Poppins/Poppins-ExtraBold.ttf",
"Poppins/Poppins-ExtraBoldItalic.ttf",
"Poppins/Poppins-Black.ttf",
"Poppins/Poppins-BlackItalic.ttf",
"Atkinson_Hyperlegible/AtkinsonHyperlegible-Bold.ttf",
"Atkinson_Hyperlegible/AtkinsonHyperlegible-BoldItalic.ttf",
"M_PLUS_Rounded_1c/MPLUSRounded1c-ExtraBold.ttf",
"Arial/Arial_Bold.ttf",
"Arial/Arial_BoldItalic.ttf"
],
"type": "string",
"title": "font",
"description": "Font",
"default": "Arial/Arial_Bold.ttf",
"x-order": 12
},
"color": {
"type": "string",
"title": "Color",
"default": "white",
"description": "Caption color"
},
"kerning": {
"type": "number",
"title": "Kerning",
"default": -4,
"description": "Kerning for the subtitles"
},
"opacity": {
"type": "number",
"title": "Opacity",
"default": 0,
"description": "Opacity for the subtitles background"
},
"MaxChars": {
"type": "integer",
"title": "Maxchars",
"default": 15,
"description": "Max characters space for subtitles. 20 is good for videos, 10 is good for reels"
},
"fontsize": {
"type": "number",
"title": "Fontsize",
"default": 5.3,
"description": "Font size. 7.0 is good for videos, 4.0 is good for reels"
},
"output_video": {
"type": "boolean",
"title": "Output Video",
"default": true,
"description": "Output video, if true will output the video with subtitles"
},
"stroke_color": {
"type": "string",
"title": "Stroke Color",
"default": "black",
"description": "Stroke color"
},
"stroke_width": {
"type": "number",
"title": "Stroke Width",
"default": 1.3,
"description": "Stroke width"
},
"right_to_left": {
"type": "boolean",
"title": "Right To Left",
"default": true,
"description": "Right to left subtitles, for right to left languages. Only Arial fonts are supported."
},
"subs_position": {
"enum": [
"bottom75",
"center",
"top",
"bottom",
"left",
"right"
],
"type": "string",
"title": "subs_position",
"description": "Subtitles position",
"default": "bottom75",
"x-order": 6
},
"highlight_color": {
"type": "string",
"title": "Highlight Color",
"default": "yellow",
"description": "Highlight color"
},
"video_file_input": {
"type": "string",
"title": "Video File Input",
"format": "uri",
"description": "Video file"
},
"output_transcript": {
"type": "boolean",
"title": "Output Transcript",
"default": false,
"description": "Output transcript json, if true will output a transcript file that you can edit and use for the next run in transcript_file_input | 12:35"
},
"background_file_input": {
"type": "string",
"title": "Background File Input",
"format": "uri",
"description": "Background music audio file (optional). Will be mixed at 0.22 volume with the main audio"
},
"main_audio_file_input": {
"type": "string",
"title": "Main Audio File Input",
"format": "uri",
"description": "Main audio file to replace the original video audio. If not provided, video audio will be removed entirely."
},
"transcript_file_input": {
"type": "string",
"title": "Transcript File Input",
"format": "uri",
"description": "Transcript file, JSON Format: [{'start': 12.34, 'end': 13.56, 'word': 'Hello World'}]"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output"
}