10-14-2013 03:04 AM
I need read a .avi file and send each frame to another PC with UDP.
while the frame is read out with labview vision API, the image in the frame is decoded ,and the size of the image is larger.
How can I get the original frame?
10-14-2013 08:40 PM - edited 10-14-2013 08:41 PM
If you don't share how do you decode, getting frame size and put data into UDP packet, no one can tell how can you get original frame back. You probably share block diagram showing how the frame is sent.
10-16-2013 12:38 PM - edited 10-16-2013 12:41 PM
What you are trying to do is stream the contents of the AVI file, rather than the contents of an image. There is a big difference. Dont use AVI Read. Use Read Binary File instead. This is not the solution. I'm just telling you that Read AVI will always decode the image data.
The AVI file format is a container for data in any number of video and/or audio CODEC formats. Some of this data may be raw, uncompressed data, and other data may be compressed using degrees of compression from lossless, to very lossy. There are key frames, and other bits of jargon that need to be handled in order to create a streaming server that works.
VLC is both a client and server for streaming AVIs. You could use it to stream your video over UDP, but you will still need to decode the information on the receiving end to get an actual image.