Skip to content

Commit

Permalink
Merge pull request #226 from IGPenguin/feature/scrcpy-video-tweaks
Browse files Browse the repository at this point in the history
Add small tweaks to arecord/scrcpy
  • Loading branch information
IGPenguin authored Jul 16, 2023
2 parents 640a411 + 653d3e0 commit 7bdbb8d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
5 changes: 3 additions & 2 deletions android/arecord
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash

LOCATION=$(dirname "$0")
source "$LOCATION"/../common_tools

Expand All @@ -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

Expand Down Expand Up @@ -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
Expand Down
14 changes: 6 additions & 8 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7bdbb8d

Please sign in to comment.