Franklin's Blog


  • Home

  • About

  • Tags

  • Categories

  • Archives

  • Search

Final Cut Pro X Learning Notes

Posted on 2017-12-04 | In Media

Ref

  • Final Cut Pro keyboard shortcuts
  • Final Cut Pro X剪輯軟體基礎教學

Import Media

Command + I or Drag files to FCP

Build Storyline

  • Press E: Append the selected clip to the primary storyline or the selected storyline
  • Press W: Insert the selected clip in the primary storyline or the selected storyline
  • Press Q: Connect the selected clip to the primary storyline
  • Press D: Overwrite the primary storyline or the selected storyline with the selected clip
  • Press Command + T: Add the default transition to the selection
  • Command-Plus Sign (+)/Minus Sign (–): Zoom In/Out
  • J倒退 K停止 L前进
  • 裁减掉不需要的画面:借助Blade功能,选择Frame位置,Command+B, 会标记已裁剪。两个Blade点之间可选中,再删除
  • 显示时间线上所有内容:Shift+Z
  • 选取Clip范围:
    • 起始点i,结束点o
    • 鼠标选中
    • 全选 X
  • Option + [ or ]: 左右修切
  • , or .: 左右移格
  • 选取音轨, Press M: 音轨加 Marker
  • Option + W: 增加黑画面
  • Command + Option + Delete: 删除选定的轨道
  • Shift + H:停格
  • 变换速率方法
    • 在不同速率的时间轴上,进行原速播放,使用Retime中的Automatic speed
    • 将原拍摄速度转成时间轴上速度,使用Rate conform中的Optical flow

Audio

导出音频,导入Audition,调整响度

  • Windows -> 匹配响度
  • 拖入音频
  • 目标响度:-24 LUFS
  • 容差:2 LU
  • 最高实际峰值电平: -2 dBTP
  • 导出音频
  • 选择所有视频,新建复合片段
  • 右键分离音频
  • 删去原来的音频,换为调整过的

Transition

Twixtor plugin

Effect, Title, Generator

  • Mask
    • Censor effect
  • Color
    • Color Board -> Add Color Mask
  • Focus
    • Focus effect
    • Sharpen effect
  • Picture in Picture
    • RT Picture in Picture effect
  • 效果承载
    • ColorCorrection Title
  • 滚动字幕
    • Scrolling effect
  • 彩色字幕
    • Draw Mask effect
  • 直式画面
    • RT Vertical Video Title

Setting Shadowsocks Server

Posted on 2017-11-10 | In Deploy

The Initial Setting

1. Login VPS

2. Install shadowsocks

1
2
sudo apt-get install python-pip
sudo pip install shadowsocks

3. Edit configuration file

1
sudo vi /etc/shadowsocks.json
1
2
3
4
5
6
7
8
9
10
11
{
"server":"0.0.0.0",
"server_port":2016,
"local_address": "127.0.0.1",
"local_port":1080,
"password":"<password>",
"timeout":300,
"method":"aes-256-cfb",
"fast_open":true,
"workers":1
}

4. Start shadowsocks

Start shadowsocks service as below:

1
ssserver -c /etc/shadowsocks.json

Start and stop shadowsocks service in background:

1
2
sudo ssserver -c /etc/shadowsocks.json -d start
sudo ssserver -c /etc/shadowsocks.json -d stop

shadowsocks logs will be saved in /var/log/shadowsocks.log

5. Special setting

For Azure VM, we need to add an Inbound rule in Network Security Group. The port should be the same as the one defined in /etc/shadowsocks.json file

Starting shadowsocks service Automatically on Boot

1. Create /etc/init.d/shadowsocks script

1
sudo vi /etc/init.d/shadowsocks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh
### BEGIN INIT INFO
# Provides: shadowsocks
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO

start(){
ssserver -c /etc/shadowsocks.json -d start
}

stop(){
ssserver -c /etc/shadowsocks.json -d stop
}

case "$1" in
start)
start
;;
stop)
stop
;;
reload)
stop
start
;;
*)
echo "Usage: $0 {start|reload|stop}"
exit 1
;;
esac

2. Add execute permission for this script

1
sudo chmod +x /etc/init.d/shadowsocks

3. Install System-V style init script links

1
sudo update-rc.d shadowsocks defaults

Control service in Shell:

1
sudo service shadowsocks {start|reload|stop}

4. Edit /etc/rc.local file

Add the command in the /etc/rc.local script that is executed at the end of startup

1
sudo vi /etc/rc.local

Add the following command before exit 0

1
sudo service shadowsocks start

Create a Continuous Integration Server With Jenkins On Ubuntu 14.04

Posted on 2017-11-10 | In Deploy

Ref: [1]

Installing Prerequisite

1
2
3
4
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get -y install oracle-java8-installer
java -version

Installing Jenkins

1
2
3
4
5
6
wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins

sudo service jenkins status

We know that Jenkins is running, let’s check whether Jenkins is already listening on port 8080:

sudo netstat -naptu | grep LISTEN | grep 8080

Installing Nginx

1
2
sudo apt-get -y install nginx
sudo service nginx status

Configure nginx

1234

Franklin Chen

Little drops of water make an ocean

10 posts
3 categories
23 tags
© 2021 Franklin Chen