~~~ def show_chinese(): # 显示中文 plt.rcParams["font.sans-serif"] = ['SimHei', 'simsun', 'Songti SC', 'STFangsong'] plt.rcParams["axes.unicode_minus"] = ...
~~~ cmd_frames = f"ffmpeg -i {video_path} -filter:v fps=1/{space} {output_img_path} -loglevel quiet" my_print(f"执行的ffmpeg命令:{cmd_frames}") ffmpeg_code...
~~~ x, y, w, h = watermark.split(",") # https://www.jianshu.com/p/dfcfd4432367 # x,y的起始值是从1开始,从0开始会报错 if int(x) == 0: x = 1 if int(y) == 0: y = 1 w, h...
~~~ srt_path = srt_path.replace('\\', '\\\\').replace(':', '\:') # video+srt+硬字幕,默认字体和颜色 # cmd_mp4_srt = f"{FFMPEG_PATH} -i {third_video_path} -vf sub...
~~~ import subprocess def video_douyin(video_path): """ 生成抖音格式的视频 https://blog.csdn.net/weixin_28676289/article/details/112157079 htt...
>> 启动:gunicorn app_fastapi:app -c base_gunicorn.py > > pstree -ap|grep gunicorn > > kill -HUP 28144(优雅重启) > > tail -f log/gunicorn_error.log > > killa...
~~~ import multiprocessing import os import time """ 线上的配置信息 """ # 并行工作进程数 核心数+1个 # workers = multiprocessing.cpu_count() + 1 workers = 1 bind = '0.0....
- 创建:conda create -n base_capability python=3.9 - cd /data/python_project - git clone git@x.x.x.x:yangxy/basecapability.git - conda activate base_capa...
- centos7 - 生成:ssh-keygen -t rsa -b 4096 -C "xxx@xx.com" - cd /home/tomcat01/.ssh - cat id_rsa.pub - 公司仓库:https://x.x.x.x:xxxx/-/profile/keys - githu...
基于PySceneDetect的视频场景变换侦测与处理 [html地址](https://yangxunyu.xyz/upload/2023/11/%E5%9F%BA%E4%BA%8EPySceneDetect%E7%9A%84%E8%A7%86%E9%A2%91%E5%9C%BA%E6%99%AF...