GithubHelp home page GithubHelp logo

baroq's Introduction

Generate a SD version of a normal video

See https://www.youtube.com/watch?v=PddIlnAdv68

Convert video into a .jpg sequence

ffmpeg -i video.mp4 -r 25 -qscale:v 2 -s 1920x1080 frames/frame-%05d.jpg

Use Stable Diffusion and img2img in batch

set the correct width & height, select a fixed seed, e.g. 234719090

Convert .jpg sequence back into video (with interpolation)

ffmpeg -y -r 25 -i output/frame-%05d.jpg -s 1920x1080 -b:v 12M -vcodec h264_nvenc -pix_fmt yuv420p -strict -2 -filter:v minterpolate='mi_mode=mci:me_mode=bidir:mc_mode=aobmc:vsbmc=1:fps=30',deflicker output_video.mp4

As above, with a specific starting frame

ffmpeg -y -r 25 -start_number 00090 -i output/frame-%05d.jpg -s 1920x1080 -b:v 12M -vcodec h264_nvenc -pix_fmt yuv420p -strict -2 -filter:v minterpolate='mi_mode=mci:me_mode=bidir:mc_mode=aobmc:vsbmc=1:fps=30',deflicker output_video.mp4

example

ffmpeg -i IMG_4338.MOV -r 25 -qscale:v 2 -s 1920x1080 frames/frame-%05d.jpg

Convert .mov to .mp4

ffmpeg -i output_video.mov -q:v 0 output_video.mp4

baroq's People

Contributors

suttree avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.