https://qiita.com/ran/items/28641a7a0ad8a40c8f72
ffmpeg -f concat -safe 0 -i list.txt -c copy concat.mp4list.txtファイルには、つなげたい動画を1行に1ファイルずつ頭に『file 』を付けて順番に書く。
list.txt
file /path/to/input/file1.mp4
file /path/to/input/file2.mp4
ffmpeg -f concat -safe 0 -i list.txt -c copy concat.mp4list.txtファイルには、つなげたい動画を1行に1ファイルずつ頭に『file 』を付けて順番に書く。
file /path/to/input/file1.mp4
file /path/to/input/file2.mp4
ffmpeg -r 0.5 -i %02d.JPG -b:v 3000k -c:v h264 -pix_fmt yuv420p -r 30 out.mp4
-r 0.5 はフレームレート(1秒に何枚静止画を出すか)の指定なので、0.2だと1枚の静止画が5秒間表示されることになる。-i %02d.JPG で入力静止画のフォーマットを指定。%02dは2桁の数字を意味するので、この場合は01.JPG、02.JPG、...、99.JPGが対象となる。連番である必要がある。-b:v 3000kで動画のビットレートを指定。大きくすると綺麗になるがファイルサイズも大きくなる。-r 30 動画のフレームレートを指定する。#Include %A_ScriptDir%/IME.ahk#ifWinActiveは、指定したウィンドウでのみ有効なキーバインドを設定したい場合に使います。今回は、ahk_exe EXCEL.EXEとすることで、この設定をExcelだけで有効にしています。
Return
#ifWinActive ahk_exe EXCEL.EXE
$^Space::
if (IME_GET())
{
IME_SET(0)
Send,^{Space}
IME_SET(1)
}
else
{
Send,^{Space}
}
Return
$+Space::
if (IME_GET())
{
IME_SET(0)
Send,+{Space}
IME_SET(1)
}
else
{
Send,+{Space}
}
Return
#ifWinActive
$ rm ~/.zcompdump
$ exec $SHELL
| コマンド | 動作 |
|---|---|
| ds' | 文を囲んでいる ' を消す |
| di' | ' で囲まれた部分を消す |
| cs'" | ' を " に変更 |
| ci' | ' で囲まれた部分を消して, インサートモードに入る |
| S' | ビジュアルモードで選択した部分を ' で囲む |
| yss' | 文を ' で囲む |
| ysiw' | カーソルがある単語を ' で囲む |
<p>Hello World!</p>
CapsLockの動作を変更するコマンド(GNOME・Unity)
多くのディストリビューションで標準のGNOME(Ubuntu 17.10以降やCentOSなどのデフォルト)やUnity(Ubuntu 17.04までのデフォルト)の場合、以下のコマンドですぐに変更できます。コピー&ペーストして実行してください。CapsLockキーをCtrlキーにする
gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:nocaps']"CapsLockキーとCtrlキーを入れ替える
gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:swapcaps']"CapsLockキーの設定を初期状態にリセットする
gsettings reset org.gnome.desktop.input-sources xkb-optionsコンソールでもCapsLockの動作を変更する方法(UbuntuなどDebian系)
UbuntuなどDebian系OSでは、コンソールでCapsLockをCtrlに置き換えることもカンタンにできます。/etc/default/keyboardのXKBOPTIONSを、それぞれ以下の通り書き換えます。CapsLockキーをCtrlキーにする
XKBOPTIONS="ctrl:nocaps"CapsLockキーとCtrlキーを入れ替える
XKBOPTIONS="ctrl:swapcaps"設定を反映するには、以下のコマンドを実行します。sudo systemctl restart console-setupこの設定は、全ユーザー、全デスクトップ環境に影響します。
How to Install Touchpad Indicator in Ubuntu:
The software is available in the developer’s PPA for all current Ubuntu releases.
Open terminal either via Ctrl+Alt+T or by searching for “terminal” from application launcher. When it opens, do followings steps to install the indicator:
1. Run command to add the PPA.
sudo add-apt-repository ppa:atareao/atareao
Type in your password (no visual feedback while typing due to security reason) when it prompts and hit Enter.
2. Then check updates and install the software by running following commands one by one:sudo apt-get update sudo apt-get install touchpad-indicatorOnce installed, launch it and you’ll see the applet icon in top-right system tray.
Uninstall:
To remove touchpad indicator, runaptcommand in terminal withremoveflag:sudo apt-get remove --autoremove touchpad-indicatorTo remove PPA repositories, launch Software & Updates and navigate to Other Software tab.
# syndaemon -d -i 2 -t