No Description

liyuyi@c-top.com.cn e1a5c2fce0 add 3 years ago
.idea 64ac8db30c add 3 years ago
config e1a5c2fce0 add 3 years ago
data e121efe736 add 3 years ago
get_material_and_script 6294e3eef0 add 3 years ago
logs e121efe736 add 3 years ago
time_task e1a5c2fce0 add 3 years ago
__init__.py 5e6e6df358 'init' 3 years ago
asr_client.py e1a5c2fce0 add 3 years ago
common_func.py a305751093 add 3 years ago
database.py e1a5c2fce0 add 3 years ago
main.py e1a5c2fce0 add 3 years ago
readme.md 64ac8db30c add 3 years ago

readme.md

项目功能介绍

1、每周日从巨量引擎获取近一周的优质素材。 (项目名称可以配置)
(素材数据存为了两张表:ctop_ai_material_info_from_ocean_engine 和 ctop_ai_video_info_from_ocean_engine)
2、每周一导出指定项目近一周的公司内部高质量&低质量素材,巨量引擎优质素材的脚本。(项目名称可以配置)
3、每次请求腾讯云的语音转脚本服务,会过根据signature滤掉已经请求过的素材。

项目启动说明

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