Coder Social home page Coder Social logo

twitchclip2vertical's Introduction

Twitch clips to vertical video (for TikTok, Youtube Shorts, etc.)

๐Ÿค– IA which creates automatically vertical content from a twitch clip (works with OpenCV face detection, ffmpeg & imagemagick)

โš ๏ธ Important: This is a work in progress, and the code is not yet ready for production.

โš ๏ธ Important 2: The clips need to be in this kind of format โ†’ fixed webcam with only one face and a game or other activity.


Heavily inspired by the following repertoires :

โ™ฅ๏ธ Many thanks to you @EhsanMrh & @c0rnf13ld


How to use it

First, you need to install the requirements :

pip install -r requirements.txt

Program works with python 3.8

Install Imagemagick & Ffmpeg.

Then, you need to fill the resources/clips.txt file with the twitch clips you want to convert :

https://clips.twitch.tv/.../...
https://clips.twitch.tv/.../...
...

Finally, you can run the script :

chmod a+x clip-gen.py
./clip-gen.py

Your videos will be in the folder resources/faces_videos.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Tips

๐Ÿ’Œ If you want to support me, you can do it here : https://ko-fi.com/gantoin

License

MIT

twitchclip2vertical's People

Contributors

gantoin avatar renovate[bot] avatar

Stargazers

George avatar Abhishek Yadav avatar allanfk avatar  avatar c0rn avatar

Watchers

 avatar Kostas Georgiou avatar

Forkers

ahmhive

twitchclip2vertical's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

pip_requirements
requirements.txt
  • opencv-python ==4.10.0.82
  • ffmpeg-python ==0.2
  • batch_face ==1.3.0
  • numpy ==1.24.2
  • tqdm ==4.64.1
  • pandas ==1.5.2
  • requests ==2.28.2
  • urllib3 ==1.26.14
  • colorama ==0.4.6
  • config ==0.5.1

  • Check this box to trigger a request for Renovate to run again on this repository

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.