tahercoolguy
/
video_background_remover_appender
Remove Background of video and add yours
- Public
- 294 runs
-
L40S
Prediction
tahercoolguy/video_background_remover_appender:41e1405aIDjf4e4c6tf1rgm0cjfewb1e32r4StatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- fps
- 0
- color
- #00FF00
- bg_type
- Video
- bg_video
- input_video
- video_handling
- loop
{ "fps": 0, "color": "#00FF00", "bg_type": "Video", "bg_video": "https://replicate.delivery/pbxt/LmCPnNpvVF2gNBQrtlSiMTBvDw34dU77VvcuCNgk5ZxoAaDd/-2024-09-26-05-50-28.mp4", "input_video": "https://replicate.delivery/pbxt/LmCPnIRa9EXdXvlnO0Ueq2gKh2jzCWkwzigdXSUMBStQX5Oh/videoplayback%20%28online-video-cutter.com%29%20%281%29.mp4", "video_handling": "loop" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run tahercoolguy/video_background_remover_appender using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "tahercoolguy/video_background_remover_appender:41e1405aad61e2c1b5d29c3573f96321128a0069d7ba10e3b1c1b9becf8c19c7", { input: { fps: 0, color: "#00FF00", bg_type: "Video", bg_video: "https://replicate.delivery/pbxt/LmCPnNpvVF2gNBQrtlSiMTBvDw34dU77VvcuCNgk5ZxoAaDd/-2024-09-26-05-50-28.mp4", input_video: "https://replicate.delivery/pbxt/LmCPnIRa9EXdXvlnO0Ueq2gKh2jzCWkwzigdXSUMBStQX5Oh/videoplayback%20%28online-video-cutter.com%29%20%281%29.mp4", video_handling: "loop" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run tahercoolguy/video_background_remover_appender using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "tahercoolguy/video_background_remover_appender:41e1405aad61e2c1b5d29c3573f96321128a0069d7ba10e3b1c1b9becf8c19c7", input={ "fps": 0, "color": "#00FF00", "bg_type": "Video", "bg_video": "https://replicate.delivery/pbxt/LmCPnNpvVF2gNBQrtlSiMTBvDw34dU77VvcuCNgk5ZxoAaDd/-2024-09-26-05-50-28.mp4", "input_video": "https://replicate.delivery/pbxt/LmCPnIRa9EXdXvlnO0Ueq2gKh2jzCWkwzigdXSUMBStQX5Oh/videoplayback%20%28online-video-cutter.com%29%20%281%29.mp4", "video_handling": "loop" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run tahercoolguy/video_background_remover_appender using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "41e1405aad61e2c1b5d29c3573f96321128a0069d7ba10e3b1c1b9becf8c19c7", "input": { "fps": 0, "color": "#00FF00", "bg_type": "Video", "bg_video": "https://replicate.delivery/pbxt/LmCPnNpvVF2gNBQrtlSiMTBvDw34dU77VvcuCNgk5ZxoAaDd/-2024-09-26-05-50-28.mp4", "input_video": "https://replicate.delivery/pbxt/LmCPnIRa9EXdXvlnO0Ueq2gKh2jzCWkwzigdXSUMBStQX5Oh/videoplayback%20%28online-video-cutter.com%29%20%281%29.mp4", "video_handling": "loop" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-10-11T13:18:36.655717Z", "created_at": "2024-10-11T13:16:05.112000Z", "data_removed": false, "error": null, "id": "jf4e4c6tf1rgm0cjfewb1e32r4", "input": { "fps": 0, "color": "#00FF00", "bg_type": "Video", "bg_video": "https://replicate.delivery/pbxt/LmCPnNpvVF2gNBQrtlSiMTBvDw34dU77VvcuCNgk5ZxoAaDd/-2024-09-26-05-50-28.mp4", "input_video": "https://replicate.delivery/pbxt/LmCPnIRa9EXdXvlnO0Ueq2gKh2jzCWkwzigdXSUMBStQX5Oh/videoplayback%20%28online-video-cutter.com%29%20%281%29.mp4", "video_handling": "loop" }, "logs": "Moviepy - Building video /tmp/output.mp4.\nMoviePy - Writing audio in outputTEMP_MPY_wvf_snd.mp3\nchunk: 0%| | 0/90 [00:00<?, ?it/s, now=None]\nMoviePy - Done.\nMoviepy - Writing video /tmp/output.mp4\nt: 0%| | 0/98 [00:00<?, ?it/s, now=None]\nt: 27%|██▋ | 26/98 [00:00<00:00, 256.71it/s, now=None]\nt: 53%|█████▎ | 52/98 [00:00<00:00, 253.65it/s, now=None]\nt: 80%|███████▉ | 78/98 [00:00<00:00, 252.89it/s, now=None]\nMoviepy - Done !\nMoviepy - video ready /tmp/output.mp4", "metrics": { "predict_time": 31.205711317, "total_time": 151.543717 }, "output": "https://replicate.delivery/pbxt/zPfBVkGmElx2FK98Q5gIeZTp6fuxVQZRaHW9IVDcjNdX9aLnA/output.mp4", "started_at": "2024-10-11T13:18:05.450005Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/jf4e4c6tf1rgm0cjfewb1e32r4", "cancel": "https://api.replicate.com/v1/predictions/jf4e4c6tf1rgm0cjfewb1e32r4/cancel" }, "version": "7f43046e67290923eb7ea9f1b5d15e9feb4e9f047b61dd008ec2d205718328af" }
Generated inMoviepy - Building video /tmp/output.mp4. MoviePy - Writing audio in outputTEMP_MPY_wvf_snd.mp3 chunk: 0%| | 0/90 [00:00<?, ?it/s, now=None] MoviePy - Done. Moviepy - Writing video /tmp/output.mp4 t: 0%| | 0/98 [00:00<?, ?it/s, now=None] t: 27%|██▋ | 26/98 [00:00<00:00, 256.71it/s, now=None] t: 53%|█████▎ | 52/98 [00:00<00:00, 253.65it/s, now=None] t: 80%|███████▉ | 78/98 [00:00<00:00, 252.89it/s, now=None] Moviepy - Done ! Moviepy - video ready /tmp/output.mp4
Prediction
tahercoolguy/video_background_remover_appender:41e1405aID1vt19q9b7srgp0cjffbab9awg0StatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- fps
- 0
- color
- #00FF00
- bg_type
- Color
- input_video
- video_handling
- loop
{ "fps": 0, "color": "#00FF00", "bg_type": "Color", "input_video": "https://replicate.delivery/pbxt/LmCuEhtVIPgGq8grfAz86IcShqOOUfBqXRagna6FOLA1j5rO/video_test_2%20%28online-video-cutter.com%29%20%281%29.mp4", "video_handling": "loop" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run tahercoolguy/video_background_remover_appender using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "tahercoolguy/video_background_remover_appender:41e1405aad61e2c1b5d29c3573f96321128a0069d7ba10e3b1c1b9becf8c19c7", { input: { fps: 0, color: "#00FF00", bg_type: "Color", input_video: "https://replicate.delivery/pbxt/LmCuEhtVIPgGq8grfAz86IcShqOOUfBqXRagna6FOLA1j5rO/video_test_2%20%28online-video-cutter.com%29%20%281%29.mp4", video_handling: "loop" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run tahercoolguy/video_background_remover_appender using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "tahercoolguy/video_background_remover_appender:41e1405aad61e2c1b5d29c3573f96321128a0069d7ba10e3b1c1b9becf8c19c7", input={ "fps": 0, "color": "#00FF00", "bg_type": "Color", "input_video": "https://replicate.delivery/pbxt/LmCuEhtVIPgGq8grfAz86IcShqOOUfBqXRagna6FOLA1j5rO/video_test_2%20%28online-video-cutter.com%29%20%281%29.mp4", "video_handling": "loop" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run tahercoolguy/video_background_remover_appender using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "41e1405aad61e2c1b5d29c3573f96321128a0069d7ba10e3b1c1b9becf8c19c7", "input": { "fps": 0, "color": "#00FF00", "bg_type": "Color", "input_video": "https://replicate.delivery/pbxt/LmCuEhtVIPgGq8grfAz86IcShqOOUfBqXRagna6FOLA1j5rO/video_test_2%20%28online-video-cutter.com%29%20%281%29.mp4", "video_handling": "loop" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-10-11T13:50:57.852087Z", "created_at": "2024-10-11T13:48:06.334000Z", "data_removed": false, "error": null, "id": "1vt19q9b7srgp0cjffbab9awg0", "input": { "fps": 0, "color": "#00FF00", "bg_type": "Color", "input_video": "https://replicate.delivery/pbxt/LmCuEhtVIPgGq8grfAz86IcShqOOUfBqXRagna6FOLA1j5rO/video_test_2%20%28online-video-cutter.com%29%20%281%29.mp4", "video_handling": "loop" }, "logs": "Moviepy - Building video /tmp/output.mp4.\nMoviePy - Writing audio in outputTEMP_MPY_wvf_snd.mp3\nchunk: 0%| | 0/25 [00:00<?, ?it/s, now=None]\nMoviePy - Done.\nMoviepy - Writing video /tmp/output.mp4\nt: 0%| | 0/33 [00:00<?, ?it/s, now=None]\nt: 30%|███ | 10/33 [00:00<00:00, 94.70it/s, now=None]\nt: 61%|██████ | 20/33 [00:00<00:00, 91.75it/s, now=None]\nt: 91%|█████████ | 30/33 [00:00<00:00, 90.53it/s, now=None]\nMoviepy - Done !\nMoviepy - video ready /tmp/output.mp4", "metrics": { "predict_time": 8.481507507, "total_time": 171.518087 }, "output": "https://replicate.delivery/pbxt/gFOZSCITZvaRElYUnyQStc93EVnkf5HGjx1B5HqoId6getlTA/output.mp4", "started_at": "2024-10-11T13:50:49.370579Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/1vt19q9b7srgp0cjffbab9awg0", "cancel": "https://api.replicate.com/v1/predictions/1vt19q9b7srgp0cjffbab9awg0/cancel" }, "version": "7f43046e67290923eb7ea9f1b5d15e9feb4e9f047b61dd008ec2d205718328af" }
Generated inMoviepy - Building video /tmp/output.mp4. MoviePy - Writing audio in outputTEMP_MPY_wvf_snd.mp3 chunk: 0%| | 0/25 [00:00<?, ?it/s, now=None] MoviePy - Done. Moviepy - Writing video /tmp/output.mp4 t: 0%| | 0/33 [00:00<?, ?it/s, now=None] t: 30%|███ | 10/33 [00:00<00:00, 94.70it/s, now=None] t: 61%|██████ | 20/33 [00:00<00:00, 91.75it/s, now=None] t: 91%|█████████ | 30/33 [00:00<00:00, 90.53it/s, now=None] Moviepy - Done ! Moviepy - video ready /tmp/output.mp4
Want to make some of these yourself?
Run this model