diff options
| author | Tolmachev Igor <me@igorek.dev> | 2024-09-15 13:14:54 +0300 |
|---|---|---|
| committer | Tolmachev Igor <me@igorek.dev> | 2024-09-15 13:14:54 +0300 |
| commit | 19606a6ac95e83a33c1173dba3e5d6f9f8fb9f94 (patch) | |
| tree | 206a68ad48ba728c46bf84137106f48f5d7d4595 /README.md | |
| parent | 551e69c5ebd7a227478105ac1cc91876f1c2f601 (diff) | |
| download | video2story-19606a6ac95e83a33c1173dba3e5d6f9f8fb9f94.tar.gz video2story-19606a6ac95e83a33c1173dba3e5d6f9f8fb9f94.zip | |
Add README and fix package props
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 37 |
1 files changed, 37 insertions, 0 deletions
| @@ -0,0 +1,37 @@ | |||
| 1 | # video2story | ||
| 2 | |||
| 3 | **video2story** is a Python tool that allows you to convert and upload videos to your Telegram stories. It automatically cuts the video into segments and uploads them to your Telegram account. | ||
| 4 | |||
| 5 | ## Installation | ||
| 6 | |||
| 7 | To install `video2story`, use pip: | ||
| 8 | |||
| 9 | ```bash | ||
| 10 | pip install video2story | ||
| 11 | ``` | ||
| 12 | |||
| 13 | ## Usage | ||
| 14 | |||
| 15 | ### 1. Process the video | ||
| 16 | |||
| 17 | ```bash | ||
| 18 | video2story video input.mp4 output_dir/ | ||
| 19 | ``` | ||
| 20 | |||
| 21 | First, split the video into segments. Replace `input.mp4` with the path to your video file and `output_dir/` with the directory where you want to save the processed segments: | ||
| 22 | |||
| 23 | By default, the video will be cut into 60-second segments. To change that, use the `-d` option and specify the duration in seconds: | ||
| 24 | |||
| 25 | ### 2. Upload the processed video | ||
| 26 | |||
| 27 | ```bash | ||
| 28 | video2story PHONE_NUMBER output_dir/ -p friends | ||
| 29 | ``` | ||
| 30 | |||
| 31 | Replace `PHONE_NUMBER` with your Telegram phone number and `output_dir/` with the directory containing the processed video segments. | ||
| 32 | |||
| 33 | The `-p` option allows you to choose the privacy level for your story. For more options and detailed information, use the `--help` flag. | ||
| 34 | |||
| 35 | ## License | ||
| 36 | |||
| 37 | This project is licensed under the GPL (GNU General Public License). See the [LICENSE](/LICENSE) file for more details. | ||
