FFmpeg

Linux下安装

1
2
3
4
5
6
yum install epel-release
rpm -v --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
yum install ffmpeg ffmpeg-devel
ffmpeg -version
ffmpeg -h

RPM 安装

1
2
3
yum list installed  | grep ffmpeg
yum remove ffmpeg.x86_64
yum -y localinstall ffmpeg-3.2.4-1.el7.centos.x86_64.rpm

Static Builds

参考

格式转换

相关参数

  • -c:v libx264 视频编码
  • -c:a aac 音频编码
  • -r Set frame rate
  • -aq Set the audio quality (codec-specific, VBR). This is an alias for -q:a.

wmv to mp4

1
2
ffmpeg -i input.wmv output.mp4
ffmpeg -i input.wmv -c:v libx264 -c:a aac output.mp4

批量转换

1
2
3
4
5
wmv转为mp4
for i in *.wmv; do ffmpeg -i "$i" "${i%.*}.mp4"; done

mp4视频转为mp3音频
for i in *.mp4; do ffmpeg -i "$i" -acodec mp3 "${i%.*}.mp3"; done

比例缩放

1
2
ffmpeg -i 1.mp4 -vf scale=-1:360 2.mp4
ffmpeg -i 1.mp4 -vf scale=850:480 2.mp4

调整fps和比例

1
ffmpeg -i 1.mp4 -filter:v fps=24,scale=-1:360 output/1.mp4

调整比特率和比例

1
ffmpeg -i 1.mp4 -b:v 500K -vf scale=-1:360 output/1.mp4

参考

Stream selection

specific video and audio track

1
2
3
4
5
6
7
8
// codec option has been set to copy
ffmpeg -i 01.mp4 -map 0:v:0 -map 0:a:0 -c:v copy -c:a copy output/01.mp4

// all included streams will be transcoded. The encoders chosen will be the default ones registered by each output format
ffmpeg -i 01.mp4 -map 0:v:0 -map 0:a:0 output/01.mp4

// encoders specifically
ffmpeg -i 01.mp4 -map 0:v:0 -map 0:a:0 -c:v libx264 -c:a ac3 output/01.mp4

截取段

指定时间段截取

1
ffmpeg -i 1.mp4 -ss 00:00:30.000 -t 00:01:01.001 -vcodec copy output/1.mp4

合并 (concat)

  • n Set the number of segments. Default is 2.
  • v Set the number of output video streams, that is also the number of video streams in each segment. Default is 1.
  • a Set the number of output audio streams, that is also the number of audio streams in each segment. Default is 0.
1
2
3
ffmpeg -i part1.mp4 -i part2.mp4 -i part3.mp4 -i part4.mp4 \
-filter_complex "[0:v] [0:a] [1:v] [1:a] [2:v] [2:a] [3:v] [3:a] \
concat=n=4:v=1:a=1 [v] [a]" -map "[v]" -map "[a]" full.mp4

h.264 - How to concatenate two MP4 files using FFmpeg? - Stack Overflow

排列(vstack & hstack)

1
2
3
4
ffmpeg -i left.mp4 -i right.mp4 -filter_complex \
"[1:v]tpad=start_duration=32.366:start_mode=clone[v1]; \
[0:v:0][v1]vstack=inputs=2,format=yuv420p[v];[0:a][1:a]concat=n=2:v=0:a=1[a]" \
-map "[v]" -map "[a]" -c:v libx264 -tune film -crf 16 -b:a 256k -movflags +faststart output.mp4

其他

查看信息 ffprobe

1
ffprobe -i 1.mp4 -v quiet -print_format json -show_format -show_streams

h.264 profile level

-profile:v high high, main, or baseline
-level:v 3.1
-refs 3

1
ffmpeg -i 1.mp4 -b:v 500K -profile:v high -level:v 3.1 -refs 3 2.mp4

-brand mp42

References

使用 Linux

检查环境

查看发行版

1
2
cat /proc/version
cat /etc/redhat-release

检查防火墙状态

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
getenforce

setenforce 0

vi /etc/selinux/config
SELINUX=disabled

firewall-cmd --state
systemctl stop firewalld.service
systemctl disable firewalld.service

-- 开放端口
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload
firewall-cmd --zone=public --query-port=80/tcp
firewall-cmd --zone=public --remove-port=80/tcp

检查编码

1
locale

网络设置

修改IP

1
2
3
4
5
6
vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.137.101
NETMASK=255.255.255.0
GATEWAY=192.168.137.1

修改DNS、HOSTNAME

1
2
3
4
vi /etc/sysconfig/network
DNS1=114.114.114.114
DNS2=1.1.1.1
HOSTNAME=oracle

重启网络

1
service network restart

日志查询

历史记录

1
2
3
4
5
6
7
8
-- 修改上限
vi /etc/profile
HISTSIZE=5000

-- 记录时间
vi ~/.bash_profile
export HISTTIMEFORMAT='%F %T '
source ~/.bash_profile

登录记录

1
last -f /var/log/wtmp

文件最后访问时间

1
stat

挂载操作

1
2
mount /dev/sdb1 /dy/upload
umount -v /dev/sdb1

开机自动挂载

1
/etc/fstab

挂载未分配硬盘空间

挂载

1
2
3
4
5
6
7
8
9
fdisk -l
fdisk /dev/sdb
n 新建分区
p 主分区
t
L 指定分区格式
8e
w
reboot

分配

1
2
3
4
5
6
7
fdisk -l
pvcreate /dev/sda3
vgextend centos /dev/sda3
vgdisplay
lvresize -L +10G /dev/mapper/centos-root
resize2fs /dev/mapper/centos-root
xfs_growfs /dev/mapper/centos-root

index

Nirmatrelvir

  • sold under the brand name Paxlovid.

Hong Kong

3605宗疫苗异常投诉中,有3人获赔偿,合共45万港元,分别涉及贝尔面瘫、速发严重过敏反应及住院治疗。

Android Introduction

Android Version

Version API level Release date
Android 11 30 September 2020
Android 10.0 29 September 2019
Android 9 28 August 2018
Android 8.1 27 December 2017
Android 8.0 26 August 2017
Android 7.1 25 October 2016
Android 7.0 24 August 2016
Android 6.0 23 October 2015
Android 5.1 22 March 2015
Android 5.0 21 October 2014

参考

开源

LineageOS

硬件设备

headset

Pixel densities

Density qualifier Description
ldpi Resources for low-density (ldpi) screens (~120dpi).
mdpi Resources for medium-density (mdpi) screens (~160dpi). (This is the baseline density.)
hdpi Resources for high-density (hdpi) screens (~240dpi).
xhdpi Resources for extra-high-density (xhdpi) screens (~320dpi).
xxhdpi Resources for extra-extra-high-density (xxhdpi) screens (~480dpi).
xxxhdpi Resources for extra-extra-extra-high-density (xxxhdpi) uses (~640dpi).

参考

Android Studio Version

Version Release date
Arctic Fox July 2021
4.2 May 2021
4.1 Oct 2020
4.0 May 2020
3.6 February 2020
3.5 August 2019
3.4 April 2019
3.3 January 2019

配置 Android Studio

环境变量 Environment variables

ANDROID_SDK_ROOT

Sets the path to the SDK installation directory. Once set, the value does not typically change, and can be shared by multiple users on the same machine. ANDROID_HOME, which also points to the SDK installation directory, is deprecated.

ANDROID_EMULATOR_HOME

Sets the path to the user-specific emulator configuration directory.

default location of the emulator configuration directory is $ANDROID_PREFS_ROOT/.android/.

ANDROID_AVD_HOME

Sets the path to the directory that contains all AVD-specific files, which mostly consist of very large disk images. The default location is $ANDROID_EMULATOR_HOME/avd/. You might want to specify a new location if the default location is low on disk space.

参考

Layouts

BDSM

Glossary

  • Worship
  • Fetish
  • Mistress
  • Femdom
  • Bondage
  • Facesitting
  • Dominant
  • Dominatrix
  • Sadist
  • Submissive
  • Masochism
  • Sadomasochistic
  • Sadomasochism
  • Masochist
  • Omorashi
  • Riding crop
  • Dungeon

Books

  • SM 101 (1992)
  • The Mistress Manual (1994)
  • Female Dominance (2004)
  • At Her Feet (2010)
  • Ultimate Guide to Kink (2012)
  • Domination & Submission (2013)
  • Under Her Thumb (2013)
  • Femdom for Nice Girls (2015)

参考