FrameGrabbingControl - grab frame problem with video type

Hi all
I have a problem with extracting frames from a video.
Currently I am able to extracting video from some avi formats. But this method does not works for many formats. like mpg etc...
The FrameGrabbingControl object return null for many formats.
This is my code
public Player getVideoPlayer() throws Exception
        if (videoPlayer == null)
            File file = new File("E:\\Songs\\English\\Video\\Alizee\\20090209114235.avi");
            MediaLocator videoMediaLocator = new MediaLocator(file.toURL());
            videoPlayer = Manager.createRealizedPlayer(videoMediaLocator);
        return videoPlayer;
public FrameGrabbingControl getFrameGrabCntrl() throws Exception
        if (frameGrabCntrl == null)
            frameGrabCntrl = (FrameGrabbingControl) getVideoPlayer().getControl("javax.media.control.FrameGrabbingControl");
        return frameGrabCntrl;
// frame extract method
public Image captureCurrent() throws Exception
        Buffer frame = getFrameGrabCntrl().grabFrame();
        BufferToImage stopBuffer = new BufferToImage((VideoFormat) frame.getFormat());
        return stopBuffer.createImage(frame);
    }Here are some 3 sample media information I have tested with the program. First two works fine but 3rd one does not works.
// taken from http://www.exactfutures.com/index02.htm and downloaded http://www.exactfutures.com/vid2jpg.zip
// WORKS FINE
   General
      Complete name : E:\Songs\English\Video\Alizee\testcam04.avi
      Format : AVI
      Format/Info : Audio Video Interleave
      Format/Family : RIFF
      File size : 1.88 MiB
      PlayTime : 29s 596ms
      Bit rate : 533 Kbps
   Video #0
      Codec : Indeo 4
      Codec/Info : Intel Indeo Video 5.0 Wavelet
      PlayTime : 29s 596ms
      Bit rate : 528 Kbps
      Width : 320 pixels
      Height : 240 pixels
      Aspect ratio : 4/3
      Frame rate : 3.818 fps
      Bits/(Pixel*Frame) : 1.801
// recorded video from a webcam
// WORKS FINE
   General
      Complete name : C:\Program Files\MSI\MyGuard Live\VideoClip\20090209114235.avi
      Format : AVI
      Format/Info : Audio Video Interleave
      Format/Family : RIFF
      File size : 311 KiB
      PlayTime : 3s 200ms
      Bit rate : 710 Kbps
   Video #0
      Codec : Indeo 4
      Codec/Info : Intel Indeo Video 5.0 Wavelet
      PlayTime : 3s 200ms
      Bit rate : 705 Kbps
      Width : 640 pixels
      Height : 480 pixels
      Aspect ratio : 4/3
      Frame rate : 15.000 fps
      Bits/(Pixel*Frame) : 0.153
// downloaded avi sample video
// NOT WORKS
   General
      Complete name : E:\Songs\English\Video\Alizee\fvss_demo.avi
      Format : AVI
      Format/Info : Audio Video Interleave
      Format/Family : RIFF
      File size : 10.3 MiB
      PlayTime : 2mn 300ms
      Bit rate : 715 Kbps
   Video #0
      Codec : MS Video
      Codec/Info : Microsoft Video 1
      PlayTime : 2mn 300ms
      Bit rate : 638 Kbps
      Width : 160 pixels
      Height : 120 pixels
      Aspect ratio : 4/3
      Frame rate : 10.000 fps
      Bits/(Pixel*Frame) : 3.325
   Audio #1
      Codec : PCM
      Codec/Family : PCM
      Codec/Info : Microsoft PCM
      PlayTime : 2mn 300ms
      Bit rate : 64 Kbps
      Channel(s) : 1 channel
      Sampling rate : 8000 Hz
      Resolution : 8 bitsI think problem is the codec. Am I correct?
Could anyone please tell me why can't I use this FrameGrabbingControl object to extract frames?

deshan wrote:
Currently I am able to extracting video from some avi formats. But this method does not works for many formats. like mpg etc...
The FrameGrabbingControl object return null for many formats.That's expected behavior when the codec doesn't support capture...
Could anyone please tell me why can't I use this FrameGrabbingControl object to extract frames?Because it's not supported for that format.
But T.B.M. and I have recently worked on / posted a workaround that should capture any video format that JMF can play.
[http://forums.sun.com/thread.jspa?messageID=10596692#10596692]

Similar Messages

  • Hi all - problem with videos downloading

    I have 30GB video Ipod, I am unable to download any video to my Ipod. I have tried with all kinds of frame size and video types(mpeg4, h.264 etc.)
    Can anybody give me the directions and precatuions to take for downloading the videos on to the IPOD?
    Thanks in advance, i would really appreciate you expert guidance.
    Regards
    --deepak

    check the following:
    Adding, Browsing, and watching videos in iTunes

  • Problems with letter type

    Problems with letter type homepage www.JO-qigong.nl When I want to make another type it changes the whole page? Why?

    Thank you for responding. I am sure that I selected the text. I don't do anything different than I did many times before. But if I change a text know, for exemple in the color Red, than other text, that I didn't selected, get a different text: bigger text or other color. In iWeb everything is OK, but when I publish it, than there are those grazy changes. I use iWeb for 3 years now and had no problems till now.
    Is it because the software is not supported anymore by Apple, because you can not update the software anymore. It is a pitty, because I like iWeb. It is easy to work with.

  • PROBLEms with videos imac G4 flat 17'

    PROBLEms with videos in imac G4 flat 17'

    It would help to know what videos you are having trouble with?   Are these from specific internet links? Are these playing back commercial DVDs? Are these videos produced by iMovie, Final Cut Pro, or iDVD of home video? Are these videos imported from an external Firewire or USB adapter such as Elgato's devices. You give us little to go on.   Please give us more details what is going on?

  • Problem with mime type in web.xml file

    Hi everybody,
    I actually got a problem with mime types on Weblogic 6.0 under Linux.
    I read the documentation so I added the next lines in the web.xml file in
    the WEB-INF directory of my server :
    <mime-mapping>
    <extension>
    doc
    </extension>
    <mime-type>
    application/msword
    </mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>
    ppt
    </extension>
    <mime-type>
    application/vnd.ms-powerpoint
    </mime-type>
    </mime-mapping>
    Why can't I retrieve a .doc or .ppt files with an internet browser correctly
    ? I get only text/plain ...
    Can someone help me ?
    Regards,
    Alexis Berger

    I am having the same problem with doc and xsl. I have added this
    <mime-mapping>
    <extension>xls</extension>
    <mime-type>application/vnd.ms-excel</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>doc</extension>
    <mime-type>application/msword</mime-type>
    </mime-mapping>
    to my web.xml. I even restarted the server. I still see doc and xsl in binary.
    Is there some other setting that needs to take place?
    I am using WL6.1 with fixpack 1.
    I can see the doc and excel files in the browser if I don't go through the weblogic
    server. That just confirms it's not my browser.
    Kumar Allamraju <[email protected]> wrote:
    <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
    <html>
    It works fine for me in 6.1 SP1.
    <br><br>
    If the following doesn't work , can you
    <br>try application/winword instead of application/msword?
    <p>--
    <br>Kumar
    <p>Siming Mu wrote:
    <blockquote TYPE=CITE>Hi,
    <p>I setup in my web.xml a mime mapping as follows,
    <p><mime-mapping>
    <br><extension>doc</extension><mime-type>application/msword</mime-type>
    <br></mime-mapping>
    <p>When I specify a test.doc url, the doc file appears in my browser
    as
    binary data
    <br>instead of download.
    <p>Please reference change request 055002, which decribes this problem. 
    According
    <br>to edocs, it has been fixed in wls6.1sp1.
    <p>But I am seeing it fixed.  Am I doing anything wrong? Thanks.
    <p>Siming</blockquote>
    </html>

  • Problem with video playback with iTunes

    Several problems :
    Problem with video playback with iTunes -
    Since about a week, When I launch a video, it takes a long time to get started, then only the sound starts with no pictures - If I press pause then play the video is played normally. Did anyone face or heard about same kind of issue .
    Problem with permission disk errors
    After re-installing White Tiger and After I installed the last OSX 10.6.5 update
    I found the following problem
    Group differs on "Applications / Utilities / AirPort Utility.app / Contents / Resources / wanArrow.png", should be 0 instead of 80.
    Last but not least :
    My computer seems slow - I have 60gig free on My hard drive and I test my hard drive and everything seems all good .

    What was the fix for this? Everything has sucked for my itunes video playback since the last major revision release.

  • I'm having problems with videos, they shake and the images break up back and forth into striped colors, how do I fix this?

    I'm having problems with videos, they shake and the images break up back and forth into striped colors, how do I fix this?

    1) This is because of software version 1.1. See this
    thread for some options as to how to go back to 1.0,
    which will correct the problem...
    http://discussions.apple.com/thread.jspa?threadID=3754
    59&tstart=0
    2) This tends to happen after videos. Give the iPod a
    minute or two to readjust. It should now be more
    accurate.
    3) This?
    iPod shows a folder icon with exclamation
    point
    4) Restore the iPod
    5) Try these...
    iPod Only Shows An Apple Logo and Will Not Start
    Up
    iPod Only Shows An Apple Logo
    I think 3,4, and 5 are related. Try the options I
    posted for each one.
    btabz
    I just noticed that one of the restore methods you posted was to put it into Disk Mode First rather than just use the resstore straight off, I Have tried that and seems to have solved the problem, If it has thank you. previously I have only tried just restoring it skipping this extra step. Hope my iPod stays healthy, if it doesnt its a warrenty job me thinks any way thanks again

  • I cannot drop any pictures in iMovie 9 (no problem with video)

    I cannot add any pictures in iMovie 9. I have no problem with videos, but when I want to drag and drop pictures, it does not work. (Pictures do not drop..) Does anyone know how to do?
    Thank you a lot

    You need to create a play list of songs that you would use for movies - mine is called Music for Movies.  Then when you click on the music icon (the first box in the line of 5 in the grey bar across the lower third of the screen) and a drop down menu will appear showing all your play lists.  Then simply drag and drop, but make sure that you hover over the video clip that you want to add the music to.  If you don't the music will be added to the start of your presentation.  You can always move the position afterwards. NOTE - if you want to add to your play list do it before you start your video editing as the list does not always update when I Movie. 

  • Problem with Video capture Device

    i have a problem with FME. i am using Avermedia TV capture
    device and Canon 3ccd Digital Video Camcorder ( PAL ) when i open
    the FME interface the warning given for " Problem with Video
    Capture Device".
    i read all the topics in Flash Media Encoder Category, if
    this problem occures my capture device ( i expect MPEG ) how to
    solve this problem?
    Thanks,

    The Device Matrix is something we'll be updating in the
    future as we continue to test more and more equipement. Ideally, I
    would like for users such as yourselves to be able to add to it and
    tell us what has worked for you as well. If anyone has any ideas
    about what technology we should use to do this (e.g., this forum? a
    wiki?) please let me know.
    Regarding the devices not working - the main problem we see
    is that the system requirements are not being met. Here is what to
    check for:
    - are you running on Windows XP (only supported OS right
    now)?
    - do you have DirectX client runtime version 9c or higher
    installed?
    - do you have hardware acceleration enabled?
    - do you have 32bit graphics enabled?
    - do you have the latest direct show drivers from the
    card/device manufacturer?
    Thanks,
    Chris Hock
    Adobe Systems Inc.

  • Motorola SB5101E - problem with video chat

    Hi. I have cable modem Motorola SB5101E and connect to net be cable TV .
    All is normal , functional, audio, text, etc. but I have problem with video chat be iChat. (3,1) According info from Motorola support is this cable modem without firewall and without any ports, cable TV provider was inform me, so in his server is none block none ports for me, therefore I have maybe any problem in me computer. But Where ? Can you help me anyone ? Thank you in advance and have a nice day.

    Hi Jirka:
    Do you have your firewall active on your mac? (System preferences>Sharing>Firewall) If the firewall is on, you need to open some ports.
    Report back and give us more details on your set up to troubleshoot your issue.

  • FMLE 3.0.0.4743 Problem with video capture device

    log:
    Tue May 05 2009 14:26:54 : Selected video input device: Beholder A/V Capture (SAA7135) [Slot 2]
    Tue May 05 2009 14:26:54 : Selected audio input device: Beholder Aud Capture (SAA7135)
    Tue May 05 2009 14:26:55 : Problem with video capture device. Please verify that the video capture device is working correctly and is not already in use.
    Tue May 05 2009 14:26:56 : Audio Device Error : The selected audio device "Beholder Aud Capture (SAA7135)" doesn't allow setting volume intensity. Disabling the volume slider control.
    Flash Media Encoder 2.5 working without any errors

    The second message that you are getting "The selected audio device "Beholder Aud Capture (SAA7135)" doesn't allow setting volume intensity. Disabling the volume slider control." is because your device does not let you change intensity of volume. This warning message is just to tell user that volume slider will remain disabled for the selecetd device. This is new addition in FMLE 3.0 and was not there in FMLE 2.5
    Also for first message, please make sure that no other instance of FMLE is already running using this device. You can verify this from task manager. If any other instance of FMLE is running then please close that instance so that device gets free for new instance.

  • Problem with video capture device, with a virtual camera

    I try to use Adobe Flash Media Live Encoder 3 with a virtual camera(DirectShow Filter) but met such a problem:
    "Error connecting input preview RGB filter."
    "Failed with error 80004005:SetupInputVideoPreview(pFilter, pguidCategory)"
    "Failed with error ffffff97:SetupVideoPreview(pFilterSource)"
    "Problem with video capture device. Please verify that the video capture device is working correctly and is not already in use."
    However, it is good to use AMCap,
    what's the problem with FMLE.
    Looking forward to your replies. Thx!

    Did you ever figure out the problem/solution?
    I am experiencing the same thing with my virtual camera filter when connecting to FME?
    Shawn

  • Problem with video games

    Hi all,
    I have a problem with video games on Windows 8.1.
    On my Windows 7 I could play all games without any problems.
    Now I installed Windows 8.1 and I have problems with running video games: lower FPS, game breakdowns and sometimes even texture problems inside the game.
    I tried to reinstall both Windows and Graphic drivers. I tried several versions of drivers.
    I have Radeon HD 6870 and AMD Phenom II X4 955, SSD disk, 12 GB RAM.
    The point is: the same games works perfect on Windows 7 but doesn't work right on Windows 8.1.
    Can you, please, tell me if is there any other solution except going back to Windows 7 ?

    Hi,
    Please verify if these games are compatible with Windows 8.1.
    If yes, please download and install the proper version of game file and driver.
    Karen Hu
    TechNet Community Support

  • How do fix problem with iPages - type does not enter - ?

    How do I fix this problem with Pages - type from keyboard does not enter ?  If I need to re-install, How do I do that?

    Hello DonAndNorma,
    You may need to uninstall, then reinstall the Pages application. Steps for doing so can be found in the article linked below.
    OS X Mavericks: Install, update, and uninstall apps
    http://support.apple.com/kb/PH14299
    Cheers,
    Allen

  • I am having problems with video and high content webpages freezing.  I am also getting pixel lines across my webpages.  Maybe two or three lines.  I was running os 10.4 but I just up graded to 10.6 the other day.  I have 2GB of RAM.

    I am having problems with video and high content webpages freezing.  I am also getting pixel lines across my webpages.  Maybe two or three lines.  I was running os 10.4 but I just up graded to 10.6 the other day.  I have 2GB of RAM.

    Exactlly which model iMac do you have?
    see > How to identify iMac models
    Unfortunately that is not all that uncommon for the Early Intel iMac's given there age and the fact that the air intakes are probably choked with dust. Then add the extra heat caused by running a more intense OS X which is causing it to run a little warmer than normal and putting extra stress on the graphic and display components.
    My 6½ year old 17" Early 2006 Core Duo w/2GB of RAM is also running 10.6.8 and is also starting to get a single line that (knock on wood) goes away after a few minutes, while many others started getting permanent ones after 2 or 3 years. One thing that I think has helped, is that about every 3 or 4 months I shutdown and vigorously vacuum out the bottom grill work and small vent under the stand to keep it running cool.
    On that note: unfortunately I can only suggest that you clean your intake vents and hope that no permanent or irreversible damage has been done.

Maybe you are looking for

  • How to set background color of a visio object depending on it's text

    Hello everyone, I am an application developer and use visio to outline process flows. For one visio file that I have inherited, process objects are used to represent different process group on our system. Each type of process group contain common wor

  • GR against Purchase order in KAnban

    Hi I have used replenishment strategy as using purchase orders and after maintaining the required elements i made kanban card empty but when i am doing GR against that PO it is not increasing stock neither turning kanban green / full Please heelp in

  • Problem in Smartform

    Hi, I have created a simple smart form. what it does is, it prints the material document number. when im trying to see the preview  of the smart form, it is showing &w_mkpf-mblnr& , but not the value of it. When i tried to debug it, i found out that

  • Link on background image

    I created and inserted a  background image in the Container. It includes "link buttons" built into the image in Photoshop, meaning images intended to be clicked in order to move to another page.  I can't create hotspots/image maps to use to create li

  • Why Apple don't systematically support the latest version of OpenGL and OpenCL with a new OS release?

    Why Apple don't systematically support the latest version of OpenGL and OpenCL with a new OS release?