File tree Expand file tree Collapse file tree 5 files changed +66
-14
lines changed Expand file tree Collapse file tree 5 files changed +66
-14
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ Scripts for Archlinux and Manjaro
17
17
Scripts for audio (FFMPEG ...)
18
18
19
19
- [ ` extract-audio ` ] ( #extract-audio )
20
+ - [ ` merge-audio ` ] ( #merge-audio )
20
21
21
22
## cryptography
22
23
@@ -182,7 +183,17 @@ $ extract archive1.zip archive2.7z archive3.rar
182
183
Extract audio from video files, with ffmpeg (without re-encoding)
183
184
184
185
``` bash
185
- $ extract-audio myvideo.mkv myextractedsound.mp3
186
+ $ extract-audio < input video file with audio> < output audio file>
187
+ ```
188
+
189
+ ### merge-audio
190
+
191
+ Merge multiple audio files, with ffmpeg (with re-encoding)
192
+
193
+ ``` bash
194
+ $ merge-audio < input audio file 1> < input audio file 2> < output audio file>
195
+ $ merge-audio < input audio file 1> < input audio file 2> < input audio file 3> < output audio file>
196
+ $ merge-audio < input audio file 1> < input audio file 2> < input audio file 3> < input audio file 4> < output audio file>
186
197
```
187
198
188
199
### digital-signature-check-RSA
Original file line number Diff line number Diff line change 9
9
# // //
10
10
# // Script, 2021 //
11
11
# // Created: 17, June, 2021 //
12
- # // Modified: 31, August , 2021 //
12
+ # // Modified: 28, September , 2021 //
13
13
# // file: - //
14
14
# // - //
15
15
# // Source: https://github.com/metal3d/bashsimplecurses //
20
20
# //////////////////////////////////////////////////////////////
21
21
PROJECT_NAME := scripts
22
22
SHELL := bash
23
- VERSION := 1.3.13
23
+ VERSION := 1.3.14
24
24
RM := rm
25
25
26
26
all : install
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # //////////////////////////////////////////////////////////////
3
+ # // ____ //
4
+ # // | __ ) ___ _ __ ___ _ _ _ __ ___ _ __ _ __ ___ //
5
+ # // | _ \ / _ \ '_ \/ __| | | | '_ \ / _ \ '__| '_ \ / __| //
6
+ # // | |_) | __/ | | \__ \ |_| | |_) | __/ | | |_) | (__ //
7
+ # // |____/ \___|_| |_|___/\__,_| .__/ \___|_| | .__/ \___| //
8
+ # // |_| |_| //
9
+ # //////////////////////////////////////////////////////////////
10
+ # // //
11
+ # // Script, 2021 //
12
+ # // Created: 27, September, 2021 //
13
+ # // Modified: 27, September, 2021 //
14
+ # // file: - //
15
+ # // - //
16
+ # // Source: https://superuser.com/a/587553/1057976 //
17
+ # // OS: ALL //
18
+ # // CPU: ALL //
19
+ # // //
20
+ # //////////////////////////////////////////////////////////////
21
+
22
+ if (( $# == 3 )) ; then
23
+ ffmpeg -i " $1 " -i " $2 " \
24
+ -filter_complex ' [0:0][1:0]concat=n=2:v=0:a=1[out]' \
25
+ -map ' [out]' " $3 "
26
+ elif (( $# == 4 )) ; then
27
+ ffmpeg -i " $1 " -i " $2 " -i " $3 " \
28
+ -filter_complex ' [0:0][1:0][2:0][3:0]concat=n=4:v=0:a=1[out]' \
29
+ -map ' [out]' " $4 "
30
+ elif (( $# == 6 )) ; then
31
+ ffmpeg -i " $1 " -i " $2 " -i " $3 " -i " $4 " \
32
+ -filter_complex ' [0:0][1:0][2:0][3:0]concat=n=4:v=0:a=1[out]' \
33
+ -map ' [out]' " $5 "
34
+ else
35
+ echo " Usage: ${0##*/ } <input audio file 1> <input audio file 2> <output audio file>"
36
+ echo " Usage: ${0##*/ } <input audio file 1> <input audio file 2> <input audio file 3> <output audio file>"
37
+ echo " Usage: ${0##*/ } <input audio file 1> <input audio file 2> <input audio file 3> <input audio file 4> <output audio file>"
38
+ exit 1
39
+ fi
Original file line number Diff line number Diff line change 10
10
# // //
11
11
# // Script, 2021 //
12
12
# // Created: 31, July, 2021 //
13
- # // Modified: 27 , September, 2021 //
13
+ # // Modified: 28 , September, 2021 //
14
14
# // file: https://gist.github.com/jhamfler/cb21414d70696ba4a8957db80f186374 //
15
15
# // - //
16
16
# // Source: - //
19
19
# // //
20
20
# //////////////////////////////////////////////////////////////
21
21
22
- if (( $# == 1 )) ; then
23
- # -2560x1440 # If not --fullscreen --date-format "%Y-%m-%d" --elasticity 0.1 --max-user-speed 500
22
+ if (( $# == 1 )) ; then
23
+ git_url=$( git config --get remote.origin.url)
24
+ # -2560x1440 # If not --fullscreen # --date-format "%Y-%m-%d" --elasticity 0.1 --max-user-speed 500
24
25
gource --fullscreen --disable-input --multi-sampling --output-framerate 60 --seconds-per-day 0.3 \
25
- --hide mouse --filename-time 5 --max-files 0 --bloom-multiplier 0.8 --highlight-users --file-extension-fallback --path . \
26
- --auto-skip-seconds 0.9 --background-colour 000000 --key --stop-at-end --title " git " --output-ppm-stream - | ffmpeg -y -r 60 \
26
+ --hide mouse --filename-time 5 --max-files 0 --bloom-multiplier 0.8 --highlight-users --file-extension-fallback --path . \
27
+ --auto-skip-seconds 0.9 --background-colour 000000 --key --stop-at-end --title " $git_url " --output-ppm-stream - | ffmpeg -y -r 60 \
27
28
-f image2pipe -vcodec ppm -i - -vcodec libx265 -preset medium \
28
29
-pix_fmt yuv420p -crf 18 -bf 0 " $1 "
29
30
else
Original file line number Diff line number Diff line change 10
10
# // //
11
11
# // Script, 2020 //
12
12
# // Created: 21, November, 2020 //
13
- # // Modified: 27 , September, 2021 //
13
+ # // Modified: 28 , September, 2021 //
14
14
# // file: - //
15
15
# // - //
16
16
# // Source: https://gist.github.com/rafi/365926 //
19
19
# // //
20
20
# //////////////////////////////////////////////////////////////
21
21
22
- if (( $# == 1 )) ; then
23
- # -2560x1440 # If not --fullscreen --date-format "%Y-%m-%d" --elasticity 0.1 --max-user-speed 500
22
+ if (( $# == 1 )) ; then
23
+ git_url=$( git config --get remote.origin.url)
24
+ # -2560x1440 # If not --fullscreen # --date-format "%Y-%m-%d" --elasticity 0.1 --max-user-speed 500
24
25
gource --fullscreen --disable-input --multi-sampling --output-framerate 60 --seconds-per-day 0.1 \
25
- --hide mouse --filename-time 5 --max-files 0 --bloom-multiplier 0.8 --highlight-users --file-extension-fallback --path . \
26
- --auto-skip-seconds 0.1 --background-colour 000000 --key --stop-at-end --title " https://github.com/dockcross/dockcross " --output-ppm-stream - | ffmpeg -y -r 60 \
27
- -f image2pipe -vcodec ppm -i - -vcodec hevc_nvenc -preset:v p7 -tune:v hq -rc:v vbr -cq:v 18 -b:v 0 -minrate:v 5M -maxrate:v 60M -bufsize:v 300M " $1 "
26
+ --hide mouse --filename-time 5 --max-files 0 --bloom-multiplier 0.8 --highlight-users --file-extension-fallback --path . \
27
+ --auto-skip-seconds 0.1 --background-colour 000000 --key --stop-at-end --title " $git_url " --output-ppm-stream - | ffmpeg -y -r 60 \
28
+ -f image2pipe -vcodec ppm -i - -vcodec hevc_nvenc -preset:v p7 -tune:v hq -rc:v vbr -cq:v 18 -b:v 0 -minrate:v 5M -maxrate:v 60M -bufsize:v 300M " $1 "
28
29
else
29
30
echo " Usage: ${0##*/ } <ouput file>"
30
31
exit 1
You can’t perform that action at this time.
0 commit comments