필터 지우기
필터 지우기

How do I download gstreamer into matlab, it is on my computer

조회 수: 62 (최근 30일)
Laura
Laura 2022년 11월 3일
댓글: 巫师 2024년 7월 10일 16:40
I have started out with MATLAB, I have installed psychtoolbox and have downloaded it into MATLAB, I have got gstreamer onto my laptop but having trouble to know what to do next to get it into MATLAB also so I can start to create graphics using all 3 together, MATLAB, with psychtoolbox and gstreamer. I need to donthis so I can start going throug( my tutorials with PTB

답변 (1개)

Sivapriya Srinivasan
Sivapriya Srinivasan 2023년 5월 26일
편집: Sivapriya Srinivasan 2023년 5월 26일
Hey Laura,
To use MATLAB, Psychtoolbox and GStreamer together, you need to make sure that they are all correctly installed and integrated with each other. Once you have done this, you can start creating graphics using these tools. Here are some steps you can follow to integrate MATLAB with Psychtoolbox and GStreamer:
1.Install the latest version of MATLAB on your computer, if you haven't already done so.
2.Download and install Psychtoolbox for MATLAB from their official website. Make sure to follow the installation instructions carefully.
3.Download and install GStreamer on your computer, if you haven't already done so. You can download it from their official website and follow the installation instructions.
4.Once you have installed all the necessary software, you need to configure MATLAB to recognize GStreamer. Make sure that gstreamer is added to the environment path variable.To do so, open the terminal, type export PATH=/path/to/gstreamer/bin:$PATH, and hit enter.
5. To integrate gstreamer with Psychtoolbox, you need to use the Psychtoolbox's Screen() function. The Screen() function allows you to create a window object that you can use to display graphics in MATLAB.
6.To start using Screen() function with gstreamer, you can refer to the PTB tutorial for GStreamer.In this tutorial, you'll learn how to use the OpenGStreamer() function to create a stream object. Then you can pass this object as an argument to the Screen('OpenWindow') function to create a window that displays the video stream
Finally, you can start creating graphics using MATLAB, Psychtoolbox and GStreamer. To get started, you can follow the tutorials on the Psychtoolbox website.
You can refer to MathWorks Documentation for further assistance!
  댓글 수: 1
巫师
巫师 2024년 7월 10일 16:40
I'm sorry to bother you,I successfully downloaded and installed Matlab2022b\PTB3.0.19\Gstreamer1.24.5, and added the path of the bin folder of Gstreamer to the system's environment variables and the search path of MAT. After I opened Mat, PsychStartup would be displayed:
Adding path of installed GStreamer runtime to library path. [E:\gstreamer\1.0\msvc x86 64\bin],
But when running the code, MAT keeps indicating PTB-ERROR: Due to failed GStreamer initialization, the movie playback engine is disabled for this session. Error in function OpenMovie: Usage error, GStreamer initialization failed due to library loading problems. Aborted. What should I do to solve it?

댓글을 달려면 로그인하십시오.

제품


릴리스

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by