Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bahrom04/frame-in-order

Twitter frame in order bot
https://github.com/bahrom04/frame-in-order

Last synced: about 1 month ago
JSON representation

Twitter frame in order bot

Awesome Lists containing this project

README

        

# Every Frame In Order Bot(Twitter)

Twitter Bot posts every 30 minutes every second of movie or TV series in order such as Spongebob,Breaking Bad and American Psyho

Requirements



  • 1.python3 version=>3.8 or later


  • 3.ffmpegYou will install it from website.Here is tutorial for Windows and Ubuntu

Ffmpeg


Create folder and put your mp.4 movie inside this folder.You also need to get subtitle file like .srtof this movie and add it by using ffmpeg tutorial


Open terminal(cmd) inside this folder and write ffmpeg -i input_file.mp4 -r fps_number output_file.mp4 your movie name and write 1 instead of fps_number to get 1 frame in every second of the movie then your output_file name


Then once you finished you need to split your 1fps movie to frames by this command ffmpeg -i input_file.mp4 image2%.png

And results should be like this

![repo](https://github.com/bahrom04/Sotqin-kinosidan-lavhalar/assets/116780481/148979af-f8be-4587-9963-7841102b4f76)

Code


Download packages



pip install -r requirements.txt

Create python file for example main.py inside folder which you splitted frames and paste code which is written inbot.py in this repository


Put your BEARER_TOKEN,CONSUMER_KEY,CONSUMER_SECRET,ACCES_TOKEN,ACCES_TOKEN_SECRET,movie name,total number of frames


These tokens you can get from Twitter Developer Portal




That's it!. UseTask scheduler in Windows to automate your run time




Don't forget to give star and feel free to contact


Special thank's to Pigeonburger for the idea