Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

problem using "open AVI" on ffdshow encoded avi files

David -

I'm an engineer in Vision R&D and I just spent some time looking at this problem.  I was able to find a workaround that will definitely enable you to continue reading AVIs that previously worked after writing an AVI with the ffdshow codec.

The workaround is:
 - go to Start->All Programs->ffdshow->Video decoder configuration
 - Select "DirectShow control" in the listbox on the left
 - Change the Merit slider to "unlikely" (should be the second-lowest option)
 - Click "OK" and reboot your machine.

Let me know how this works for you.

Greg Stoll
Vision R&D
National Instruments
Greg Stoll
LabVIEW R&D
0 Kudos
Message 11 of 17
(6,433 Views)
Thanks Greg,
I was about to post your new workaround, but it looks like you beat me to it 🙂
0 Kudos
Message 12 of 17
(6,431 Views)
I just encountered a similar problem relating to the error code and ffdshow. By disabling VSFilter (which is a subtitle player) I was able to open AVIsin LabVIEW.
 
Not sure if our situations are identical, or if a resolution has been found and not posted to this thread, but I thought I'd add this tidbit.
 
Ben
Message 13 of 17
(6,234 Views)
Hello,

I encountered a similar problem the same error but I used DIVX6.8 as codec I'am able to create AVI files but when I playback the file
AVI open vi comes with the same error
-1074396009. I have also tried the WMV9 codec and that gives no problem.
The need for DIVX is because it's uses all cores of my quad core processor and WMV9 codec only uses 2 cores.
For the project we need to acquire and encode realtime from 4 camera's(DC10.5) and 4 audio streams. When using wmv9 codec
2  cores are 100% used and the other core's do almost nothing. Which result in a program that not
functioning properly.

Is there a same kind of workarround for DIVX codec as used for ffdshow codec?

regards
 Fred
Message 14 of 17
(6,124 Views)

I thought I'd update this thread, the workaround by setting the slider to "unlikely" does work for me, thanks very much.

Ben, I have not tried your workaround but thanks for  posting.

Dave


Message Edited by david_jenkinson on 08-04-2008 04:21 PM
0 Kudos
Message 15 of 17
(6,081 Views)
Hello Dave,

I Have tried the workaround but that didn't work for me.
I have AVI files encoded with DIVX 6.8 codec.
Installed the latest ffdshow-rev2060_20080801_xxl.exe left every setting to default
except the DirectShow merit slider which i set to "unlikely"
Using LabVIEW 8.2 Open AVI.VI stil get the error -1074396009
Also sample DIVX file in Windows, after changing the file extension to .avi, won't open.

I Can playback the files with windows Media player.
Do I need to install Microsoft Windows SDK which has a toolkit for DirectShow ?

Regards
  Fred
 

0 Kudos
Message 16 of 17
(6,054 Views)

I solved my problem !!

To investigate this problem is used gspot
Gspot can determine which codeds are used when you playback an avi file.
This tool gives a nice output where you can see how youre video pass through codecs.

Gspot also tries to tell if the path that is possible will give correct video output.

With Divx and ffdshow installed I got 4 possibilies to playback the Divx encoded avi file.

1 - (src)->>Divx Demux->>Divx Video Decoder-->>Video render
2 - (src)->>Divx Demux->>ffdshow Video Decoder-->>Video render
3 - (src)->>AVI Splitter->>Divx Video Decoder-->>Video render
4 - (src)->>AVI Splitter->>ffdshow Video Decoder-->>Video render


Sollution 3 and 4 will lead to succesfull playback of the avi file.
the other sollutions 1 and 2 lead to errors.

Gspot also show which files/dll are used.

Since reading this article only ffdshow will playback the avi file I try to isolate
the 4'th solution. This can be realized by unregister the "Divx Demux" and "Divx Video Decoder"

Divx Demux leads to DivxMedia.ax -->> regsvr /u DivxMedia.ax
Divx Video Decoder leads to to divxdec.ax -->> regsvr /u divxdec.ax

When I reopen the avi file in GSpot only one possibility is shown.

Now I can playback a Divx ecoded avi file in LabVIEW.
p.s. i could leaf the merit slider to default


 regards Fred

0 Kudos
Message 17 of 17
(5,898 Views)