Screen capture as video and multicast

halo everyone, i am planing to do a multicast program which capture the local screen as video and transmit to all client.
It is one way communication which is clients are always only on listening mode(It cannot be stop). Server can choose to broadcast or stop the broadcast.
eg software: TightProjector / VNC
Currently my multicast connection is done, all the client can get message from multicast server.
I stuck on how to capture local screen as video and transmit to all the client.
Any method for me to start with it?
What should i looking for??
thx in adv
:D

I'm having some problem with the picture receiving.
Below is my codes:
Server-
import java.awt.*;
import java.awt.image.*;
import java.awt.event.*;
import java.net.*;
import java.io.*;
import javax.imageio.*;
import javax.swing.*;
public class robottestSent
     public static void main(String[] args) throws AWTException, IOException
          Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
          Rectangle screenRectangle = new Rectangle(screenSize);
          Robot robot = new Robot();
          ByteArrayOutputStream baos = new ByteArrayOutputStream();
          BufferedImage image = robot.createScreenCapture(screenRectangle);
          ImageIO.write(image, "png", baos);
          baos.flush();
          byte[] resultImage = baos.toByteArray();
          baos.close();
          //int wahaha = testtest.intValue();
          System.out.println(resultImage);
          try
               DatagramSocket socket = new DatagramSocket();
               //byte buffer[] = new byte[1024];
               InetAddress address = InetAddress.getByName("230.0.0.1");
               DatagramPacket packet = new DatagramPacket(resultImage, resultImage.length, address, 9013);
               socket.send(packet);
               socket.close();
          catch(Exception exp)
                    System.err.println(exp); //New added
}Client-
import java.awt.*;
import java.awt.image.*;
import java.awt.event.*;
import java.net.*;
import java.io.*;
import javax.imageio.*;
import javax.swing.*;
public class robottestGet
    public static void main(String[] args)
         try
              while(true)
                    MulticastSocket socket = new MulticastSocket(9013);
                    InetAddress address = InetAddress.getByName("230.0.0.1");
                    socket.joinGroup(address);
                    byte message[] = new byte[1024];
                    DatagramPacket packet = new DatagramPacket(message, message.length);
                    System.out.println("test_1");
                    socket.receive(packet);
                    System.out.println("test_2");
                    BufferedImage newImage = ImageIO.read ( new ByteArrayInputStream ( packet.getData() ) );
                    JDialog window = new JDialog();
                    Container windowContent = window.getContentPane();
                    JLabel label = new JLabel(new ImageIcon(newImage));
                    JScrollPane pane = new JScrollPane(label);
                    windowContent.add(pane, BorderLayout.CENTER);
                    window.setSize(300, 300);
                    window.show();
         catch(Exception exp)
              System.err.println(exp);
}The server sent a PNG format image raw byte to client, but at the client side, it appear
javax.imageio.IIOException: Error reading PNG image dataThe problem is, when i change the format to others like "jpeg/bmp", the transmition failed, it appear
java.net.SocketException: The message is larger than the maximum supported by the underlying transport: Datagram send failedWhy is that problem actually? T.T
Edited by: nick_khor on Nov 20, 2009 3:46 AM

Similar Messages

  • Screen capture as video and multicasting

    halo everyone, i am planing to do a multicast program which capture the local screen as video and transmit to all client.
    It is one way communication which is clients are always only on listening mode(It cannot be stop). Server can choose to broadcast or stop the broadcast.
    eg software: TightProjector / VNC
    Currently my multicast connection is done, all the client can get message from multicast server.
    I stuck on how to capture local screen as video and transmit to all the client.
    Any method for me to start with it?
    What should i looking for??
    thx in adv
    :D

    morgalr wrote:
    If you're looking for screen shots, you'll be looking into Robot...once you have the screenshots. ImageIO can turn the images into JPEGs, and the JMF can turn JPEGs into a MOV.

  • Can we capture the video and audio using cam and microphone in Edge Animate?

    Hi Everyone,
    I got a new requirement from the client to create a HTML5 based functionality through which one can capture the video and audio using his web-cam/camcorder and microphone. I have researched on internet and found that there is api available (not reliable) http://www.html5rocks.com/en/tutorials/getusermedia/intro/ . I am not a coder by profession and use Edge animate to create HTML 5 based animations and stuff like that. Another problem which i have found that the api only works well with Chrome and Opera and not with Mozilla, IE..
    Can anybody help me out in this, please...
    Thanks & Warm Regards
    Vikas

    Hi, Vikas-
    After a brief bit of research, you're definitely hitting upon the limitation of the browsers.  Not all of the browsers have implemented this part of the HTML5 standard, so you're going to either have to use Flash or be limited to these specific browsers.
    Thanks,
    -Elaine

  • When i'm watching a You Tube Video, i go to full screen on the video , and it scrambled.. I hear the music, but loose the video..can someone help me???

    when I'm watching a You Tube Video, i go to full screen on the video , and it scrambled.. I hear the music, but loose the video..can someone help me???
    == URL of affected sites ==
    http://www.youtube.com/

    John0618. Did you ever get a response or solution to problem?  I have the same problem (starting about three months ago). 

  • What is best screen capture for video to be edited in FCP?

    Hello:
    I need to add some video from a client's website to include in a video being edited in ye olde FCP 7.
    The rest of the video is ProRes 422.
    Is there a screen capture software package that can capture in a compatible format and be high resolution enough?
    I have looked at ScreenFlow and Camtasia for Mac but they don't have much info on their sites about video specs.
    Client wants to capture a webcast and show the video in context of the website it plays on.
    I could just shoot the screen with my HD camera but I'm hoping there is something better out there.
    Oh - and yes... I have thought of cheating it.... superimposing the original video into a screen grab of the website but the client doesn't have the original video.
    Thanks for any info.

    I've been using Camtasia recently and there's a 30 day trial
    http://www.techsmith.com/camtasia.html?gclid=Cj0KEQjw6J2eBRCpqaW0857k9p4BEiQAWar YbCmQ3HIjSWIUtIo6lldJhPTa488h8EmZlSh6hpLHdHIaAqYQ8P8HAQ
    And you can record the entire screen or choose just a smaller area.  Great for capturing video on a website

  • Taking screen captures from video

    I have a video on iphoto and i want to know if there is a way to save screen captures from that video. Thank you

    With "Grab" you can capture the screen, a window, a section, or a timed screen.
    You will find "Grab" in Applications -> Utilities.
    Just start "Grab", and then in iPhoto navigate your video to the frame you want to capture, then take the screen shot.

  • Screen Capture with Video of Presenter

    How do I make a screen capture with a video of the presenter (me). Is this built into captivate? It is simple with Camtasia. I could not find this option in captivate. Does it exist?

    Sorry, doesn't exist in Captivate. Perhaps try Adobe Presenter Video Creator.
    Sounds like you already have Camtasia, I'd stick with that for this type of work. Actually, if you want full motion video, Camtasia is the better choice, Especially when it comes to the editing process.
    Captivate rocks for the slide by slide capturing and creating interactive "video" type output. But Camtasia leaves it in the dust when it comes to the full motion video. Camtasia sucks for creating interactive type videos that Captivate does. Just different tools for different workflows.
    Cheers... Rick

  • How can I change the screen capture default filename and location?

    AS3 and AS4 screen capture keystrokes create badly named files in a bad location, i.e., picture1.png, picture2.png, etc. on the desktop. This is silly, as it creates un-differentiable files. I would at least like to change the filename template, and at best also the location that they go to, but I can't figure out how to do this, if it's even possible. (The filename should have a timestamp, not just a sequence number, for example: picture_200911181234.png or whatever -- pretty much anything but a simple sequence number!)

    Use TinkerTool to change the download location for the screenshots. However, AFAIK, you're stuck with those names unless you a folder action to the download location such that it will change the names according to some scheme you devise. For that, try a google search for *folder actions mac*.

  • Acer S7 screen flickers during videos and when using Microsoft Office Screen is white

    Had my Acer S7-392 for about 9 months and it has a problem that i've not been able to resolve. - When on some websites or watching video's (embedded into the website like on Facebook) the picture flickers and is unwatchable. If you scroll so that a little of the video is offscreen the problem stops.- Also when using microsoft office programs the screen just goes white and I can't do anything without closing the programs via task manager. I've made sure I have all the right drivers. Intel sends me to the Acer website for the drivers and I have the most up to date of those. I have phoned microsoft and they say that it is not them and even when remote accessing the machine they cannot see a problem. I'm sure its a graphics problem as other than these two irritating issues the machine works fine. Many thanks in advance for anyones help.

    Hi, I don't own an external monitor. I can take the laptop to work and use one there. If I do that and the same problem happens what does that mean? If the problem is not repeated on the monitor what does that also mean? If I can't use a monitor what else can I do? Thanks. Tom

  • How can I capture live video and still image by a DirectX compatible USB webcam using LabView ?

    Dear forum members
       I'd like to design a user interface which shows a live video and capture still images for it by a DirectX compatible USB webcam using LabView or NI Vision Toolkit, how can I do this ? and If this is possible How can I reach the webcam DirectX filter properties and set them using LabView ? I would be grateful to anyone Who lead me to the correct solution.
        Sincerely
        Cem DEMiRKIR

    Cem,
        With our example programs you can acquire and save an image (IMAQ >> File Input and Output >> Snap and Save to File.vi) from one camera, if you double the VI's to create the image and the image task, you can easily have one program acquire and save for two cameras.
        I may need more information on what you mean by calibration.  Do you mean basic camera setup?  That can be done in Measurement and Automation Explorer by setting up the options within the IMAQ settings for each camera.  Or do you mean more complex calibration for special types of images?  The more description of what you mean, the better I will be able to help you get it done.  You mentioned zoom and motion parameters, what kind of motion?  Our vision drivers only control triggering the camera to acquire, then analyzing, processing and displaying the resulting image.
        If you have more details on exactly what you want to do, that would be great.  Let me know if you have more questions, thanks!
    -Allison S.
    Applications Engineering
    -Allison S.
    Calibration Services
    Product Support Engineer

  • Why does Premiere 7.0 crash when capturing LIVE video and audio?

    Why does Premiere 7.x Creative Cloud Crash when capturing live Video in about 10 minutes.

    More information needed for someone to help... please click below and provide the requested information
    -Premiere Pro Video Editing Information FAQ http://forums.adobe.com/message/4200840

  • Can you capture 1 video and author another at the same time?

    To save time with videos that are not critical, can you capture one video to Premiere Pro at the same time you are authoring to Encore a previously captured video?

    Wilderness08 wrote:
    To save time with videos that are not critical, can you capture one video to Premiere Pro at the same time you are authoring to Encore a previously captured video?
    The short answer is yes.
    I have just done that and I am happy to report that it worked like a charm.
    I captured from a DVCAM tape via firewire using PPro CS6 while authoring a Blu-ray disk in Encore CS6.
    No frames were lost during capture and my test blu-ray project was completed without a hitch.

  • Capture firewire video and it play simultaneously.

    I'm looking for a software solution that will allow me to capture a firewire video and then play simultaneously while still recording it.  Then stopping the recording and let it play till the end of capture.

    Sorry, I'm looking for a DVR type software.  At my church we are simulcasting our sermon to another venue offsite.  We are using a box that streams the feed fine.  But we have to remolty play it.  I'd like to be able to just stream it and the capture it locally.  Then play it when we are ready for it.

  • Lock screen while playing videos and music?

    iPhone 4 iOS 7.1.2 (up to date), no SiM card installed.
    This is an old iPhone I use to play videos and music for my daughter (2 years).  She watches the video, but tends to too=uch the screen because that's what kids do.  This pauses the video, or sends the phone to the home screen.  Is there a way to lock out the screen while the video plays so that only the home button will pause the video?

    Hi Scott,
    I think Guided Access with Ignore all screen touches is what you need.
    http://help.apple.com/iphone/7/#/iph7fad0d10
    Turn on Guided Access. Go to Settings > General > Accessibility > Guided Access, where you can:
    Turn Guided Access on or off
    Set a passcode that controls the use of Guided Access and prevents someone from leaving a session
    Set whether other accessibility shortcuts are available during a session
    Start a Guided Access session. Open the app you want to run, then triple-click the Home button. Adjust settings for the session, then click Start.
    Disable app controls and areas of the app screen:  Circle any part of the screen you want to disable. Use the handles to adjust the area.
    Enable the Sleep/Wake or Volume buttons: Tap Options and turn on the buttons.
    Ignore all screen touches:  Turn off Touch.
    Keep iPhone from switching from portrait to landscape or from responding to any other motions: Turn off Motion.
    End a Guided Access session. Triple-click the Home button, enter the Guided Access passcode, and tap End.
    Have fun,
    Nubz

  • Screen capture of video editing software

    Hi there
    Has anyone had any luck with recording the screen of a video editing software? I have tried to record some actions in a piece of software that has a video preview window among other things. The video or audio does not record in Captivate. Has anyone had any luck with this type of thing at all? If not - any suggestions?
    Thanks
    Jess

    Hi Wolfgang,
    noch zwei Adressen zum Antworten-Sammeln:
    http://www.finalcutprofi.de/
    http://www.macuser.de/forum/f45/

Maybe you are looking for

  • Updating Standard comm type in vendor master idoc- CREMAS03

    Hi all, We have requirement of processing inbound vendor master data.We are using CREAMS03 idoc type as our system is 4.6C. While updating venor master in general data we are not able to update the field Standard communication type. Can anybody help

  • F110_PRENUM_CHCK(SAP SCRIPT)

    Hi, For the form F110_PRENUM_CHCK(SAP SCRIPT) Print Program is RFFOUS_C.What is the Check Amount Field in this Form and Direct Deposit Amount Field name in this Form and also needText Element names For this Fields. Thanks in Advance.

  • Using window.open with a hyperlink

    Below is an example of the code that I am trying to use: <script language="JavaScript" type ="text/javascript"> <!-- function OpenWindow(currentform) var window_feature; window_feature =("height=500,width=500,left=50,top=50,scrollbars=1,resizable=1")

  • QT took over IE's mp3 file association

    Installed latest QuickTime and after that it changed some file assiciations for Internet Explorer 6. Before if i left clicked mp3 link in IE, it gave those "open", "save as" etc options, but now it want's to open that mp3-file for quicktime-plugin wi

  • Does Websphere Embedded Messaging support standalone creator/consumer?

    Hi Guys, From internet I see some articles talking about limitation of Websphere Embedded Messaging, that it only supports communications between applications hosted on two or more WAS server in same cell. My question is, can I write a standalone mes