This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
. $HOME/.bashrc; | |
. $HOME/miniconda3/etc/profile.d/conda.sh | |
conda activate base | |
if [ $# -eq 1 ]; then | |
python $HOME/ssd1/run_openface/main.py $1 | |
elif [ $# -eq 2 ]; then | |
python $HOME/ssd1/run_openface/main.py $1 $2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
### | |
# Usage | |
# Make an output dir under the current directory and name it "h265". | |
# bash h265.sh <dirname> | |
### | |
# ffmpeg -i test.mov -hide_banner -c:v libx265 -vsync 1 -preset faster -crf 28 -tag:v hvc1 -an test.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd C:\Users\cmc-o\OpenFace\GUI4OpenFace | |
call C:\Users\cmc-o\Anaconda3\Scripts\activate.bat | |
call activate base | |
python main.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# GoProの動画ファイル名を昇順で扱えるようにリネームする. | |
# GH019999.MP4やGH029999.MP4といった動画がある. | |
# これらの動画は一つの動画が分割したもの. | |
# 下4桁が同じであれば同じ動画であることを表す. | |
# 上2桁が動画の順序. | |
# ファイル名順で並べるとかなり離れた位置に分かれてしまう. | |
# 一括でリネームしてファイルを扱いやすくする. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 全てのファイルのエラー出力をまとめる | |
############################################################ | |
# 実行方法 | |
# sh make_killed_txt.sh <OpenFaceの出力フォルダがある位置> <元動画の位置> | |
# 例 | |
# sh make_killed_txt.sh ~/Documents/OpenFace/mount | |
############################################################ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
####################################################################### | |
# ffmpegを使って動画を任意の長さで分割する. | |
# 71秒の動画ファイル video.mp4を30秒で切り取ると, | |
# 30sのvideo_1.mp4, 30sのvideo_2.mp4, 11sのvideo_3.mp4が生成される | |
# テキストファイルには対象となる動画のパスが必要.相対パスでもOK | |
# 実行したディレクトリに"cutvideo"ディレクトリが作られる | |
# 実行方法 | |
# sh splitvideo.sh <対象動画をリストアップしたtxt> <カットする長さ[s]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ln /dev/null /dev/raw1394 | |
# 開始時刻の記録 | |
start_time=`date +%s` | |
TZ=-9 date '+%a %b %d %H:%M:%S JST %Y' > /tmp/run_time.txt | |
# 動画ごとのカウンタ | |
cnt=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### | |
# 全ての動画を対象にOpenFaceの実行 | |
# sh ./run_all.sh <対象動画の場所> <出力先> | |
### | |
# ln /dev/null /dev/raw1394 | |
echo "Video dir is $1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id0150no01 | |
id0144no01 | |
id0151no01 | |
id0147no01 | |
id0146no01 | |
id0142no01 | |
id0156no01 | |
id0143no01 | |
id0155no01 | |
id0169no01 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 全てのファイルのエラー出力をまとめる | |
target="~/Documents/OpenFace/210610" | |
# すでに書き出し先のファイルが有れば消す. | |
if [ -e all_error.csv ]; then | |
rm -rf all_error.csv | |
fi |