Giter VIP home page Giter VIP logo

ffmpeg_rtsp's Introduction

ffmpeg_rtsp

生成编译文件:

  • cmake ../ -G Ninja -DCMAKE_BUILD_TYPE=Release -DADS_VERSION=5.14.2
  • cmake ../ -G Ninja -DCMAKE_BUILD_TYPE=Debug -DADS_VERSION=5.14.2

检查内存

#ifdef _DEBUG
#define new new (_NORMAL_BLOCK, __FILE__, __LINE__) // 定义new宏来替换new关键字
#endif

main 函数添加

#ifdef _MSC_VER
    // _CrtSetBreakAlloc(590);
    _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE);
    _CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_FILE);
    _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_FILE);
#ifdef MEMORY_STDOUT // 是否将内存泄露信息,存储到文件中
    _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDOUT);
    _CrtSetReportFile(_CRT_ERROR, _CRTDBG_FILE_STDOUT);
    _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDOUT);
#else
    HANDLE hLogFile;
    hLogFile = CreateFile("./memory.txt", GENERIC_WRITE,
                          FILE_SHARE_WRITE, NULL, CREATE_ALWAYS,
                          FILE_ATTRIBUTE_NORMAL, NULL);
    _CrtSetReportFile(_CRT_WARN, hLogFile);
    _CrtSetReportFile(_CRT_ERROR, hLogFile);
    _CrtSetReportFile(_CRT_ASSERT, hLogFile);
#endif // MEMORY_STDOUT
    _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);

#endif // _MSC_VER

格式化输出

  • qSetMessagePattern("[%{time yyyy-MM-dd hh:mm:ss.zzz}] %{file} %{line} %{function} %{message}");

c++ include config

  • C:/Qt/Qt5.14.2/5.14.2/msvc2017_64/include
  • C:/Qt/Qt5.14.2/5.14.2/msvc2017_64/include/QtCore
  • C:/Qt/Qt5.14.2/5.14.2/msvc2017_64/include/QtWidgets

ffmpeg_rtsp's People

Contributors

imlliu2005 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.