Skip to content

Instantly share code, notes, and snippets.

View dturner's full-sized avatar
🎧

Don Turner dturner

🎧
View GitHub Profile
#!/bin/bash
# Script which copies libraries from the FFmpeg build folder to a
# folder within an Android Studio project in the correct structure
# Should be run from the FFmpeg root folder.
# Check that a target directory has been supplied
if [ -z "$1" ]
then
echo "Usage: copy_to_project.sh <target directory>. Example: copy_to_project.sh \${ANDROID_PROJECT}/app/libs"
@dturner
dturner / ffmpeg-build.sh
Last active June 14, 2022 07:03
FFmpeg configure options
#!/bin/bash
if [ -z "$ANDROID_NDK" ]; then
echo "Please set ANDROID_NDK to the Android NDK folder"
exit 1
fi
#Change to your local machine's architecture
HOST_OS_ARCH=darwin-x86_64
function configure_ffmpeg {
@dturner
dturner / audio_decode_speeds.csv
Last active March 19, 2019 18:47
FFmpeg vs Android NDK decode speeds
Compression format Decode time (seconds) NDKMediaCodec Decode time (seconds) FFmpeg
MP3 16.7 1.2
AAC (with M4A container) 18.8 0.7
qtconnectivity$ git diff
diff --git a/src/bluetooth/qbluetoothserver_android.cpp b/src/bluetooth/qbluetoothserver_android.cpp
index ff100d3..a2d0875 100644
--- a/src/bluetooth/qbluetoothserver_android.cpp
+++ b/src/bluetooth/qbluetoothserver_android.cpp
@@ -145,7 +145,7 @@ bool QBluetoothServer::listen(const QBluetoothAddress &localAdapter, quint16 por
}
if (!found) {
- qWarning(QT_BT_ANDROID) << localAdapter.toString() << "is not a valid local Bt adapter";