This file contains hidden or 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
import argparse | |
import os | |
import sys | |
import subprocess | |
# 定数 | |
SUPPORTED_EXTENSIONS = (".mp4", ".mov") | |
BLACKDETECT_FILTER = 'blackdetect=d=0.0:pic_th=0.00' | |
def validate_directory(directory, dir_type="input"): |
This file contains hidden or 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
import argparse | |
from datetime import datetime | |
import os | |
import subprocess | |
import sys | |
import yaml | |
def create_duration_list(wav_dir): | |
if not wav_dir or not os.path.isdir(wav_dir): |
This file contains hidden or 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
import argparse | |
import os | |
import sys | |
import subprocess | |
# 定数 | |
SUPPORTED_EXTENSIONS = (".mp4", ".mov") | |
def get_video_duration(video_path): | |
"""動画の長さを取得""" |
This file contains hidden or 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 | |
mongod=/usr/local/mongodb/bin/mongod | |
mongod_data=/Users/michito/work/mongodb_data | |
mongod_log=/Users/michito/work/mongodb_log/mongodb.log | |
prog=mongod.sh | |
RETVAL=0 | |
stop() { | |
grep_mongo=`ps aux | grep -v grep | grep "${mongod}"` |