ffmpeg -i *.mp4 -vf subtitles=*.srt output.mp4
ffmpeg -i audio.aac -i ch2.h264 -acodec copy -vcodec copy -f mpegts out.ts
ffmpeg -rtsp_transport tcp -i rtsp://fuck.com/fuck/fuck -c copy -f flv rtmp://shit.com/shit/shit
/* https://www.v2ex.com/settings */ | |
/* 使用圆角头像 */ | |
img.avatar { | |
border-radius: 100%; | |
} | |
/* 设定顶部栏颜色 */ | |
body,#Top,#Bottom { | |
background-color:#2b2f3e; | |
} | |
/* 设定链接颜色 */ |
package main | |
import ( | |
"fmt" | |
"machine" | |
"math/rand" | |
"sync" | |
"time" | |
) |
#! /bin/bash | |
# [get_golang.sh](https://gist.github.com/n8henrie/1043443463a4a511acf98aaa4f8f0f69) | |
# Download latest Golang release for AMD64 | |
# https://dl.google.com/go/go1.10.linux-amd64.tar.gz | |
set -euf -o pipefail | |
# Install pre-reqs | |
sudo apt-get install python3 git -y | |
o=$(python3 -c $'import os\nprint(os.get_blocking(0))\nos.set_blocking(0, True)') |
#!/bin/sh | |
## First convert .p12 cert to certificate and key .pem files: | |
openssl pkcs12 -in cert.p12 \ | |
-clcerts -nokeys -out usercert.pem | |
openssl pkcs12 -in cert.p12 \ | |
-nocerts -out userkey.pem -nodes |
# link: https://sujingjhong.com/posts/how-to-deploy-hugo-automatically-with-github-actions/ | |
# author: lisez <mm4324@gmail.com> | |
name: Auto publish to public site | |
# 只有推送到 master 才自動化 | |
on: | |
push: | |
branches: | |
- master |
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> | |
# Contributor: Giovanni Scafora <giovanni@archlinux.org> | |
# Contributor: Sarah Hay <sarahhay@mb.sympatico.ca> | |
# Contributor: Martin Sandsmark <martin.sandsmark@kde.org> | |
pkgname=vlc | |
_vlcver=3.0.6 | |
# optional fixup version including hyphen | |
_vlcfixupver= | |
pkgver=${_vlcver}${_vlcfixupver//-/.r} |