#!/bin/sh

# ファイル名から時間の抽出
epoch_time=`basename "$1" .mov | cut -c 10-22`
epoch_time="${epoch_time}00"
echo $epoch_time

python upload_video.py --file="$1" --title="Splatoon" --privacyStatus="public" > upload_video.log
VIDEOID=`tail -n 1 upload_video.log`
/usr/local/bin/python3 IkaLog.py --input_file "$1" --video_id $VIDEOID --epoch_time $epoch_time

#!/bin/sh

# ファイル名から時間の抽出
epoch_time=`basename "$1" .m4v | cut -c 10-22`
epoch_time="${epoch_time}00"
echo $epoch_time

python upload_video.py --file="$1" --title="Splatoon" --privacyStatus="public" > upload_video.log
VIDEOID=`tail -n 1 upload_video.log`
/usr/local/bin/python3 IkaLog.py --input_file "$1" --video_id $VIDEOID --epoch_time $epoch_time

Change upload video format to m4v
Change upload video format to m4v
