fix
This commit is contained in:
parent
a85cc121ea
commit
cd4f144939
|
@ -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()
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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]])
|
Loading…
Reference in New Issue