Skip to content

willb0/pymerge_s3_videos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

pymerge_s3_videos

This is a quick CLI tool I threw together to merge some videos in an s3 bucket using python, moviePy, and boto3

Python requirements

python3 -m venv env
source env/bin/activate
pip install -r requirements.txt

AWS requirements

This tool assumes that you have both created a user to access your AWS resources and also have both your access key and the private access key If you need help, check this link out Once you have your credentials, store them in a creds.json file

{
"id":"your access key",
"secret":"your secret key",
"server_location":"us-east-2",
}

AWS storage

Upload as many videos as youd like to an s3 bucket, take note of their filenames I used two small videos in my example

Run script

To run the script, make sure you are in the directory with env activated and run:

python main.py [creds_file] [video_names] [bucket_name]

where creds_file is your creds.json path, video names is a string (important to pass a string), and bucket_name is the name of your bucket for example,

python main.py creds.json "videotest1.mp4 videotest2.mp4" aws-bucket-videos

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages