Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JustCoww/slowedvideos
Big big scripts crazy
https://github.com/JustCoww/slowedvideos
Last synced: 3 months ago
JSON representation
Big big scripts crazy
- Host: GitHub
- URL: https://github.com/JustCoww/slowedvideos
- Owner: JustCoww
- License: gpl-3.0
- Created: 2022-03-03T08:40:16.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-04T21:35:30.000Z (almost 3 years ago)
- Last Synced: 2024-08-05T09:15:51.159Z (7 months ago)
- Language: Python
- Homepage:
- Size: 2.53 MB
- Stars: 1
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Slowed Videos Scripts
Various scritps from justcow.
# Install
```sh
pip install slowedvideos
```# Dependencies
You will need to have ffmpeg in your **PATH** for the "**downloadurl**" to work.
**Arch Based**
```sh
sudo pacman -S ffmpeg
```
**Debian Based**
```sh
sudo apt install ffmpeg
```
**Other**Just install ffmpeg and make it availabe in your **PATH**.
# Examples
**Downloading audio from soundcloud**
```python
from slowedvideos.audio import downloadurl# Variables
url = 'https://soundcloud.com/100gecs/gecgecgec'
output = 'downloaded' # It will download as .wavdownloadurl(url, output)
```
https://soundcloud.com/100gecs/gecgecgec**Slowing and adding reverb to the downloaded audio**
```python
from slowedvideos.audio import makeslowed# Variables
audio = 'downloaded.wav'
speed = 10 # This changes how slow the audio will be
output = 'slowed gecgecgec.wav'makeslowed(audio, speed, output)
```
https://soundcloud.com/justcoww/slowed-gecgecgec**Creating the video image**
```python
from slowedvideos.video import makevideo# Variables
cover = 'cover.jpg'
song = 'gecgecgec'
artist = '100 gecs'
toptext = '(Slowed + Reverb)'
video_output = 'video gecgecgec.png'makevideo(cover, song, artist, toptext, video_output)
```
**Creating the thumbnail image**
```python
from slowedvideos.video import makethumb# Variables
cover = 'cover.jpg'
thumb_output = 'thumb gecgecgec.png'makethumb(cover, thumb_output)
```
**Exporting the video**
```python
from slowedvideos.video import exportvideo# Variables
audio = 'slowed gecgecgec.wav'
image = 'video gecgecgec.png'
output = 'videofile gecgecgec.mp4'
mode = 'moviepy'exportvideo(audio, image, mode, output)
```
https://user-images.githubusercontent.com/68345611/158889533-050e7a14-7a11-4cee-8437-c6c9e9c77334.mp4