fofr/frames-to-video 🔢🖼️📝 → 🖼️

▶️ 1.6K runs 📅 Jun 2023 ⚙️ Cog 0.6.1 🔗 GitHub ⚖️ License
image-to-video

About

Convert a set of frames to a video

Example Output

Output

Performance Metrics

1.93s Prediction Time
3.46s Total Time
All Input Parameters
{
  "fps": 4,
  "frames_zip": "https://replicate.delivery/pbxt/IyPciuTwd9miRkQm3AVd4ZZrNta1i1M8rKs7vJtpy83uAIIi/frames.zip"
}
Input Parameters
fps Type: numberDefault: 24Range: 1 - ∞
Number of frames per second of video
frames_zip Type: string
ZIP file containing frames
frames_urls Type: string
Newline-separated URLs of frames to combine into a video
Output Schema

Output

Type: stringFormat: uri

Example Execution Logs
ffmpeg version 4.3.6-0+deb11u1 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 10 (Debian 10.2.1-6)
configuration: --prefix=/usr --extra-version=0+deb11u1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --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-librsvg --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-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil      56. 51.100 / 56. 51.100
libavcodec     58. 91.100 / 58. 91.100
libavformat    58. 45.100 / 58. 45.100
libavdevice    58. 10.100 / 58. 10.100
libavfilter     7. 85.100 /  7. 85.100
libavresample   4.  0.  0 /  4.  0.  0
libswscale      5.  7.100 /  5.  7.100
libswresample   3.  7.100 /  3.  7.100
libpostproc    55.  7.100 / 55.  7.100
Input #0, image2, from '/tmp/frames/out%03d.png':
Duration: 00:00:00.44, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgb24(pc), 1046x1046, 25 fps, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0x5637edc5a040] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x5637edc5a040] profile High, level 3.2, 4:2:0, 8-bit
[libx264 @ 0x5637edc5a040] 264 - core 160 r3011 cde9a93 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - 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=12 lookahead_threads=2 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=4 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 '/tmp/out.mp4':
Metadata:
encoder         : Lavf58.45.100
Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1046x1046, q=-1--1, 4 fps, 16384 tbn, 4 tbc
Metadata:
encoder         : Lavc58.91.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame=   11 fps=0.0 q=-1.0 Lsize=     140kB time=00:00:02.00 bitrate= 572.3kbits/s speed=2.39x
video:139kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.685462%
[libx264 @ 0x5637edc5a040] frame I:1     Avg QP:13.19  size: 36012
[libx264 @ 0x5637edc5a040] frame P:3     Avg QP:19.59  size: 12898
[libx264 @ 0x5637edc5a040] frame B:7     Avg QP:21.52  size:  9529
[libx264 @ 0x5637edc5a040] consecutive B-frames:  9.1% 18.2%  0.0% 72.7%
[libx264 @ 0x5637edc5a040] mb I  I16..4: 35.8% 35.1% 29.2%
[libx264 @ 0x5637edc5a040] mb P  I16..4:  1.2%  3.9%  3.2%  P16..4:  9.2%  6.1%  3.4%  0.0%  0.0%    skip:72.9%
[libx264 @ 0x5637edc5a040] mb B  I16..4:  0.3%  1.1%  1.3%  B16..8: 12.0%  6.5%  2.6%  direct: 1.2%  skip:75.0%  L0:43.6% L1:51.4% BI: 5.0%
[libx264 @ 0x5637edc5a040] 8x8 transform intra:38.0% inter:44.6%
[libx264 @ 0x5637edc5a040] coded y,uvDC,uvAC intra: 44.0% 12.5% 0.8% inter: 8.2% 2.2% 0.0%
[libx264 @ 0x5637edc5a040] i16 v,h,dc,p: 54% 38%  5%  3%
[libx264 @ 0x5637edc5a040] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 20% 26%  3%  3%  3%  3%  5%  3%
[libx264 @ 0x5637edc5a040] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 37% 12%  6%  4%  6%  3%  6%  5%
[libx264 @ 0x5637edc5a040] i8c dc,h,v,p: 87%  4%  8%  1%
[libx264 @ 0x5637edc5a040] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x5637edc5a040] ref P L0: 58.8%  3.1%  7.3% 30.8%
[libx264 @ 0x5637edc5a040] ref B L0: 68.0% 26.2%  5.8%
[libx264 @ 0x5637edc5a040] ref B L1: 90.4%  9.6%
[libx264 @ 0x5637edc5a040] kb/s:411.36
Version Details
Version ID
f55350b82ee3d07b0a2dd329df57dd97dedb5a08daddbdd6580d3cd473eaff1d
Version Created
June 9, 2023
Run on Replicate →