diff --git a/android/arecord b/android/arecord index fffc7853..90116b40 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 @@ -64,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 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 +