Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/bahrom04/frame-in-order
- Owner: bahrom04
- Created: 2023-05-24T19:19:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-26T05:09:21.000Z (5 months ago)
- Last Synced: 2024-07-26T06:32:37.328Z (5 months ago)
- Language: Python
- Homepage: https://twitter.com/patricbatemanuz
- Size: 17.6 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.ffmpeg
You 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 .srt
of 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