
shell
齐名南
这个作者很懒,什么都没留下…
展开
-
FFmpeg
ffmpeg 用于将视频切割成特定时长的脚本 ffmpeg 可以加入这里加了个-loglevel quiet 参数 去除了ffmpeg多余的输出信息 import subprocess def getVideoTime(path): cmdline = 'ffprobe "%s" -show_entries format=duration -of compact=p=0:nk=1 -v 0'%path gettime=subprocess.check_output(cmdline,.原创 2021-11-27 11:15:48 · 326 阅读 · 0 评论 -
shell 用技巧
1:查看一个目录是否已经mount --bind 执行 mountpoint -q /test/mount echo $? 如果是0表示已经mount mountpoint -q /test/mount || mount -o bind /some/directory/here /test/mount原创 2021-10-15 19:40:13 · 523 阅读 · 0 评论 -
监测日志文件如果不更新则重启动程序
file_path0=$(cd $(dirname $0); pwd) file_path1=${file_path0}/logger/check.txt function kill_detect(){ file=${file_path0}/detect_pid_list.txt kill $(cat $file) } function start_detect(){ nohup python main3.py & } function whether_changed(){ e.原创 2021-09-22 15:18:24 · 286 阅读 · 0 评论 -
shell 文件开启
PyTorch模型的加及部署 https://zhuanlan.zhihu.com/p/151406969?from_voters_page=true&ivk_sa=1024320u原创 2021-09-14 13:44:55 · 233 阅读 · 0 评论