LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help reading raw image file. Close to being able to read mp4 and more into Labview.

Hi all... So finally might have a crude solution to be able to read in most videos if i can get this working (mp4 etc... ).  I plan on sharing everything here if i can get it working, but I am stuck at the moment and was hoping someone could help me out.  So i have a binary string that is supposed to be a RGB24 640X480 image.   The size of the string should be (640*480*3) which it is.  I am hoping i am just not parsing it correctly and that is why I am having problems.  Does anyone see anything wrong, or have any ideas?  I included a jpeg on the front panel that shows what the image should look like.  As you can see, the color is off, and the image is shifted some.

 

Thanks in advance for any help!

0 Kudos
Message 1 of 4
(2,947 Views)

Not sure how to edit last post, looks like i am getting the color right now, but image is still shifted... (See attached VI)

0 Kudos
Message 2 of 4
(2,916 Views)

Okay, everything seems to be good now, the binary string was not correct in the first place.  

Will start posting code to read mp4's here soon, hopefully others can help me with it.

 

thanks!

0 Kudos
Message 3 of 4
(2,908 Views)

As I was looking through your code and looking for errors that would cause the shifting, I found like you said that the string wasn't right to begin with, but I also think that the colors being different is only because you plugged the colors into the wrong indicator of the Replace Color Pane VI.

0 Kudos
Message 4 of 4
(2,685 Views)