LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DivX 6.8.5 Codec (4 Logical CPUs) cause a problem. Need Help!

Solved!
Go to solution
Hi, All
 
I tried to record video as avi file from microscope us GPIB1408 card.
 
But I met a problem with the avi filter.
 
If I choose ''DivX 6.8.5 Codec (4 Logical CPUs)'' filter, the video would last for 3 seconds, then popped out the error message saying: "Error-1074397150 occurred at IMAQ Grab Acquire.vi:1" . Then video recording stopped.
 
If I choose "Indeo® video 5.10" or other filter, there is no problem.
 
I don't know what's going on there.
 
Beside, every time the machine goes to standby, then come back, I can not start record. It will say "....time session out.....'
 
I attached two images. Please help me if anyone knows!
 
Thanks! 
Download All
0 Kudos
Message 1 of 5
(5,910 Views)

Hi Yangtze,

 

How does the VI perform without using any codecs or AVI Filters?  And do you want to use the DivX filter instead of the Indeo one for any particular reason?  I know that different AVI filters will use different algorithims to compress the data, and the time it takes to compress the data can vary.  It is possible that the DivX filter takes a little longer and may be interfering with your acquisition, which is why you get the timeout error at the IMAQ grab.  

 

Secondly, are you acquiring video when the machine goes into standby?  Do you stop your VI before you go into standby?  How long do you need to acquire for?

 

Cheers, 

Marti C
Applications Engineer
National Instruments
NI Medical
0 Kudos
Message 2 of 5
(5,886 Views)
Hi, Marti,

Thank you very much for replying!

If I don't use any filter, its fine. I can record a video for a long time. But the video file is really huge. Since I need to record video for 1-4 hours, I can not afford that.

I use divx because it was good before. We have an another computer which installed Labview 7 and it worked fine with DivX 6.6.1 codec for long time. I don't remember since when, that filter doesn't work any more. After that, I changed to DivX 6.8.5, still it's not working. 
I want the avi video with high quality, but I don't know which filter is better.  It seems that DivX is fine to me.

To the "standby" problem, the story is this:

I didn't use any filter, record a video for 1 hour. Then, I stop the VI and close Labview window. Leave the computer till it switched to standy, then I activate the computer, start labview, load my VI program. I can ran it, but if I started to record a video, a "time session out" error would come out. I need to restart the computer to fix this problem.

I am not aquiring video when the machine goes into standy. I stopped the VI and closed the labview window before it went to stand by. Normally, I need a video for 1-3 hours, sometimes longer.

Thanks!
 
 
yangtze 
0 Kudos
Message 3 of 5
(5,876 Views)
Solution
Accepted by yangtze

Hi Yangtze,

 

For the codec issue- I would recommend testing out different avi filters and seeing which one works best.  To see what filters you have avaliable on your computer, use the GetAVIFilterNames and this will populate a list for you.  From there, you can test to see which one gives you the desired playback performance and compression. 

 

For the standby problem--in your VI, do you call an AVI close and an IMAQdx close?   It sounds like you might not be closing all of your references, and if you leave them open, even closing LabVIEW isn't guaranteed to do this.   Tryadding these to your program. 

 

Cheers, 

 

Marti C
Applications Engineer
National Instruments
NI Medical
0 Kudos
Message 4 of 5
(5,846 Views)

Thank you very much, Marti.

 

 

I solved the problem. 

0 Kudos
Message 5 of 5
(5,718 Views)