ℹ️
This model hasn’t been run in 90 days, so we’ve archived it
If you want to run it again, you can restore it from the archive. It’ll take a few minutes to restore.
awerks / ffmpeg
- Public
- 187 runs
-
L40S
Prediction
awerks/ffmpeg:6e4065d943ae2c63af226aa618c176b51efd002466f914e2bd9d3584c98de135IDvcs524rbbaoxjz47blr4l3kwxaStatusSucceededSourceWebHardwareT4Total durationCreatedInput
- video_file
{ "video_file": "https://replicate.delivery/pbxt/JIDVwFhPzPea1I5ovzNaW1HxApbKwjpfhBO7BEQs7k2CYmQ9/505.mp4" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run awerks/ffmpeg using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "awerks/ffmpeg:6e4065d943ae2c63af226aa618c176b51efd002466f914e2bd9d3584c98de135", { input: { video_file: "https://replicate.delivery/pbxt/JIDVwFhPzPea1I5ovzNaW1HxApbKwjpfhBO7BEQs7k2CYmQ9/505.mp4" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", 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
Import the client:import replicate
Run awerks/ffmpeg using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "awerks/ffmpeg:6e4065d943ae2c63af226aa618c176b51efd002466f914e2bd9d3584c98de135", input={ "video_file": "https://replicate.delivery/pbxt/JIDVwFhPzPea1I5ovzNaW1HxApbKwjpfhBO7BEQs7k2CYmQ9/505.mp4" } ) # To access the file URL: print(output.url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
Run awerks/ffmpeg 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": "awerks/ffmpeg:6e4065d943ae2c63af226aa618c176b51efd002466f914e2bd9d3584c98de135", "input": { "video_file": "https://replicate.delivery/pbxt/JIDVwFhPzPea1I5ovzNaW1HxApbKwjpfhBO7BEQs7k2CYmQ9/505.mp4" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-08-04T17:57:46.056716Z", "created_at": "2023-08-04T17:54:57.562183Z", "data_removed": false, "error": null, "id": "vcs524rbbaoxjz47blr4l3kwxa", "input": { "video_file": "https://replicate.delivery/pbxt/JIDVwFhPzPea1I5ovzNaW1HxApbKwjpfhBO7BEQs7k2CYmQ9/505.mp4" }, "logs": "ffmpeg version N-111677-g84fb7b9459 Copyright (c) 2000-2023 the FFmpeg developers\nbuilt with gcc 11 (Ubuntu 11.3.0-1ubuntu1~22.04.1)\nconfiguration: --enable-nonfree --enable-cuda-sdk --enable-cuvid --enable-libnpp --enable-libpulse --enable-libnpp --enable-nvenc --enable-fontconfig --enable-ffnvcodec --enable-libass --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64\nlibavutil 58. 14.100 / 58. 14.100\nlibavcodec 60. 22.100 / 60. 22.100\nlibavformat 60. 10.100 / 60. 10.100\nlibavdevice 60. 2.101 / 60. 2.101\nlibavfilter 9. 10.100 / 9. 10.100\nlibswscale 7. 3.100 / 7. 3.100\nlibswresample 4. 11.100 / 4. 11.100\n-vsync is deprecated. Use -fps_mode\nPassing a number to -vsync is deprecated, use a string argument as described in the manual.\n[Parsed_subtitles_2 @ 0x55679f166940] libass API version: 0x1502000\n[Parsed_subtitles_2 @ 0x55679f166940] libass source: tarball: 0.15.2\n[Parsed_subtitles_2 @ 0x55679f166940] Shaper: FriBidi 1.0.8 (SIMPLE) HarfBuzz-ng 2.7.4 (COMPLEX)\n[Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//WorkSans-Bold.otf'\n[Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//OpenSans-Bold.otf'\n[Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//ProbaPro-Bold.otf'\n[Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//Montserrat-Bold.otf:Zone.Identifier'\n[Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//OpenSans-Bold.otf:Zone.Identifier'\n[Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//Josefin Sans Bold.otf'\n[Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//TheBoldFont-Bold.otf:Zone.Identifier'\n[Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//TrebuchetMS-Bold.otf'\n[Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//Benguiat Bold.otf:Zone.Identifier'\n[Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//Josefin Sans Bold.otf:Zone.Identifier'\n[Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//Montserrat-Bold.otf'\n[Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//TheBoldFont-Bold.otf'\n[Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//WorkSans-Bold.otf:Zone.Identifier'\n[Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//Roboto-Medium.otf:Zone.Identifier'\n[Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//TrebuchetMS-Bold.otf:Zone.Identifier'\n[Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//Benguiat Bold.otf'\n[Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//Roboto-Medium.otf'\n[Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//ProbaPro-Bold.otf:Zone.Identifier'\n[Parsed_subtitles_2 @ 0x55679f166940] Error opening memory font 'Montserrat-Bold.otf:Zone.Identifier'\n[Parsed_subtitles_2 @ 0x55679f166940] Error opening memory font 'OpenSans-Bold.otf:Zone.Identifier'\n[Parsed_subtitles_2 @ 0x55679f166940] Error opening memory font 'TheBoldFont-Bold.otf:Zone.Identifier'\n[Parsed_subtitles_2 @ 0x55679f166940] Error opening memory font 'Benguiat Bold.otf:Zone.Identifier'\n[Parsed_subtitles_2 @ 0x55679f166940] Error opening memory font 'Josefin Sans Bold.otf:Zone.Identifier'\n[Parsed_subtitles_2 @ 0x55679f166940] Error opening memory font 'WorkSans-Bold.otf:Zone.Identifier'\n[Parsed_subtitles_2 @ 0x55679f166940] Error opening memory font 'Roboto-Medium.otf:Zone.Identifier'\n[Parsed_subtitles_2 @ 0x55679f166940] Error opening memory font 'TrebuchetMS-Bold.otf:Zone.Identifier'\n[Parsed_subtitles_2 @ 0x55679f166940] Error opening memory font 'ProbaPro-Bold.otf:Zone.Identifier'\n[Parsed_subtitles_2 @ 0x55679f166940] Using font provider fontconfig\n[hevc @ 0x55679f2e4b40] Invalid NAL unit size in extradata.\n[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55679f2d9440] Failed to open codec in avformat_find_stream_info\n[NULL @ 0x55679f2e4b40] Invalid NAL unit size in extradata.\n[NULL @ 0x55679f2e4b40] Invalid NAL unit size (0 > 104958).\n[hevc @ 0x55679f2e4b40] Invalid NAL unit size in extradata.\n[NULL @ 0x55679f2e4b40] Invalid NAL unit size (0 > 1329).\nInput #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/tmp9f7ty76b505.mp4':\nMetadata:\nmajor_brand : isom\nminor_version : 512\ncompatible_brands: isomiso2avc1mp41\nencoder : Lavf60.3.100\nDuration: 00:04:13.59, start: 0.000000, bitrate: 275 kb/s\nStream #0:0[0x1](und): Video: hevc (avc1 / 0x31637661), none(tv, bt709), 1080x1080, 139 kb/s, SAR 1:1 DAR 1:1, 25 fps, 25 tbr, 12800 tbn (default)\nMetadata:\nhandler_name : ISO Media file produced by Google Inc. Created on: 08/03/2023.\nvendor_id : [0][0][0][0]\nencoder : Lavc60.3.100 libx264\nStream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 129 kb/s (default)\nMetadata:\nhandler_name : SoundHandler\nvendor_id : [0][0][0][0]\nInput #1, png_pipe, from 'watermark/watermark.png':\nDuration: N/A, bitrate: N/A\nStream #1:0: Video: png, ya8(pc, gbr/unknown/bt470m), 691x215, 25 fps, 25 tbr, 25 tbn\n[hevc_mp4toannexb @ 0x55679fb5a780] Invalid NAL unit type in extradata: 8\n[vist#0:0/hevc @ 0x55679f2e7d80] Error while opening decoder: Invalid data found when processing input\n[fc#0 @ 0x55679f156980] Error binding an input stream to complex filtergraph input scale2ref.\nError initializing complex filters: Invalid data found when processing input", "metrics": { "predict_time": 1.867947, "total_time": 168.494533 }, "output": "https://replicate.delivery/pbxt/ApMAw3hNTYaAMZ6Ryih3C7JC9TGuUZFJ17cwrIJFbWVGurVE/tmp4s0_3lro.mp4", "started_at": "2023-08-04T17:57:44.188769Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/vcs524rbbaoxjz47blr4l3kwxa", "cancel": "https://api.replicate.com/v1/predictions/vcs524rbbaoxjz47blr4l3kwxa/cancel" }, "version": "6e4065d943ae2c63af226aa618c176b51efd002466f914e2bd9d3584c98de135" }
Generated inffmpeg version N-111677-g84fb7b9459 Copyright (c) 2000-2023 the FFmpeg developers built with gcc 11 (Ubuntu 11.3.0-1ubuntu1~22.04.1) configuration: --enable-nonfree --enable-cuda-sdk --enable-cuvid --enable-libnpp --enable-libpulse --enable-libnpp --enable-nvenc --enable-fontconfig --enable-ffnvcodec --enable-libass --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64 libavutil 58. 14.100 / 58. 14.100 libavcodec 60. 22.100 / 60. 22.100 libavformat 60. 10.100 / 60. 10.100 libavdevice 60. 2.101 / 60. 2.101 libavfilter 9. 10.100 / 9. 10.100 libswscale 7. 3.100 / 7. 3.100 libswresample 4. 11.100 / 4. 11.100 -vsync is deprecated. Use -fps_mode Passing a number to -vsync is deprecated, use a string argument as described in the manual. [Parsed_subtitles_2 @ 0x55679f166940] libass API version: 0x1502000 [Parsed_subtitles_2 @ 0x55679f166940] libass source: tarball: 0.15.2 [Parsed_subtitles_2 @ 0x55679f166940] Shaper: FriBidi 1.0.8 (SIMPLE) HarfBuzz-ng 2.7.4 (COMPLEX) [Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//WorkSans-Bold.otf' [Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//OpenSans-Bold.otf' [Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//ProbaPro-Bold.otf' [Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//Montserrat-Bold.otf:Zone.Identifier' [Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//OpenSans-Bold.otf:Zone.Identifier' [Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//Josefin Sans Bold.otf' [Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//TheBoldFont-Bold.otf:Zone.Identifier' [Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//TrebuchetMS-Bold.otf' [Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//Benguiat Bold.otf:Zone.Identifier' [Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//Josefin Sans Bold.otf:Zone.Identifier' [Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//Montserrat-Bold.otf' [Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//TheBoldFont-Bold.otf' [Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//WorkSans-Bold.otf:Zone.Identifier' [Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//Roboto-Medium.otf:Zone.Identifier' [Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//TrebuchetMS-Bold.otf:Zone.Identifier' [Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//Benguiat Bold.otf' [Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//Roboto-Medium.otf' [Parsed_subtitles_2 @ 0x55679f166940] Loading font file '/src/fonts//ProbaPro-Bold.otf:Zone.Identifier' [Parsed_subtitles_2 @ 0x55679f166940] Error opening memory font 'Montserrat-Bold.otf:Zone.Identifier' [Parsed_subtitles_2 @ 0x55679f166940] Error opening memory font 'OpenSans-Bold.otf:Zone.Identifier' [Parsed_subtitles_2 @ 0x55679f166940] Error opening memory font 'TheBoldFont-Bold.otf:Zone.Identifier' [Parsed_subtitles_2 @ 0x55679f166940] Error opening memory font 'Benguiat Bold.otf:Zone.Identifier' [Parsed_subtitles_2 @ 0x55679f166940] Error opening memory font 'Josefin Sans Bold.otf:Zone.Identifier' [Parsed_subtitles_2 @ 0x55679f166940] Error opening memory font 'WorkSans-Bold.otf:Zone.Identifier' [Parsed_subtitles_2 @ 0x55679f166940] Error opening memory font 'Roboto-Medium.otf:Zone.Identifier' [Parsed_subtitles_2 @ 0x55679f166940] Error opening memory font 'TrebuchetMS-Bold.otf:Zone.Identifier' [Parsed_subtitles_2 @ 0x55679f166940] Error opening memory font 'ProbaPro-Bold.otf:Zone.Identifier' [Parsed_subtitles_2 @ 0x55679f166940] Using font provider fontconfig [hevc @ 0x55679f2e4b40] Invalid NAL unit size in extradata. [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55679f2d9440] Failed to open codec in avformat_find_stream_info [NULL @ 0x55679f2e4b40] Invalid NAL unit size in extradata. [NULL @ 0x55679f2e4b40] Invalid NAL unit size (0 > 104958). [hevc @ 0x55679f2e4b40] Invalid NAL unit size in extradata. [NULL @ 0x55679f2e4b40] Invalid NAL unit size (0 > 1329). Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/tmp9f7ty76b505.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf60.3.100 Duration: 00:04:13.59, start: 0.000000, bitrate: 275 kb/s Stream #0:0[0x1](und): Video: hevc (avc1 / 0x31637661), none(tv, bt709), 1080x1080, 139 kb/s, SAR 1:1 DAR 1:1, 25 fps, 25 tbr, 12800 tbn (default) Metadata: handler_name : ISO Media file produced by Google Inc. Created on: 08/03/2023. vendor_id : [0][0][0][0] encoder : Lavc60.3.100 libx264 Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 129 kb/s (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] Input #1, png_pipe, from 'watermark/watermark.png': Duration: N/A, bitrate: N/A Stream #1:0: Video: png, ya8(pc, gbr/unknown/bt470m), 691x215, 25 fps, 25 tbr, 25 tbn [hevc_mp4toannexb @ 0x55679fb5a780] Invalid NAL unit type in extradata: 8 [vist#0:0/hevc @ 0x55679f2e7d80] Error while opening decoder: Invalid data found when processing input [fc#0 @ 0x55679f156980] Error binding an input stream to complex filtergraph input scale2ref. Error initializing complex filters: Invalid data found when processing input
Want to make some of these yourself?
Run this model