lucataco/featured-vid
Convert videos down to a web friendly size while maintaining video quality
Public
13
runs
Run lucataco/featured-vid 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 |
---|---|---|---|
video |
string
|
Input video file to compress
|
|
target_size_mb |
number
|
2
Min: 0.1 Max: 50 |
Target file size in megabytes
|
quality |
None
|
medium
|
Compression quality preset
|
output_format |
None
|
mp4
|
Output video format
|
{
"type": "object",
"title": "Input",
"required": [
"video"
],
"properties": {
"video": {
"type": "string",
"title": "Video",
"format": "uri",
"x-order": 0,
"description": "Input video file to compress"
},
"quality": {
"enum": [
"high",
"medium",
"low"
],
"type": "string",
"title": "quality",
"description": "Compression quality preset",
"default": "medium",
"x-order": 2
},
"output_format": {
"enum": [
"mp4",
"webm"
],
"type": "string",
"title": "output_format",
"description": "Output video format",
"default": "mp4",
"x-order": 3
},
"target_size_mb": {
"type": "number",
"title": "Target Size Mb",
"default": 2,
"maximum": 50,
"minimum": 0.1,
"x-order": 1,
"description": "Target file size in megabytes"
}
}
}
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"
}
Example API response
View prediction
'https://replicate.delivery/xezq/W60reUVCYCxeZElSsYClAVyAx5YP1NsV2exSmkbmOSpKeF8VB/compressed_video.mp4'