From d596095bc85289a33a09c9407bcfbf77f3d7592f Mon Sep 17 00:00:00 2001 From: Adam Svoboda Date: Sun, 16 Jul 2023 09:06:38 +0200 Subject: [PATCH 1/3] add scrcpy dependency check --- android/arecord | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/arecord b/android/arecord index fffc7853..f1080fcc 100755 --- a/android/arecord +++ b/android/arecord @@ -1,5 +1,4 @@ #!/bin/bash - LOCATION=$(dirname "$0") source "$LOCATION"/../common_tools @@ -8,6 +7,8 @@ trap 'ctrlc "$@"' 1 2 3 6 15 USE_LEGACY_RECORDING=false +check_dependency "scrcpy" + ctrlc() { adb -s "$SELECTED_DEVICE" shell settings put system show_touches 0 From 21c43cca9c1e1ceb38086c095586d579233203f4 Mon Sep 17 00:00:00 2001 From: Adam Svoboda Date: Sun, 16 Jul 2023 09:14:51 +0200 Subject: [PATCH 2/3] silence scrcpy output --- android/arecord | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/arecord b/android/arecord index f1080fcc..90116b40 100755 --- a/android/arecord +++ b/android/arecord @@ -65,7 +65,7 @@ OUTPUT_PATH=~/Desktop/"$FILENAME".mp4 if $USE_LEGACY_RECORDING; then adb -s "$SELECTED_DEVICE" shell screenrecord "$DEVICE_FILE_PATH"/output.mp4 else - scrcpy -s "$SELECTED_DEVICE" --verbosity=error --no-playback --audio-codec=aac --record=file.mp4 --record="$OUTPUT_PATH" + scrcpy -s "$SELECTED_DEVICE" --verbosity=error --no-playback --audio-codec=aac --record=file.mp4 --record="$OUTPUT_PATH" &>/dev/null fi # Unset the trap From 653d3e0919a8c59ebb04385e6774cc754e79cae9 Mon Sep 17 00:00:00 2001 From: Adam Svoboda Date: Sun, 16 Jul 2023 09:25:27 +0200 Subject: [PATCH 3/3] update changelog --- changelog.txt | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/changelog.txt b/changelog.txt index f62814d4..982440b0 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,10 +1,8 @@ - 🎉 This is a new minor version 1.3.1! + 🎉 This is a new version 1.4.0! - 🔎 README.md was updated with table of contents and better formatting - github.com/IntergalacticPenguin/mobile-toolkit + 📹 arecord was updated to use scrcpy, this enables recording audio in your videos + You can still use the legacy variant by adding -l flag to arecord command - ⭐️ Be among the first to check out my new project! - igpenguin.github.io/nomo - - 🔥 Stay tuned for new iOS commands or switch to - github.com/danielpaulus/go-ios + ⭐️ Special thanks to Luís Pinho for proposing and drafting this change + https://github.com/luispinho +