[FFMPEG] 스트림 정보 받기
·
언어 | Framework/FFMPEG
extern "C" { #include #include #include #include #include #include #include #include #include } #include #include AVFormatContext* fmtCtx; int main(void) { int ret = avformat_open_input(&fmtCtx, "D:/project2/FFMPEG_TEST/test_org.avi", NULL, NULL); if (ret != 0) { return -1; } avformat_find_stream_info(fmtCtx, NULL); int vidx = av_find_best_stream(fmtCtx, AVMEDIA_TYPE_VIDEO, -1, -1, NULL, 0); AVS..
cuda 10.x/11.x props not found
·
기타
Visual Studio에서 솔루션 빌드나 정리 시 나타나는 에러. cuda의 visual studio integration 관련 파일을 해당 경로에서 찾을 수 없다고 나오는 에러다. 원래 visual studio integration 설치 시 자동으로 경로 잡아줬었던거 같은데... 찾을 수 없다는 경로에 C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\extras\visual_studio_integration\MSBuildExtensions 위 경로 내에있는 파일들을 복사에서 붙여넣어주면 해결 된다.
C# WinForm에 ocx(x32/x64) 등록할 때 문제
·
기타
MFC ActiveX ocx를 C# Winform에 등록(도구 -> 도구 상자 항목 선택 -> COM 구성 요소)하려 할 때, ocx가 x32로 빌드한 결과라면 잘 붙지만, x64로 빌드한 ocx는 붙지 않음. (원인 : VS가 x32라서 그렇다고 한다.) 나는 MFC ActiveX를 통해 64비트 라이브러리를 붙여 C#에서 동작하게 하려는 게 목적이었기 때문에 x32 ocx만 쓸 수는 없는 상황이었다. 해결 방법으로는 x64 라이브러리를 우선 빌드에서 제외하여 x32의 ocx를 먼저 등록. 추후 다시 x64 라이브러리와 함께 ocx를 빌드하여 재 등록. 위 방법으로 x64로 빌드할 수 있었다.
선언되지 않은 식별자입니다.
·
기타
CInternetSession session(_T("session")); session.SetOption(INTERNET_OPTION_CONNECT_TIMEOUT, 3000); 위와 같이 코드를 작성하였을 때 분명 session을 선언, 정의 하였지만 빌드 시, error C2065: 'CInternetSession': 선언되지 않은 식별자입니다. error C2146: 구문 오류: ';'이(가) 'session' 식별자 앞에 없습니다. error C3861: 'session': 식별자를 찾을 수 없습니다. 오류를 던져버린다. 이유는 파일 상단에서 "pch.h" 보다 "afxinet.h" 헤더를 먼저 include 하였기 때문. 둘의 순서를 바꿔주면 해결된다. // #include "afxinet.h" ..
[Live555] Live555 build (Visual Studio 2017, Windows10)
·
기타
http://www.live555.com/ LIVE555.COM The UDP Multicast Tunneling Protocol A simple, low-overhead protocol for tunneling UDP multicast using UDP unicast (Here is an example of a 3rd-party service that uses UMTP.) Many Internet users currently cannot participate in wide-area IP multicast sessio www.live555.com 1. 위 링크 에서 LIVE555 Streaming Media 탭 선택 2. Source code -> here -> live555-latest.tar.gz(최..
[OpenCV] cv::VideoCapture RTSP open failed.
·
Computer Vision/OpenCV
왜 안열리지 한참 봤다. cv::VideoCapture cap(strRTSP); if (!cap.isOpened()) { AfxMessageBox(_T("RTSP open failed")); return; } RTSP는 열때 OpenCV 내부에서 ffmpeg 사용하여서, 실행 파일 경로에 "opencv_videoio_ffmpeg454_64.dll"이 빠져있으면 isOpened()가 false로 빠져버린다.... 끝.
woongs_93