Matlab doesn't read color video
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Mykyta Slyvkanych
le 19 Fév 2018
Modifié(e) : Walter Roberson
le 28 Fév 2018
Adam
le 19 Fév 2018
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.
Réponses (0)
Voir également
Catégories
En savoir plus sur Video capture and display dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!