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
1717Scripts for audio (FFMPEG ...)
1818
1919 - [ ` extract-audio ` ] ( #extract-audio )
20+ - [ ` merge-audio ` ] ( #merge-audio )
2021
2122## cryptography
2223
@@ -182,7 +183,17 @@ $ extract archive1.zip archive2.7z archive3.rar
182183Extract audio from video files, with ffmpeg (without re-encoding)
183184
184185``` 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>
186197```
187198
188199### digital-signature-check-RSA
Original file line number Diff line number Diff line change 99# // //
1010# // Script, 2021 //
1111# // Created: 17, June, 2021 //
12- # // Modified: 31, August , 2021 //
12+ # // Modified: 28, September , 2021 //
1313# // file: - //
1414# // - //
1515# // Source: https://github.com/metal3d/bashsimplecurses //
2020# //////////////////////////////////////////////////////////////
2121PROJECT_NAME := scripts
2222SHELL := bash
23- VERSION := 1.3.13
23+ VERSION := 1.3.14
2424RM := rm
2525
2626all : 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 1010# // //
1111# // Script, 2021 //
1212# // Created: 31, July, 2021 //
13- # // Modified: 27 , September, 2021 //
13+ # // Modified: 28 , September, 2021 //
1414# // file: https://gist.github.com/jhamfler/cb21414d70696ba4a8957db80f186374 //
1515# // - //
1616# // Source: - //
1919# // //
2020# //////////////////////////////////////////////////////////////
2121
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
2425 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 \
2728 -f image2pipe -vcodec ppm -i - -vcodec libx265 -preset medium \
2829 -pix_fmt yuv420p -crf 18 -bf 0 " $1 "
2930else
Original file line number Diff line number Diff line change 1010# // //
1111# // Script, 2020 //
1212# // Created: 21, November, 2020 //
13- # // Modified: 27 , September, 2021 //
13+ # // Modified: 28 , September, 2021 //
1414# // file: - //
1515# // - //
1616# // Source: https://gist.github.com/rafi/365926 //
1919# // //
2020# //////////////////////////////////////////////////////////////
2121
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
2425 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 "
2829else
2930 echo " Usage: ${0##*/ } <ouput file>"
3031 exit 1
You can’t perform that action at this time.
0 commit comments