Skip to content

Commit 7bdbb8d

Browse files
authored
Merge pull request #226 from IGPenguin/feature/scrcpy-video-tweaks
Add small tweaks to arecord/scrcpy
2 parents 640a411 + 653d3e0 commit 7bdbb8d

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

android/arecord

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
32
LOCATION=$(dirname "$0")
43
source "$LOCATION"/../common_tools
54

@@ -8,6 +7,8 @@ trap 'ctrlc "$@"' 1 2 3 6 15
87

98
USE_LEGACY_RECORDING=false
109

10+
check_dependency "scrcpy"
11+
1112
ctrlc() {
1213
adb -s "$SELECTED_DEVICE" shell settings put system show_touches 0
1314

@@ -64,7 +65,7 @@ OUTPUT_PATH=~/Desktop/"$FILENAME".mp4
6465
if $USE_LEGACY_RECORDING; then
6566
adb -s "$SELECTED_DEVICE" shell screenrecord "$DEVICE_FILE_PATH"/output.mp4
6667
else
67-
scrcpy -s "$SELECTED_DEVICE" --verbosity=error --no-playback --audio-codec=aac --record=file.mp4 --record="$OUTPUT_PATH"
68+
scrcpy -s "$SELECTED_DEVICE" --verbosity=error --no-playback --audio-codec=aac --record=file.mp4 --record="$OUTPUT_PATH" &>/dev/null
6869
fi
6970

7071
# Unset the trap

changelog.txt

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
🎉 This is a new minor version 1.3.1!
1+
🎉 This is a new version 1.4.0!
22

3-
🔎 README.md was updated with table of contents and better formatting
4-
github.com/IntergalacticPenguin/mobile-toolkit
3+
📹 arecord was updated to use scrcpy, this enables recording audio in your videos
4+
You can still use the legacy variant by adding -l flag to arecord command
55

6-
⭐️ Be among the first to check out my new project!
7-
igpenguin.github.io/nomo
8-
9-
🔥 Stay tuned for new iOS commands or switch to
10-
github.com/danielpaulus/go-ios
6+
⭐️ Special thanks to Luís Pinho for proposing and drafting this change
7+
https://github.com/luispinho
8+

0 commit comments

Comments
 (0)