![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
齐名南
这个作者很懒,什么都没留下…
展开
-
FFmpeg
ffmpeg 用于将视频切割成特定时长的脚本ffmpeg 可以加入这里加了个-loglevel quiet 参数 去除了ffmpeg多余的输出信息import subprocessdef 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 · 259 阅读 · 0 评论 -
shell 用技巧
1:查看一个目录是否已经mount --bind执行 mountpoint -q /test/mountecho $? 如果是0表示已经mountmountpoint -q /test/mount || mount -o bind /some/directory/here /test/mount原创 2021-10-15 19:40:13 · 476 阅读 · 0 评论 -
监测日志文件如果不更新则重启动程序
file_path0=$(cd $(dirname $0); pwd)file_path1=${file_path0}/logger/check.txtfunction 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 · 235 阅读 · 0 评论 -
shell 文件开启
PyTorch模型的加及部署https://zhuanlan.zhihu.com/p/151406969?from_voters_page=true&ivk_sa=1024320u原创 2021-09-14 13:44:55 · 181 阅读 · 0 评论