Hello everyone. I have a problem with reading color video in Matlab. It reads grayscale video properly, but when i try to load color(RGB) video it reads only the first frame of the video. I use Matlab in Linux.
I have a code from gstreamer: for a grayscale video
>gst-launch-1.0 tcambin serial=19710151 ! >video/x-raw,format=GRAY8,width=1280,height=720,framerate=30/1 ! queue ! >videoscale ! video/x-raw,format=GRAY8, width=640,height=480 ! queue ! >videoconvert ! avimux ! filesink location=output.avi >
for color video: >gst-launch-1.0 tcambin serial=19710151 ! >video/x-raw,format=BRGA,width=1280,height=720,framerate=30/1 ! queue ! >videoscale ! video/x-raw,format=BRGA, width=640,height=480 ! queue ! >videoconvert ! avimux ! filesink location=output.avi

댓글 수: 3

Jan
Jan 2018년 1월 9일
편집: Jan 2018년 1월 9일
Please use the "{} Code" button to format code. Do you see, that it is hard to read currently?
I do not know "gstreamer". The code does not look like Matlab. Maybe you use the PsychToolbox? If so, please mention such details.
Mykyta Slyvkanych
Mykyta Slyvkanych 2018년 2월 19일
편집: Walter Roberson 2018년 2월 28일
>gst-launch-1.0 tcambin serial=19710151 !
>video/x-raw,format=GRAY8,width=1280,height=720,framerate=30/1 ! queue !
>videoscale ! video/x-raw,format=GRAY8, width=640,height=480 ! queue ! >videoconvert ! avimux ! filesink location=output.avi >
It is the code not from matlab, but from gstreamer for recording video on linux, the problem is matlab doesn't read this video properly, only the first frame
Adam
Adam 2018년 2월 19일
You haven't shown the Matlab code you use to read the video so there's not a lot to say other than to assume you are correct in that your Matlab code doesn't read that particular video correctly.

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

답변 (0개)

카테고리

질문:

2018년 1월 9일

편집:

2018년 2월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by