Build FFMpeg in Windows

In MSYS2 x64 bash,

pacman -S mingw-w64-x86_64-toolchain
pacman -S base-devel
pacman -S yasm nasm gcc

basedir=/d/work/open

cd ${basedir}/x264
./configure --prefix=${basedir}/x264_install --enable-static --extra-cflags="-O0 -g3" --enable-debug
make
make install

cd ${basedir}/ffmpeg
./configure --prefix=${basedir}/ffmpeg_install --enable-static --disable-shared --extra-cflags=-I${basedir}/x264_install/include --extra-ldflags=-L${basedir}/x264_install/lib
make
make install

refer to:
http://events.jianshu.io/p/53ecc4dbe7d0
https://www.videolan.org/developers/x264.html
http://ffmpeg.org/download.html
https://www.msys2.org/
https://git-scm.com/download/win

Rtsp memo

Terms,

1
2
3
4
5
6
7
8
CC: CSRC Counter
CSRC: Contributing Source
SSRC: Synchronization Source
FIR: Full Intra Request, rfc5104
FCI: Feedback Control Information
REMB: Receiver Estimated Max Bitrate
TWCC: Transport wide Congestion Control
RTX: retransmission

Sdp example

v=0
o=- 17618512456233465749 1 IN IP4 127.0.0.1
s=Session streamed with GStreamer
i=rtsp-server
t=0 0
a=tool:GStreamer
a=type:broadcast
a=control:*
a=range:npt=0-
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:3000
a=rtpmap:96 H264/90000
a=framerate:30
a=fmtp:96 packetization-mode=1;sprop-parameter-sets=J2QAFKwrYKD9gIgAAAMACAAAAwHnQgAW4gAC3G173wdocKuA,KO48sA==;profile-level-id=640014;level-asymmetry-allowed=1
a=control:stream=0
a=ts-refclk:local
a=mediaclk:sender
a=ssrc:4060724388 cname:user1571168269@host-d3352119

refer to:
https://www.rfc-editor.org/rfc/rfc3550
https://www.rfc-editor.org/rfc/rfc3551
https://www.rfc-editor.org/rfc/rfc2326
https://www.rfc-editor.org/rfc/rfc4588
https://www.rfc-editor.org/rfc/rfc4585
https://www.rfc-editor.org/rfc/rfc7273
https://blog.csdn.net/weixin_42462202/article/details/98986535
https://github.com/fanxiushu/xdisp_virt
https://www.ngui.cc/el/72647.html

onnx relocation R_X86_64_TPOFF32 against hidden symbol

1
2
3
export CMAKE_ARGS="-DONNX_USE_PROTOBUF_SHARED_LIBS=ON"
apt-get install libprotobuf-dev protobuf-compiler
pip install onnx -i https://pypi.tuna.tsinghua.edu.cn/simple

MacOs 3d presentation in VMWare

Although VMWare can't support hardware accelerated 3d rendering for macos, I happened to see Garageband running in my old laptop, it indicates 'macOS Catalina (Version 10.15.4)' supports middle layer OpenGL software simulation, while up-to-date macOS deviates from this style.

Build GStreamer in Windows

1
2
3
4
5
6
7
8
9
10
11
12
python -m pip install meson
python -m pip install ninja
 
git clone https://gitlab.freedesktop.org/gstreamer/gstreamer.git
cd gstreamer
 
rd /S /Q build
meson --buildtype=release -Dprefix=%CD%/installed -Dlibav=enabled -Dgst-plugins-ugly:x264=enabled -Dgst-plugins-bad:nvcodec=enabled build
 
meson compile -C build
 
meson install -C build

refer to:
https://gstreamer.freedesktop.org/documentation/installing/building-from-source-using-meson.html
http://dljz.nicethemes.cn/news/show-62582.html
https://blog.csdn.net/yuwg_le/article/details/126147636

Deep learning memo

yolo pdf,

EfficientDet	https://arxiv.org/pdf/2011.08036.pdf
YOLOv1		https://arxiv.org/pdf/1506.02640.pdf
YOLOv2		https://arxiv.org/pdf/1612.08242.pdf
YOLOv3		https://arxiv.org/pdf/2011.08036.pdf
		https://pjreddie.com/media/files/papers/YOLOv3.pdf
YOLOv4		https://github.com/AlexeyAB/darknet
YOLOv4-Scaled	https://github.com/WongKinYiu/ScaledYOLOv4
YOLO-PPv2	https://arxiv.org/pdf/2104.10419.pdf
YOLOv5		https://arxiv.org/pdf/2104.10419.pdf
YOLOX		https://github.com/Megvii-BaseDetection/YOLOX
YOLOR		https://github.com/WongKinYiu/yolor
YOLOF		https://arxiv.org/pdf/2103.09460.pdf
YOLOS		https://arxiv.org/pdf/2106.00666.pdf
YOLOP		https://arxiv.org/pdf/2108.11250.pdf
YOLOV6		https://mp.weixin.qq.com/s/RrQCP4pTSwpTmSgvly9evg
		https://github.com/meituan/YOLOv6 
		https://zhuanlan.zhihu.com/p/353697121 
 
YOLOV7		https://arxiv.org/abs/2207.02696 
		https://github.com/WongKinYiu/yolov7

https://github.com/yael-vinker/CLIPasso
https://github.com/openai/CLIP

refer to:
AI有啥用
https://blog.csdn.net/PercentageC/article/details/126744534

Speed up pip install

1
2
3
4
5
6
7
8
9
python3 -m pip install opencv-python==4.5.3.56 -i https://pypi.tuna.tsinghua.edu.cn/simple
 
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
 
http://mirrors.aliyun.com/pypi/simple/ 
https://pypi.mirrors.ustc.edu.cn/simple/ 
https://pypi.douban.com/simple/ 
https://pypi.tuna.tsinghua.edu.cn/simple/ 
http://pypi.mirrors.ustc.edu.cn/simple/

refer to:
https://www.cnblogs.com/huangguifeng/p/12002049.html