1 | update-alternatives --display cuda |
1 | update-alternatives --config cuda |
參考:
https://www.baeldung.com/linux/update-alternatives-command
https://then.tw/switch-gcc-versions-with-update-alternatives/
1 | update-alternatives --display cuda |
1 | update-alternatives --config cuda |
https://www.baeldung.com/linux/update-alternatives-command
https://then.tw/switch-gcc-versions-with-update-alternatives/
https://vegastack.com/tutorials/how-to-install-xrdp-server-on-ubuntu-22-04/
https://dic.vbird.tw/linux_server/unit06.php
注意
https://gist.github.com/ycku/fa3110bce427cf2c1f1ca4a680d594e8#apt-install
1 | offline$ sudo apt-offline set install.sig --install-packages apache2 libapache2-mod-php |
https://github.com/docker/for-linux/issues/1187#issuecomment-1570501567
1 | sudo mkdir /etc/docker |
加入這個屬性
1 | { |
1 | sudo systemctl restart docker |
1 | while ! docker pull nvcr.io/nvidia/deepstream:6.4-gc-triton-devel; do sleep .1; done && echo OK |
跟TCP和UDP一樣為傳輸層協議
規範RFC3350
RTCP (RTP Control Protocol)專門用來處理服務品質(Qos)
RTP可以選擇用UDP或是TCP來進行傳輸
https://mark-lin.com/posts/20180912/(主要)
http://albert-oma.blogspot.com/2012/05/rtp.html
位元率 (bps) = 採樣率(hz) x 採樣大小(bit) x 通道
將raw檔轉換壓縮
例如MP3和AAC
主流有H264和VP8
將聲音和影像編碼後的結果放進容器的過程
用來盛裝編碼,一種編碼可以放進各種容器,例如MP3編碼可以放進.mp3、.mp4、.avi容器裡面
https://www.jianshu.com/p/9f3e879a4c9c
2024-01-20-Elasticsearch-客製化搜尋條件
https://www.elastic.co/guide/en/elasticsearch/painless/current/painless-walkthrough.html
https://stackoverflow.com/a/35596907
1 | { |
2024-01-23-CMake編譯OpenCV-Python
Here is the minimal steps.
Here is my enviornment
For example, my gstreamer is install in D disk by default.
GSTREAMER_ROOT_X86_64
value D:\gstreamer\1.0\msvc_x86_64
GST_PLUGIN_PATH
value D:\gstreamer\1.0\msvc_x86_64\lib\gstreamer-1.0
Path
enviornment variable value D:\gstreamer\1.0\msvc_x86_64\bin
pip install --verbose --no-binary opencv-python opencv-python
1 | import os |
<gstreamer資料夾>\1.0\msvc_x86_64
pip install --verbose --no-binary opencv-python opencv-python
gstreamer預設尋找plugin的順序如下
<gstreamer資料夾>\1.0\msvc_x86_64\lib\gstreamer-1.0
<gstreamer資料夾>\1.0\msvc_x86_64\bin
os.add_dll_directory()
ref
1 | import os |
從4.0之後CUDA相關的功能被移到opencv_contrib,必須要編一opencv_contrib才能啟用CUDA功能
set CMAKE_ARGS="-DWITH_CUDA=ON"