原创 gstreamer如何拉取RTSP流(IP攝像頭)並推到srs服務器

#include <gst/gst.h> static void onPadAdded(GstElement *element, GstPad *pad, gpointer data) { gchar *name;

原创 OBS解讀-動態循環緩衝區的實現

  在音視頻處理時,緩衝的設計十分重要,關係到通話的質量和實時性。本文主要介紹OBS中關於緩衝的設計,具體實現如下 struct circlebuf {void   *data;size_t size;size_t start_pos;s

原创 undefined reference to symbol 'sem_post@@GLIBC_2.2.5

解決辦法: 在編譯的時候加: -pthread

原创 ffmpeg之入門---》編譯

          用別人編譯的庫,總覺得少點什麼;所以嘗試各種辦法,編譯自己的庫 工具:Mingw,yasm,msys,vs2015 具體方法:http://www.cnblogs.com/dwdxdy/p/3625766.html中的

原创 Tab completion errors: bash: cannot create temp file for here-document: No space left on device

查看root根目錄下文件夾大小,發現是tmp已滿,可通過以下方案: 虛擬文件系統tmpfs掛載到/tmp目錄下 mount -t tmpfs -o size=20m tmpfs /tmp

原创 重大事故:Centos7根目錄下lib64被重命名

上網找了很多教程,原理對 有的介紹用: /lib/ld-2.17.so 有的介紹用 /lib64/ld-linux.so.2 但實際得使用 ld-linux-x86-64.so.2 改名目錄: /usr/lib64------/u

原创 jetson nano 國內源更新報錯certificate verification failed

在apt-get update failed because certificate verification failed時候,在sources.list 中加入[trusted=yes] 例如: deb [trusted=y

原创 shell 篩選文件夾下文件複製到指定目錄

在test文件夾下找到所有頭文件,然後拷貝到include文件夾下 find test/ -name *.h -exec cp -avx {} include \;

原创 Cuda Configuration Error: None of the libraries match their SONAME:

環境:tensorflow1.14 、cuda 10 編譯報錯,強行修改以下文件: tensorflow/third_party/gpus/cuda_configure.bzl 屏蔽代碼如下: 553 #if c

原创 調用tensorflow C++ API檢測依賴庫是否支持GPU

話不多說,直接上代碼 #include <tensorflow/c/c_api.h> #include <tensorflow/core/platform/env.h> #include <tensorflow/core/publ

原创 ffmpeg在vs2013編程,出現C4996錯誤

解決辦法一:項目->屬性->預處理器->預處理器定義;添加_CRT_SECURE_NO_WARNINGS 解決辦法二:在VS生成項目是,在SDL安全週期檢測選項不打勾 解決辦法三:添加#pragma warning( disable :

原创 string與wstring轉換

BOOL StringToWString(const std::string &str,std::wstring &wstr) 2 { 3 int nLen = (int)str.length(); 4

原创 ffmpeg編譯

1. 下載FFMPEG源碼,下載地址:http://ffmpeg.zeranoe.com/builds/ 或 http://ffmpeg.org/download.html 2. 下載MinGW安裝器,下載地址:http://w

原创 關於ffmpeg,av_read_frame函數返回值小於-541478725的錯誤

場景:讀取本地文件 錯誤: error while decoding MB 98 45, bytestream -6 error while decoding MB 64 60, bytestream -8 error while