FFmpeg一键切片并发布

萌咖大佬写出的一个视频转码切片后自动上传至国内cdn的脚本,脚本默认提供上传到语雀cdn的脚本、采用多线程上传,这里默认10线程,基本上可以很大程度上提高视频的播放速度。 教程来源:https://www.moerats.com/archives/1024/项目源码 GitHub:https://github.com/MoeClub/Note/tree/master/ffmpeg示例: 冰雪奇缘2 (无字幕视频源切片 + WebVTT格式外挂字幕 + 语雀CDN); 视频条可随意拖动. 示例地址: https://api.moeclub.org/P…

Debian10 启用BBR加速

环境:sudo cat /proc/versionLinux version 4.19.0-16-amd64 (debian-kernel@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.181-1 (2021-03-19)Linux 4.19内核,默认编译了 BBR 模块,通过以下步骤来开启 BBR。查看系统内核版本:uname -r修改系统变量,开启BBR:echo "net.core.default_qdisc=fq" >&g…

debian10 开启vim粘贴功能

编辑配置文件:vim /usr/share/vim/vim81/defaults.vim找到mouse=a 改为mouse-=a ,保存即可

Debian 10 国内源 (中科大、网易源、阿里云)

修改文件 /etc/apt/sources.list 可替换源# Debian 10 buster中科大源deb http://mirrors.ustc.edu.cn/debian buster main contrib non-freedeb http://mirrors.ustc.edu.cn/debian buster-updates main contrib non-freedeb http://mirrors.ustc.edu.cn/debian buster-backports main contrib non-freedeb http:/…

Debian 10 安装Pip3

环境:sudo cat /proc/version#Linux version 5.4.72-microsoft-standard-WSL2 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Wed Oct 28 23:40:43 UTC 2020适用于Python 3的Pip3:sudo apt updatesudo apt install python3-venv python3-pip查看版本:pip3 --version#pip 18.1 from /usr/lib/python3/dist-…

CentOS7安装python3和pip3

环境:centos7.6CentOS系统自带python2.7.x,不删除其的情况下,源码编译安装python3首先进行yum更新,安装centos或者安装新程序前执行:yum update -y其次安装依赖:yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel libffi-devel wget gcc make接着wget下载python源码:(在https://www.python.org/ftp…

CentOS7安装FFmpeg

环境:centos7.6最近痴迷于FFmpeg切片,由于CentOS没有官方FFmpeg rpm软件包,我们需要借助第三方YUM源(Nux Dextop)来安装。首先安装第三方 Nux Dextop Yum 源sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.rosudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm接着安装F…

用Prism实现代码高亮

Prism is a lightweight, extensible syntax highlighter, built with modern web standards in mind. It’s used in millions of websites, including some of those you visit daily.直接访问Prism官网,然后自定义,选Compression包或者Minified包;然后选Themes,本站用的Dark主题;再选需要支持的Languages;搞定下载对应的js和css文件。将下载好的js和css…