ddvinh1/audio-lip 🔢🖼️✓❓ → 🖼️

▶️ 84 runs 📅 Sep 2025 ⚙️ Cog 0.16.3
audio-to-video lipsync

About

Example Output

Output

Performance Metrics

1.59s Prediction Time
1.61s Total Time
All Input Parameters
{
  "fps": 25,
  "face": "https://replicate.delivery/pbxt/Nh4WAtTBMERaMTHb7xMwN3pL4WD6DMCMTkEipivEth5zlOyZ/images.jpg",
  "pads": "0 10 0 0",
  "audio": "https://replicate.delivery/pbxt/Nh4WAeflIw5hMCu8I5052dyse0jJeBSqLKUyuUXCGUw7eR8e/50%20Greatest%20Movie%20Quotes%20of%20All%20Time%20-%20The%20Why%20%28mp3cut.net%29.mp3",
  "smooth": true,
  "out_height": 480
}
Input Parameters
box Type: arrayDefault: -1,-1,-1,-1
Constant face bbox: top bottom left right (-1 disabled)
fps Type: numberDefault: 25
FPS if using static image
crop Type: arrayDefault: 0,-1,0,-1
Crop region: top bottom left right (-1 auto)
face (required) Type: string
Input face video or single image
pads Type: arrayDefault: 0,10,0,0
Padding: top bottom left right
audio (required) Type: string
Input audio or video (audio will be extracted)
rotate Type: booleanDefault: false
Rotate input video 90 degrees clockwise
nosmooth Type: booleanDefault: false
Disable bbox smoothing
out_height Type: integerDefault: 480
Output video height (e.g., 480 or 720)
model_variant Default: wav2lip
Choose base or GAN model
resize_factor Type: integerDefault: 1
Downscale factor for frames before processing
wav2lip_batch_size Type: integerDefault: 128
Batch size
Output Schema

Output

Type: stringFormat: uri

Example Execution Logs
Moving inference.model to cuda
Moving inference.detector_model to cuda
-> run: --checkpoint_path checkpoints/wav2lip_gan.pth --face /tmp/tmp_184tmuximages.jpg --audio /tmp/tmp313z3tsd50 Greatest Movie Quotes of All Time - The Why (mp3cut.net).mp3 --pads 0 10 0 0 --fps 25.0 --out_height 480
Number of frames available for inference: 1
Extracting raw audio...
ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil      56. 70.100 / 56. 70.100
libavcodec     58.134.100 / 58.134.100
libavformat    58. 76.100 / 58. 76.100
libavdevice    58. 13.100 / 58. 13.100
libavfilter     7.110.100 /  7.110.100
libswscale      5.  9.100 /  5.  9.100
libswresample   3.  9.100 /  3.  9.100
libpostproc    55.  9.100 / 55.  9.100
Input #0, mp3, from '/tmp/tmp313z3tsd50 Greatest Movie Quotes of All Time - The Why (mp3cut.net).mp3':
Metadata:
artist          : The Why
title           : 50 Greatest Movie Quotes of All Time
encoder         : Lavf61.7.100
Duration: 00:00:07.20, start: 0.023021, bitrate: 321 kb/s
Stream #0:0: Audio: mp3, 48000 Hz, stereo, fltp, 320 kb/s
Metadata:
encoder         : Lavc61.19
Stream mapping:
Stream #0:0 -> #0:0 (mp3 (mp3float) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, wav, to 'temp/temp.wav':
Metadata:
IART            : The Why
INAM            : 50 Greatest Movie Quotes of All Time
ISFT            : Lavf58.76.100
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s
Metadata:
encoder         : Lavc58.134.100 pcm_s16le
size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
size=    1343kB time=00:00:07.15 bitrate=1538.3kbits/s speed= 446x
video:0kB audio:1343kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.010180%
(80, 574)
Length of mel chunks: 176
face detect time: 0.1676015853881836
  0%|          | 0/2 [00:00<?, ?it/s]
 50%|█████     | 1/2 [00:00<00:00,  1.42it/s]
100%|██████████| 2/2 [00:00<00:00,  2.56it/s]
100%|██████████| 2/2 [00:00<00:00,  2.28it/s]
wav2lip prediction time: 0.8783509731292725
ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil      56. 70.100 / 56. 70.100
libavcodec     58.134.100 / 58.134.100
libavformat    58. 76.100 / 58. 76.100
libavdevice    58. 13.100 / 58. 13.100
libavfilter     7.110.100 /  7.110.100
libswscale      5.  9.100 /  5.  9.100
libswresample   3.  9.100 /  3.  9.100
libpostproc    55.  9.100 / 55.  9.100
Input #0, avi, from 'temp/result.avi':
Metadata:
software        : Lavf59.27.100
Duration: 00:00:07.04, start: 0.000000, bitrate: 183 kb/s
Stream #0:0: Video: mpeg4 (Simple Profile) (DIVX / 0x58564944), yuv420p, 250x200 [SAR 1:1 DAR 5:4], 173 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, wav, from 'temp/temp.wav':
Metadata:
artist          : The Why
title           : 50 Greatest Movie Quotes of All Time
encoder         : Lavf58.76.100
Duration: 00:00:07.16, bitrate: 1536 kb/s
Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))
Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x5738f6c834c0] using SAR=1/1
[libx264 @ 0x5738f6c834c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x5738f6c834c0] profile High, level 1.2, 4:2:0, 8-bit
[libx264 @ 0x5738f6c834c0] 264 - core 163 r3060 5db6aa6 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'results/result_voice.mp4':
Metadata:
software        : Lavf59.27.100
encoder         : Lavf58.76.100
Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 250x200 [SAR 1:1 DAR 5:4], q=2-31, 25 fps, 12800 tbn
Metadata:
encoder         : Lavc58.134.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s
Metadata:
encoder         : Lavc58.134.100 aac
frame=    1 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
frame=  176 fps=0.0 q=-1.0 Lsize=     140kB time=00:00:07.14 bitrate= 160.8kbits/s speed=38.9x
video:22kB audio:112kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 4.728163%
[libx264 @ 0x5738f6c834c0] frame I:1     Avg QP:20.47  size:  6816
[libx264 @ 0x5738f6c834c0] frame P:92    Avg QP:21.94  size:   132
[libx264 @ 0x5738f6c834c0] frame B:83    Avg QP:25.86  size:    36
[libx264 @ 0x5738f6c834c0] consecutive B-frames: 30.1% 14.8% 18.8% 36.4%
[libx264 @ 0x5738f6c834c0] mb I  I16..4: 16.8% 72.1% 11.1%
[libx264 @ 0x5738f6c834c0] mb P  I16..4:  0.2%  0.5%  0.0%  P16..4:  5.2%  1.8%  1.0%  0.0%  0.0%    skip:91.3%
[libx264 @ 0x5738f6c834c0] mb B  I16..4:  0.0%  0.2%  0.0%  B16..8:  3.8%  0.3%  0.0%  direct: 0.1%  skip:95.5%  L0:51.7% L1:45.8% BI: 2.5%
[libx264 @ 0x5738f6c834c0] 8x8 transform intra:72.5% inter:78.7%
[libx264 @ 0x5738f6c834c0] coded y,uvDC,uvAC intra: 37.5% 49.1% 30.3% inter: 1.6% 1.4% 0.1%
[libx264 @ 0x5738f6c834c0] i16 v,h,dc,p: 89%  0%  8%  2%
[libx264 @ 0x5738f6c834c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 41%  6% 31%  4%  4%  4%  3%  3%  3%
[libx264 @ 0x5738f6c834c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 17% 11%  4% 13%  9%  6%  5%  3%
[libx264 @ 0x5738f6c834c0] i8c dc,h,v,p: 29% 11% 53%  8%
[libx264 @ 0x5738f6c834c0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x5738f6c834c0] ref P L0: 66.7% 12.0% 14.7%  6.7%
[libx264 @ 0x5738f6c834c0] ref B L0: 76.3% 16.2%  7.5%
[libx264 @ 0x5738f6c834c0] ref B L1: 97.2%  2.8%
[libx264 @ 0x5738f6c834c0] kb/s:24.91
[aac @ 0x5738f6c847c0] Qavg: 209.068
1.2380495071411133
Moving inference.model to cpu
Moving inference.detector_model to cpu
Version Details
Version ID
38ba3b0aef47172a18d47959db38fa939d02fdba5162a3355aab80451ec13894
Version Created
September 12, 2025
Run on Replicate →