pad videos
This commit is contained in:
parent
3197fe5d86
commit
8deac50ef3
7
main.py
7
main.py
@ -62,6 +62,13 @@ async def send_post(post: E621Post, tag_list: List[str]):
|
|||||||
webm.write(file.read())
|
webm.write(file.read())
|
||||||
ffmpeg\
|
ffmpeg\
|
||||||
.input(str(src_path)) \
|
.input(str(src_path)) \
|
||||||
|
.filter('pad', {
|
||||||
|
'width': 'ceil(iw/2)*2',
|
||||||
|
'height': 'ceil(ih/2)*2',
|
||||||
|
'x': '0',
|
||||||
|
'y': '0',
|
||||||
|
'color': 'Black'
|
||||||
|
})\
|
||||||
.output(str(mp4_path), vcodec='libx264', crf='26')\
|
.output(str(mp4_path), vcodec='libx264', crf='26')\
|
||||||
.run()
|
.run()
|
||||||
s3 = boto3.client('s3', aws_access_key_id=os.environ['AWS_ACCESS_KEY'], aws_secret_access_key=os.environ['AWS_SECRET_KEY'])
|
s3 = boto3.client('s3', aws_access_key_id=os.environ['AWS_ACCESS_KEY'], aws_secret_access_key=os.environ['AWS_SECRET_KEY'])
|
||||||
|
Loading…
Reference in New Issue
Block a user