
ddvinh1/video-merger
Public
66
runs
Run ddvinh1/video-merger 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 |
---|---|---|---|
videos |
array
|
[]
|
List of input video files
|
audios |
array
|
[]
|
List of input audio files
|
output_aspect_ratio |
None
|
None
|
|
output_length |
number
|
Target output duration in seconds. If not set, auto-determined
|
|
output_format |
string
|
mp4
|
Output container format
|
video_codec |
string
|
libx264
|
Video codec for output
|
audio_codec |
string
|
aac
|
Audio codec for output
|
video_bitrate |
string
|
2M
|
Target video bitrate (e.g. 2M)
|
audio_bitrate |
string
|
128k
|
Target audio bitrate (e.g. 128k)
|
fps |
integer
|
24
|
Output frame rate
|
scale_method |
None
|
None
|
{
"type": "object",
"title": "Input",
"properties": {
"fps": {
"type": "integer",
"title": "Fps",
"default": 24,
"x-order": 9,
"description": "Output frame rate"
},
"audios": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Audios",
"default": [],
"x-order": 1,
"description": "List of input audio files"
},
"videos": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Videos",
"default": [],
"x-order": 0,
"description": "List of input video files"
},
"audio_codec": {
"type": "string",
"title": "Audio Codec",
"default": "aac",
"x-order": 6,
"description": "Audio codec for output"
},
"video_codec": {
"type": "string",
"title": "Video Codec",
"default": "libx264",
"x-order": 5,
"description": "Video codec for output"
},
"scale_method": {
"enum": [
"fast_bilinear",
"bilinear",
"bicubic",
"lanczos"
],
"type": "string",
"title": "scale_method",
"description": "FFmpeg scaling method",
"x-order": 10
},
"audio_bitrate": {
"type": "string",
"title": "Audio Bitrate",
"default": "128k",
"x-order": 8,
"description": "Target audio bitrate (e.g. 128k)"
},
"output_format": {
"type": "string",
"title": "Output Format",
"default": "mp4",
"x-order": 4,
"description": "Output container format"
},
"output_length": {
"type": "number",
"title": "Output Length",
"x-order": 3,
"nullable": true,
"description": "Target output duration in seconds. If not set, auto-determined"
},
"video_bitrate": {
"type": "string",
"title": "Video Bitrate",
"default": "2M",
"x-order": 7,
"description": "Target video bitrate (e.g. 2M)"
},
"output_aspect_ratio": {
"enum": [
"16:9",
"9:16",
"auto"
],
"type": "string",
"title": "output_aspect_ratio",
"description": "Target aspect ratio for the output video",
"x-order": 2
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output",
"format": "uri"
}