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