|
@@ -0,0 +1,41 @@
|
|
|
+**项目功能介绍**
|
|
|
+
|
|
|
+1、每周日从巨量引擎获取近一周的优质素材。 (项目名称可以配置)
|
|
|
+ (素材数据存为了两张表:ctop_ai_material_info_from_ocean_engine 和 ctop_ai_video_info_from_ocean_engine)
|
|
|
+
|
|
|
+2、每周一导出指定项目近一周的公司内部高质量&低质量素材,巨量引擎优质素材的脚本。(项目名称可以配置)
|
|
|
+
|
|
|
+3、每次请求腾讯云的语音转脚本服务,会过根据md5滤掉已经请求过的素材。
|
|
|
+
|
|
|
+**项目启动说明**
|
|
|
+
|
|
|
+1、git clone 最新代码
|
|
|
+ git clone http://git.tjyourong.com.cn/liyuyi/video-to-word.git
|
|
|
+
|
|
|
+2、启动获取腾讯云语音转脚本的服务
|
|
|
+切换到目录: cd /data/pythonProject/video-to-word
|
|
|
+nohup /data/Miniconda3/envs/video-to-word/bin/python -u /data/pythonProject/video-to-word/main.py >/dev/null 2>&1 &
|
|
|
+
|
|
|
+3、定时任务配置
|
|
|
+3-1 定期从巨量引擎获取优质素材,并转化为脚本。每周日晚上10:30执行一次
|
|
|
+30 20 * * 7 /data/Miniconda3/envs/video-to-word/bin/python -u /data/pythonProject/video-to-word/get_video_from_ocean_engine.py >> /data/pythonProject/video-to-word/logs/get_video_from_ocean_engine.log &
|
|
|
+
|
|
|
+-- for test
|
|
|
+nohup /data/Miniconda3/envs/video-to-word/bin/python -u /data/pythonProject/video-to-word/get_video_from_ocean_engine.py >> /data/pythonProject/video-to-word/logs/get_video_from_ocean_engine.log &
|
|
|
+
|
|
|
+3-2 每周导出内部高质量&低质量,巨量引擎优质素材的脚本。每周一早上08:30 执行一次
|
|
|
+30 8 * * 1 /data/Miniconda3/envs/video-to-word/bin/python -u /data/pythonProject/video-to-word/get_high_quality_script.py >> /data/pythonProject/video-to-word/logs/get_high_quality_script.log &
|
|
|
+
|
|
|
+-- for test
|
|
|
+nohup /data/Miniconda3/envs/video-to-word/bin/python -u /data/pythonProject/video-to-word/get_high_quality_script.py >> /data/pythonProject/video-to-word/logs/get_high_quality_script.log &
|
|
|
+
|
|
|
+
|
|
|
+4、查看执行日志
|
|
|
+cd /data/pythonProject/video-to-word/logs
|
|
|
+tail -f /data/pythonProject/video-to-word/logs/get_high_quality_script.log
|
|
|
+tail -f /data/pythonProject/video-to-word/logs/get_video_from_ocean_engine.log
|
|
|
+
|
|
|
+
|
|
|
+配置定时任务:
|
|
|
+查看定时任务:crontab -l
|
|
|
+编辑定时任务:crontab -e
|