Put your sdcard and run
./yitube.sh
This script does
- Concatenates splitted movies to one file by captured order without transcoding
- Uploads it to YouTube
You need ffmpeg
that is able to get easily by Homebrew and youtube-upload.
This script expects captured by Xiaomi's Yi 4k movies.
You can overwrite followings by setting environment variable.
- SDCARD_DIR : The sdcard movies directory you mounted. Need to include
DCIM/100MEDIA
. - OUTPUT_TITLE : The filename of the concatenated movie and title of YouTube page.
- SSD_PATH : The output file path to store concatenated movie.
- CLIENTS_SECRETS : The secret key file of Google API required by
youtube-upload
.
Optional settings are:
- VIDEO_PRIVACY : YouTube privacy setting. You can set
public
orprivate
. Default:unlisted
. - OUTPUT_FILE_PATH : Full path of the output movie. Automatically determined by
SSD_PATH
andOUTPUT_TITLE
. You can overwrite the file extension to change this variable. In default, mkv container is used.