image capture from avi vfw device can't find video modes

Hello

Here my issu, i have implemented image capture from a video device using jmf 2.1.1e performancepack, using a webcam everything is fine but when i use the video capture source i want to use i can only work with format 720x480 pal and i require 720x576 pal.

jmf seem not to reconize video format from this source, but the video is correcty displayed and image correctly captured. I'm surprised it is half working:decoding&render is ok to but not format choice.

I have check it is not because i'm in ntsc mode (ntsc is 720x480) because my analogic source is pal and color are correct (if with device software i change to ntsc mode i have a black&with but using jmf i'm in color so i'm in pal mode)

Difference bettween the webcam and my device is that my device is an avi encoder so in jmf webcam is javax.media.format.YUVFormat and my device com.sun.media.format.AviVideoFormat

i have tried many thing:

install codec pack (divx6, another codec pack)

try to use Fobs4JMF

register in JMStudio IBMdecoder, jffmpeg

Tanks for any help

the device support many configuration UYVY 235x288 352x576 .... 720x576 but JMF offer only 1 video mode for this device.

here in jmf my capture device info:

Name = vfw:Microsoft WDM Image Capture (Win32):0

Locator = vfw://0

Output Formats->

0. com.sun.media.format.AviVideoFormat

UYVY, 720x480, Length=691200 0 extra bytes

and with a web cam:

Name = vfw:Microsoft WDM Image Capture (Win32):0

Locator = vfw://0

Output Formats->

0. javax.media.format.YUVFormat

YUV Video Format: Size = java.awt.Dimension[width=640,height=480] MaxDataLength = 460800 DataType = class [B yuvType = 2 StrideY = 640 StrideUV = 320 OffsetY = 0 OffsetU = 307200 OffsetV = 384000

1. javax.media.format.RGBFormat

RGB, 160x120, Length=57600, 24-bit, Masks=3:2:1, PixelStride=3, LineStride=480, Flipped

2. javax.media.format.RGBFormat

RGB, 176x144, Length=76032, 24-bit, Masks=3:2:1, PixelStride=3, LineStride=528, Flipped

3. javax.media.format.RGBFormat

RGB, 320x240, Length=230400, 24-bit, Masks=3:2:1, PixelStride=3, LineStride=960, Flipped

4. javax.media.format.RGBFormat

RGB, 352x288, Length=304128, 24-bit, Masks=3:2:1, PixelStride=3, LineStride=1056, Flipped

5. javax.media.format.RGBFormat

RGB, 640x480, Length=921600, 24-bit, Masks=3:2:1, PixelStride=3, LineStride=1920, Flipped

6. javax.media.format.YUVFormat

YUV Video Format: Size = java.awt.Dimension[width=160,height=120] MaxDataLength = 28800 DataType = class [B yuvType = 2 StrideY = 160 StrideUV = 80 OffsetY = 0 OffsetU = 19200 OffsetV = 24000

7. javax.media.format.YUVFormat

YUV Video Format: Size = java.awt.Dimension[width=176,height=144] MaxDataLength = 38016 DataType = class [B yuvType = 2 StrideY = 176 StrideUV = 88 OffsetY = 0 OffsetU = 25344 OffsetV = 31680

8. javax.media.format.YUVFormat

YUV Video Format: Size = java.awt.Dimension[width=320,height=240] MaxDataLength = 115200 DataType = class [B yuvType = 2 StrideY = 320 StrideUV = 160 OffsetY = 0 OffsetU = 76800 OffsetV = 96000

9. javax.media.format.YUVFormat

YUV Video Format: Size = java.awt.Dimension[width=352,height=288] MaxDataLength = 152064 DataType = class [B yuvType = 2 StrideY = 352 StrideUV = 176 OffsetY = 0 OffsetU = 101376 OffsetV = 126720

[3498 byte] By [aloamarsa] at [2007-11-26 14:33:16]
# 1

I have find some information at l'article http://archives.java.sun.com/cgi-bin/wa?A2=ind0111&L=jmf-interest&P=22779

but i didn't find "sample programs on the JMF Solutions page" which is about VFWDeviceQuery

so i have trouble with point 2 so this article.

I have try to rewrite VFWDeviceQuery:

i just have add dimension 720x576 and "UYVY" in the variable declaration, then compile and replace VFWDeviceQuery .java in jmf.jar in but it is not working)

I miss information on what to do on VFWDeviceQuery to try more

About jmf soucre file, i have used the source file jmf-2_1_1e-scsl-src but i have some package missing such as com.ibm.media.codec.audio.BufferedEncoder ...

so i can't use debugger on all jmf package and check how VFWDeviceQuery is working.

if someone have information about please help me:

- "sample programs on the JMF Solutions page" about VFWDeviceQuery

- how to rewrite VFWDeviceQuery to support UYVY

- how to compile entier jmf source files

V.

aloamarsa at 2007-7-8 2:29:00 > top of Java-index,Security,Cryptography...