Information/ffmpeg 2016. 5. 16. 16:30

ffmpeg player with visual studio 2013

원글 : http://aslike.egloos.com/


1. 개발환경 준비 

-vs2013

-ffmpeg library : https://ffmpeg.zeranoe.com/builds/

-2.2.1 기준

-C:\ffmpeg 폴더 내.

-ffmpeg shared ver.

-bin 폴더

-ffmpeg dev ver.

-include 폴더

-lib 폴더

-<inttypes.h> 헤더 파일 필요 : https://code.google.com/archive/p/msinttypes/

-include/libavutil/ 폴더 내 복사

-include/libavutil/common.h 32줄 수정 #include "inttypes.h"



-새 프로젝트생성 : 빈프로젝트

-문자집합 : 설정안함

-프로젝트 속성 -> vc++ 디렉토리,

-포함/라이브러리 C:\ffmpeg/include, C:\ffmpeg/lib

-C/C++ -> 일반 -> 추가포함디렉터리 C:\ffmpeg/include

-링커 -> 일반 -> 추가라이브러리디렉터리  C:\ffmpeg/lib

-디버깅 -> 환경 PATH=%PATH%;C:\ffmpeg\bin


2. 테스트


///> Include FFMpeg

extern "C" {

#include <libavformat/avformat.h>

}


///> Library Link On Windows System

#pragma comment( lib, "avformat.lib" )

#pragma comment( lib, "avutil.lib" )


int main(void)

{

av_log( NULL, AV_LOG_INFO, "Hello FFmpeg\n" );

return 0;

}

'Information > ffmpeg' 카테고리의 다른 글

ffmpeg with Code::Blocks  (0) 2017.03.28