-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvideomizer
30 lines (28 loc) · 903 Bytes
/
videomizer
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# Video compress for screen recording
# this script will compress your video into a small bytes.
# created by: Patrick
#
# Requirements: installed conda
# Tested on: macos (intel/m1), linux (ubuntu 20.04)
# Dependency: ffmpeg
# for mac: brew install ffmpeg
# for ubuntu: sudo apt install ffmpeg
# usage: wget https://raw.githubusercontent.com/PtrckM/hummingbot-support/master/videomizer
# chmod +x videomizer
# ./videomizer urvideo.mov
#
if [[ -z "$@" ]]; then
echo ""
echo "Videomizer - compress video screen recording"
echo "enter filename (or with path): ./videomize thisvideo.mov"
echo ""
exit 1
else
echo ""
ffmpeg -i $@ videomize.mp4 -nostats -loglevel 0
mv videomize.mp4 $@_videomize.mp4
ls -lah $@ $@_videomize.mp4
echo ""
exit 1
fi