lucataco/rembg-video ❓🖼️📝 → 🖼️
About
Video Background Removal

Example Output
Output
Performance Metrics
3.06s
Prediction Time
3.07s
Total Time
All Input Parameters
{ "mode": "Fast", "video": "https://replicate.delivery/pbxt/KXHGbDF542JEihv6hALga9vfuMUHiYrvkF0aD6C38gll25Zz/input.mp4", "background_color": "#FFFFFF" }
Input Parameters
- mode
- Mode of operation
- video (required)
- Grayscale input image
- background_color
- Background color in hex format (e.g., '#FFFFFF' for white)
Output Schema
Output
Example Execution Logs
Settings -> Mode=fast, Device=cuda:0, Torchscript=disabled Background color: [255, 255, 255] Processing frame 1 Processing frame 2 Processing frame 3 Processing frame 4 Processing frame 5 Processing frame 6 Processing frame 7 Processing frame 8 Processing frame 9 Processing frame 10 Processing frame 11 Processing frame 12 Processing frame 13 Processing frame 14 Processing frame 15 Processing frame 16 Processing frame 17 Processing frame 18 Processing frame 19 Processing frame 20 Processing frame 21 Processing frame 22 Processing frame 23 Processing frame 24 Processing frame 25 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, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/tmp.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 encoder : Lavf59.27.100 Duration: 00:00:03.13, start: 0.000000, bitrate: 1285 kb/s Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 1024x576 [SAR 1:1 DAR 16:9], 1282 kb/s, 8 fps, 8 tbr, 16384 tbn, 8 tbc (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] Stream mapping: Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264)) Press [q] to stop, [?] for help [libx264 @ 0x5c9f61baad00] using SAR=1/1 [libx264 @ 0x5c9f61baad00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512 [libx264 @ 0x5c9f61baad00] profile High 4:4:4 Predictive, level 3.1, 4:2:0, 8-bit [libx264 @ 0x5c9f61baad00] 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=0 mixed_ref=1 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=0 chroma_qp_offset=0 threads=15 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=2 keyint=250 keyint_min=8 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=0 Output #0, mp4, to '/tmp/output.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 encoder : Lavf58.76.100 Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 1024x576 [SAR 1:1 DAR 16:9], q=2-31, 8 fps, 16384 tbn (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] encoder : Lavc58.134.100 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A frame= 1 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x frame= 25 fps=0.0 q=-1.0 Lsize= 2425kB time=00:00:03.00 bitrate=6622.1kbits/s speed=15.9x video:2424kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.039922% [libx264 @ 0x5c9f61baad00] frame I:1 Avg QP: 0.00 size:115078 [libx264 @ 0x5c9f61baad00] frame P:24 Avg QP: 0.00 size: 98614 [libx264 @ 0x5c9f61baad00] mb I I16..4: 57.1% 8.3% 34.6% [libx264 @ 0x5c9f61baad00] mb P I16..4: 9.1% 3.6% 3.9% P16..4: 20.6% 9.6% 10.2% 0.0% 0.0% skip:43.1% [libx264 @ 0x5c9f61baad00] 8x8 transform intra:19.2% inter:54.0% [libx264 @ 0x5c9f61baad00] coded y,uvDC,uvAC intra: 80.8% 63.8% 62.6% inter: 34.3% 34.8% 34.6% [libx264 @ 0x5c9f61baad00] i16 v,h,dc,p: 28% 70% 2% 0% [libx264 @ 0x5c9f61baad00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 53% 15% 0% 1% 0% 1% 0% 0% [libx264 @ 0x5c9f61baad00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 62% 3% 2% 3% 2% 3% 1% 1% [libx264 @ 0x5c9f61baad00] i8c dc,h,v,p: 23% 53% 24% 0% [libx264 @ 0x5c9f61baad00] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x5c9f61baad00] ref P L0: 80.5% 12.1% 6.0% 1.4% [libx264 @ 0x5c9f61baad00] kb/s:6353.42
Version Details
- Version ID
c18392381d1b5410b5a76b9b0c58db132526d3f79fe602e04e0d80cb668df509
- Version Created
- December 16, 2024