본문 바로가기
SWE/스트리밍

윈도우에 gstreamer 설치 방법

by S나라라2 2022. 6. 23.
반응형

 

개발 환경

Windows 10, x64

 

1. 인스톨러 다운로드

runtime installer와 development installer 둘 다 다운로드한다.

MSVC 64-bit (VS 2019, Release CRT)

 

2. 인스톨러 실행

runtime installer와 development installer 모두 실행시켜서 설치한다

*주의*설치 전에 visual studio를 종료해야 한다.

typical을 선택한다. 

어느 path에 설치되는건지 알고 싶으면 custom을 눌러서 path 확인이 가능하다.

 

 

3. 환경변수 설정

(1) 시스템 변수 'GSTREAMER_1_0_ROOT_MSVC_X86_64' 설정

설치를 완료하고 시스템 환경변수를 확인하면 시스템 변수가 추가된 걸 확인할 수 있다.

없으면 아래와 같이 직접 추가하면 된다.

GSTREAMER_1_0_ROOT_MSVC_X86_64
D:\gstreamer\1.0\msvc_x86_64\

 

(2) 환경변수 'Path' 설정

환경 변수 path에 아래와 같이 추가한다.

%GSTREAMER_1_0_ROOT_MSVC_X86_64%\bin\

 

4. 설치 확인

아래 명령어를 실행한다.

>gst-launch-1.0 videotestsrc ! videoconvert ! autovideosink

아래와 같이 창이 뜨면 성공

 

 

설치방법

Installing on Windows (gstreamer.freedesktop.org)

 

GStreamer tools 튜토리얼

https://gstreamer.freedesktop.org/documentation/tutorials/basic/gstreamer-tools.html?gi-language=c 

 

반응형