This commit is contained in:
lwl0608 2024-02-19 20:03:04 +08:00
parent a85cc121ea
commit cd4f144939
3 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,12 @@
from lib.all import *
import ffmpy
input_file = "v1.mp4"
output_file = "v1_h265.mp4"
ff = ffmpy.FFmpeg(
inputs={input_file: None},
outputs={output_file: '-c:v libx265'}
)
ff.run()

View File

@ -40,3 +40,8 @@ class Mysql:
with self.conn.cursor() as cursor:
cursor.execute(sql)
return cursor.fetchall()
mysql_db_vas = Mysql(
"rm-bp11t1616a1kjvmx5.mysql.rds.aliyuncs.com", 3306, "vas", "root", "Wishpal2024"
)

12
vas/get_all_order_ids.py Normal file
View File

@ -0,0 +1,12 @@
from lib.all import *
sql = '''
select id from vas_order where order_status>0;
'''
csv_ = Csv("all_order_ids.csv", ["id"])
docs = mysql_db_vas.query(sql)
for doc in docs:
_id = safe_get_str(doc, "id")
csv_.append([[_id]])