Skip to content

Instantly share code, notes, and snippets.

View dmpatel151282's full-sized avatar

Dharmesh Patel dmpatel151282

View GitHub Profile
Go through below link
https://www.howtogeek.com/111859/how-to-batch-rename-files-in-windows-4-ways-to-rename-multiple-files/
have a nice tee!
gst-launch --gst-debug=*:5 --gst-debug-no-color filesrc location=111.pcma ! audio/x-alaw,rate=8000,channels=1 ! alawdec ! audio/x-raw-int,rate=8000,channels=1,width=16 ! audioresample ! audio/x-raw-int,rate=16000,channels=1,width=16 ! speexenc mode=2 quality=6 ! tee name=t ! queue ! audio/x-speex ! flvmux streamable=true ! rcslabsrtmpsink url="rtmp://192.168.1.230/live/dima" librtmp-loglevel=0 t. ! queue ! filesink location=/home/ykrikun/spx/111.spx
speex to flash ok
gst-launch --gst-debug=*:2 --gst-debug-no-color filesrc location=ypp8k.wav ! wavparse ! audio/x-raw-int,rate=8000,channels=1,width=16 ! audioresample ! audio/x-raw-int,rate=16000,channels=1,width=16 ! speexenc mode=2 quality=6 ! flvmux streamable=true ! rcslabsrtmpsink url="rtmp://192.168.1.230/live/dima" librtmp-loglevel=0
speex from flash ok
gst-launch --gst-debug=*:5 --gst-debug-no-color rcslabsrtmpsrc url="rtmp://192.168.1.230/live/dima" librtmp-loglevel=0 ! flvdemux name=demux demux.audio ! audio/x-speex,rate=16000 ! speex
AES-128-CBC
AES-128-CFB
AES-128-CFB1
AES-128-CFB8
AES-128-CTR
AES-128-ECB
AES-128-OFB
AES-128-XTS
AES-192-CBC
AES-192-CFB
@dmpatel151282
dmpatel151282 / Adding Any Application in Android Source
Created October 27, 2018 09:02
Adding Any Application in Android Source
===============================================================================
For Adding Any Appllication in Android Source
===============================================================================
For : TestApp
Create TestApp directory into below path
vendor/<vendor>/proprietary/prebuilt/target/product/<device>/system/app/
cd vendor/<vendor>/proprietary/prebuilt/target/product/<device>/system/app/
@dmpatel151282
dmpatel151282 / Did you got this error while building with Jack?
Created November 13, 2018 11:54
Did you got this error while building with Jack?
Code :-
[ X% Y/Z] Building with Jack: /home/minealex2244/los/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex
FAILED: /bin/bash /home/minealex2244/los/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex.rsp
Communication error with Jack server (52). Try 'jack-diagnose'
ninja: build stopped: subcommand failed.
It looks like the installation of Jack server is broken. So how do we fix it?
1. Open a terminal window
/**
*
* @param bmp input bitmap
* @param contrast 0..10 1 is default
* @param brightness -255..255 0 is default
* @return new bitmap
*/
public static Bitmap changeBitmapContrastBrightness(Bitmap bmp, float contrast, float brightness)
{
ColorMatrix cm = new ColorMatrix(new float[]
To remove Dex support from APK
Add LOCAL_DEX_PREOPT := false in Android.mk
@dmpatel151282
dmpatel151282 / ssh_server_android_aosp.md
Last active March 19, 2025 12:53
SSH server support in Android AOSP

SSH server support in AOSP Android

Download the OpenSSH source code and replace it with existing source code inside external folder.

Add below code in device make file (e.g. device.mk).

PRODUCT_PACKAGES +=
scp
sftp
ssh \

@dmpatel151282
dmpatel151282 / wpa_supplicant error codes
Last active July 30, 2021 08:41
wpa_supplicant error codes
reason=1 "Unspecified reason"
reason=2 "Previous authentication no longer valid"
reason=3 "Deauthenticated because sending STA is leaving (or has left) IBSS or ESS"
reason=4 "Disassociated due to inactivity"
reason=5 "Disassociated because AP is unable to handle all currently associated STAs"
reason=6 "Class 2 frame received from nonauthenticated STA"
reason=7 "Class 3 frame received from nonassociated STA"
reason=8 "Disassociated because sending STA is leaving (or has left) BSS"
reason=9 "STA requesting (re)association is not authenticated with responding STA"
reason=10 "Disassociated because the information in the Power Capability element is unacceptable"