Maybe a CRITICAL_SECTION struct memory is copied to another class member, so two CRITICAL_SECTION variables hold the same value.
euhat
编译Android版本的OpenSSL
将android-ndk-r20b和openssl-master解压在同一层目录,在此目录创建脚本bld.sh,内容如下
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #!/bin/sh BASE_DIR=/home/sdb/android/ndk-r20b export ANDROID_NDK_HOME=${BASE_DIR}/android-ndk-r20b PATH=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin:$ANDROID_NDK_HOME/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin:$PATH cd openssl-master/ #./Configure --prefix=${BASE_DIR}/openssl-arm32 android-arm -D__ANDROID_API__=29 ./Configure --prefix=${BASE_DIR}/openssl-arm32 android-arm -D__ANDROID_API__=16 #./Configure --prefix=${BASE_DIR}/openssl-x86 android-x86 -D__ANDROID_API__=16 make make install |
运行bld.sh脚本就会生成OpenSSL库文件。
How to build rtsp stream from a mp4 file to test EuhatRtsp
First, convert mp4 file to h264 file, save script below as convert.bat
1 2 3 | ffmpeg.exe -i %1 -s 1920x1080 -b:v 1536K -an output.mp4 ffmpeg -i output.mp4 -codec copy -bsf: h264_mp4toannexb -f h264 output.264 #ffmpeg -i test.264 -vcodec copy -f mp4 test.mp4 |
drag a mp4 file over convert.bat, after a while, output.264 will be generated. download h264LiveMediaServer.zip, unzip as h264LiveMediaServer.exe, move it to the same directory with output.264, just double click and run h264LiveMediaServer.exe, it will notify you the rtsp url, then input the url in the url edit box on the EuhatRtsp Demo app ui, click begin button, wait several seconds, you will see the video rendering in EuhatRtsp.
Before running h264LiveMediaServer.exe, vc2019 x86 Redistributable must be installed.
Visit H264LiveMediaServer on Github to get the source code.
msvsmon系统找不到指定的路径
Msvsmon was unable to start a server named ...
To solve this problem, just leave the directory of Msvsmon as the original name, for example, 'x86'.
latex定积分原函数上下限
1 | x^2\bigg|_0^{+\infty} |
arm64-v8a error adding symbols: File in wrong format
build.gradle中ndk节内增加abiFilters
1 2 3 4 5 6 7 8 | android {
defaultConfig {
...
ndk {
abiFilters 'armeabi-v7a'
}
}
} |
refer to: https://www.jianshu.com/p/3b58174e89f1
编译时打印宏变量内容
1 2 3 4 5 6 7 8 9 | #define PRINT_MACRO_HELPER(_x) #_x #define PRINT_MACRO(_x) #_x " = " PRINT_MACRO_HELPER(_x) #define DEFINED_PI 3.14 #define DEFINED_NULL #pragma message(PRINT_MACRO(DEFINED_PI)) #pragma message(PRINT_MACRO(DEFINED_NULL)) #pragma message(PRINT_MACRO(UNDEFINED)) //#error print stop here. |
refer to: https://blog.csdn.net/xshbx/article/details/7981564
Android permission cannot be null or empty
The reason is that the request permission list to function ActivityCompat.requestPermissions is empty.
excel中加入日期递增序列
单元格中输入
1 | =TODAY()+ROW() |
晋朝帝王年表
西晋
| 庙号 | 帝号 | 姓名 | 在位时期 | 上位 | 在位 | 年号 |
|---|---|---|---|---|---|---|
| 高祖 | 宣帝 | 司马懿 | 249-251 | 70岁 | 3年 | |
| 世宗 | 景帝 | 司马师 | 252-254 | 44岁 | 3年 | |
| 太祖 | 文帝 | 司马昭 | 255-265 | 44岁 | 11年 | |
| 世祖 | 武帝 | 司马炎 | 266-290 | 30岁 | 25年 | 泰始/咸宁/太康/太熙 |
| 孝惠帝 | 司马衷 | 291-306 | 35岁 | 16年 | 永平/元康/永康/永宁/太安/永安/建武/永兴/光熙 | |
| 孝怀帝 | 司马炽 | 307-313 | 23岁 | 7年 | 永嘉 | |
| 孝愍帝 | 司马邺 | 313-316 | 13岁 | 4年 | 建兴 |
东晋
| 庙号 | 帝号 | 姓名 | 在位时期 | 上位 | 在位 | 年号 |
|---|---|---|---|---|---|---|
| 中宗 | 元帝 | 司马睿 | 317-323 | 41岁 | 7年 | 建武/太兴/永昌/太宁 |
| 肃宗 | 明帝 | 司马绍 | 323-326 | 24岁 | 4年 | 太宁 |
| 显宗 | 成帝 | 司马衍 | 326-342 | 5岁 | 15年 | 咸和/咸康 |
| 康帝 | 司马岳 | 343-344 | 21岁 | 2年 | 建元 | |
| 孝宗 | 穆帝 | 司马聃 | 345-361 | 2岁 | 17年 | 永和/升平 |
| 哀帝 | 司马丕 | 362-365 | 21岁 | 4年 | 隆和/兴宁 | |
| 司马奕 | 366-371 | 24岁 | 6年 | 太和 | ||
| 太宗 | 简文帝 | 司马昱 | 371-372 | 51岁 | 2年 | 咸安 |
| 烈宗 | 孝武帝 | 司马曜 | 373-396 | 11岁 | 28年 | 宁康/太元 |
| 安帝 | 司马德宗 | 397-402 | 15岁 | 6年 | 隆安/元兴/大亨 | |
| 恒楚 | 桓玄 | 403-404 | 34岁 | 2年 | 永始 | |
| 恒楚 | 恒谦 | 404-410 | 7年 | 天康 | ||
| 安帝 | 司马德宗 | 405-418 | 23岁 | 14年 | 义熙 | |
| 恭帝 | 司马德文 | 419-420 | 33岁 | 2年 | 元熙 |
refer to: https://baike.baidu.com/item/%E6%99%8B%E6%9C%9D/195770?fr=aladdin