How to record desktop

hi, everyone
I want to capture screen to video with jmf
what should i do

But... i'm not sure how to use it :PMake your own class.... I am posting this class (just for demo):
* This class uses custom DataSource given at Sun JMF solutions page:
* <a href="http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/ScreenGrabber.html">Screen Grabber</a>
* @author talha
public class ScreenCapture extends JFrame {
    Player p;
    public ScreenCapture() {
        super("Screen Capture");
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        try {
            p = Manager.createRealizedPlayer(Manager.createDataSource(new MediaLocator("screen://0,0,640,480/10")));
        } catch (Exception ex) {
            Logger.getLogger(ScreenCapture.class.getName()).log(Level.SEVERE, null, ex);
        if(p.getVisualComponent()!=null)getContentPane().add(p.getVisualComponent());
        p.start();
        pack();
        setLocationRelativeTo(null);
    public static void main(String args[]){
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                new ScreenCapture().setVisible(true);
With this can i read data? I suppose that i can write it to disk directly or not? (replace System.out with an OutpuStream) No, if you want to write the captured video to the disk, you would have to make a Processor and DataSink... if these terms sound new, then you would have to learn JMF. Writing the captured video to disk has been asked many times, my suggestion: search this forum.
Thanks!

Similar Messages

  • How to record desktop with jmf?

    Hi, i'm new using jmf, so if it's a simple issue i don't know :S
    I'm trying to make an app that record the desktop. I have found this:
    http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/JVidCap.html
    But when i run it:
    "! No Devices for RGB, 160x120, FrameRate=15.0"
    And a NullPointerException if i push "Start" button.
    I tried to change the code, video formats, etc... but nothing successful happened. what's the problem? what's means these error and how to solve it?
    Regards.

    But... i'm not sure how to use it :PMake your own class.... I am posting this class (just for demo):
    * This class uses custom DataSource given at Sun JMF solutions page:
    * <a href="http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/ScreenGrabber.html">Screen Grabber</a>
    * @author talha
    public class ScreenCapture extends JFrame {
        Player p;
        public ScreenCapture() {
            super("Screen Capture");
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            try {
                p = Manager.createRealizedPlayer(Manager.createDataSource(new MediaLocator("screen://0,0,640,480/10")));
            } catch (Exception ex) {
                Logger.getLogger(ScreenCapture.class.getName()).log(Level.SEVERE, null, ex);
            if(p.getVisualComponent()!=null)getContentPane().add(p.getVisualComponent());
            p.start();
            pack();
            setLocationRelativeTo(null);
        public static void main(String args[]){
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    new ScreenCapture().setVisible(true);
    With this can i read data? I suppose that i can write it to disk directly or not? (replace System.out with an OutpuStream) No, if you want to write the captured video to the disk, you would have to make a Processor and DataSink... if these terms sound new, then you would have to learn JMF. Writing the captured video to disk has been asked many times, my suggestion: search this forum.
    Thanks!

  • How much recording time on my iphone 4 voice memo?

    How much recording time on iphone4 voice memo?

    I would suggest that it depends on how much free space you have on the phone. I have done voice memos of over an hour before, and have read of other users reporting larger ones. I do not believe there is any documented source of what size you can do.

  • How to record my voice by headphone on mac mini

    Hi all,
    How to record my voice by headphone on mac mini. The headphone have a microphone. It can record on window 7, but on mac mini, it's not working.
    I don't know why. Please help me.
    Thanks.

    Open Quicktime Player
    File Menu: New Audio Recording....
    However... if the headphone/microphone combination has two 3.5mm jack plugs (pink and green) then the microphone output (pink) is "mic.level" - which is TOO QUIET for the audio input on a Mac, which is expecting the much stronger "line.level" signal strength.
    Solutions: get a microphone pre-amplifier between the mic and the Mac (not cheap); or a different microphone with a USB interface.

  • How can I set limitations on how many records a report can return

    I have a report on the web using Oracle Reports builder and I have the client enter in date parameters for the report that they want.
    Well with date ranges for different clients a different number of records are returned. Because of time it can take the report to return I want to limit the number of records that report can return.
    How can I go about doing that? I don't want to limit with date parameters because date won't really work for me. I need to limit on how many records can be returned. If it exceeds 10,000 records I want the client to refine the date range of schedule the report to run later. Meaning we will run that report. So I would have two check boxes if the count was over 10,000 do you want to define your date or schedule the job to run later.
    Can any one help me with this? How would I go about this?

    To know if the report is going to return more than 10,000 records, you first have to run the query with a 'select count(1) from ... where ...' (with the same from and where clauses as you normal query). Since this takes about the same time as runnng your report, I wonder if you really gain anything (although formatting may take some time too).
    You may simplify the select count(1) query by omitting all the lookup tables that are only needed for formatting. That way your query may run a lot faster. You can put this in your after parameter form trigger.

  • How to record a phone call in my iphone?

    how to record a phone call in my iphone?

    That's not a feature of the iPhone. You would have to route your calls through a 3rd party service to do so.

  • CAN YOU PLEASE TELL ME HOW TO RECORD AN ACTION IN PSE 7?  I WANT TO DO SAME ACTION ON WHOLE BATCH.

    COULD YOU PLEASE EXPLAIN  HOW TO RECORD AN ACTION IN PSE 7?  I AM WANTING TO PUT MY BUSINESS NAME ON ALL MY PHOTOS & WANT TO DO IT @ THE SAME TIME INSTEAD OF INDIVIDUALLY.  I KNOW IT WILL SAVE A LOT OF TIME.  THANKS SO MUCH!!

    Check this out:
    http://www.easysector.com/index.php

  • How to record from the video in or S-video Ports on Qosmio G40?

    Can anyone tell me how to record from the video in or S-video ports, because i've tried the Ulead DVD factory program and the only capture device it could see was the webcam, and it did capture from it
    After that i've downloaded the update file that was provided by the support website
    The devices that the program could see are the TV tuner and the webcam (which it couldn't access anymore for some reason)
    After that i've downloaded a newer update which simply is the same as the last update and seems that someone in the support website directed the link of the new update which they don't have to the file of the previous update which doesn't really do anything.

    Hi
    There are 2 s-video ports; s-video out port is not designed to capture the signals from any external source. The name of this port says everything; its an OUT port!
    The s-video-in port must be placed at the right side of the notebook. Dont mix the both ports. But note; this port receives only the video signals. To hear the sounds, use a video cable to connect the sound terminals of the audio device and your computer.
    Red: sound right channel
    White: sound left channel
    The Ulead DVD Movie factory can be used to capture this signal.

  • How to record a simple sidebar video as in Adobe Presenter 7

    In Adobe Presenter 9, how to record a video with my webcam to put as a sidebar video for one slide ?
    In Presenter 7 we could do that easily.  Now with the new video editer we can make great videos and capture the screen.  But that's not what need...
    How to do a simple sidebar video without capturing the screen...
    Look at the point 4 on this website: http://help.adobe.com/en_US/Presenter/7.0/WS56318F3C-65A7-477b-8CAA-2CBF0902BA5B.html
    3-...Capture video...
    4-...then select... ...sidebar video to record video for the Presenter image area.
    It was easy in Presenter 7 !!!!!!!!!!!
    Thanks

    When you use the video recording feature in Presenter 8+, it does record a stand alone WMV of your webcam. While the workflow isn't as clean as before, it can be inserted back in just as a sidebar video, without the background screen capture. Here is how you can do it:
    Use the Presenter Video Creator to record your video. Disregard that your screen is being captured, you won't use it.
    After you record your video, Save your project. Don't publish it, as the published output is useless to you.
    Back in Presenter, choose to Insert Video.
    Browse to your webcam capture (My Documents > My Adobe Presenter Video Projects > {What ever you named the capture} > mt). Should be named something like presenter_video1.wmv
    Presenter will convert it to FLV, you can select the quality and location, slide or sidebar, as in previous versions of Presenter.
    If desired, you can use a 3rd part video conversion tool to convert the WMV video, but that may not be necessary.

  • Is there any limit on how many records a cursor can hold?

    Hi Everyone,
    This is Amit here. I want to know whether there is any limit on how many records a cursor can hold.
    I have a program in which i am creating a cursor and passing it to another procedure as an input parameter. But the count of cursor query is more than 15 Lakhs. The program is running forever.
    Just wanted to know whether the huge data is the problem.
    Thanks ....
    Regards,
    Amit

    user13079404 wrote:
    Just wanted to know whether the huge data is the problem.What do you think? How long does your code typically need to wait for the data to leave the magnetic platter of the harddisk, travel across wires and into the memory buffer of your application - for a single row?
    Now multiply that waiting for I/O time with a million - for a million rows. Or by a billion, for a billion rows.
    Is "+huge data+" a problem? Not really - it simple needs more work to get that amount of data from disk. More work means slower performance. It is that simple.
    Which is why the row-by-row approach used by many developers is wrong. You do not pull a million rows from disk and process it in PL/SQL or Java or .Net. Heck, you do not even pull 10,000 rows like that.
    The correct approach is to think data sets and use SQL to process that for you - and only return the bare minimum of data to the application layer. Maximize SQL. Minimize PL/SQL and Java and .Net.

  • Flex 3 How to recording the voice to the local file.can u help sample souce code

    How to recording the voice to the local file.can u help sample souce code

    What? the link is not opening? Check once properly man.  If you need code here it is
    import flash.system.Security;
    import flash.media.Microphone;
    import flash.events.ActivityEvent;
    import flash.events.SampleDataEvent;
    import flash.events.StatusEvent;
    import flash.utils.ByteArray;
    import flash.media.Sound;
    import flash.events.MouseEvent;
    import flash.media.SoundChannel;
    import flash.events.Event;
    import org.bytearray.micrecorder.encoder.WaveEncoder;
    import flash.net.FileReference;
    var mic:Microphone;
    var soundBytes:ByteArray;
    var recBytes:ByteArray= new ByteArray();
    var sc:SoundChannel;
    var sound:Sound;
    recordBtn.addEventListener(MouseEvent.CLICK, getMic);
    stopBtn.addEventListener(MouseEvent.CLICK, stopRecording);
    playBtn.addEventListener(MouseEvent.CLICK, plays);
    saveBtn.addEventListener(MouseEvent.CLICK, saveAudio);
    function getMic(e:MouseEvent)
    soundBytes= new ByteArray();
    //returns an array that total mics available
    var totalMics:Array = Microphone.names;
    //mic is a singleton class gets microphone to record sound
    mic = Microphone.getMicrophone();
    //Sets the minimum input level that should be considered
    mic.setSilenceLevel(0);
    mic.rate = 44;
    //to capture microphone audio listen for this event
    mic.addEventListener(SampleDataEvent.SAMPLE_DATA, recordAudio);
    function recordAudio(e:SampleDataEvent)
    //capture the byte array data available with the event
    while (e.data.bytesAvailable)
    var soundData:Number = e.data.readFloat();
    soundBytes.writeFloat(soundData);
    function stopRecording(e:MouseEvent)
    mic.removeEventListener(SampleDataEvent.SAMPLE_DATA, recordAudio);
    //set the bytearray position to zero for playing from starting
    soundBytes.position = 0;
    function plays(e:MouseEvent)
    //intatiazle sound instance
    sound= new Sound();
    soundBytes.position = 0;
    //listen for the event when runtime requests new audio data.
    sound.addEventListener(SampleDataEvent.SAMPLE_DATA, playAudio);
    //play the sound with sound channel
    sc = sound.play();
    sc.addEventListener(Event.SOUND_COMPLETE, soundComplete);
    function playAudio(e:SampleDataEvent)
    //if audio bytes is greate than 4 read the recorded byte array data and write it into the sound
    for (var i=0; i<8192; i++)
    if (soundBytes.bytesAvailable > 4)
    var sample:Number = soundBytes.readFloat();
    e.data.writeFloat(sample);
    e.data.writeFloat(sample);
    function soundComplete(e:Event)
    sound.removeEventListener(SampleDataEvent.SAMPLE_DATA, playAudio);
    sc.stop();
    function saveAudio(e:MouseEvent)
    soundBytes.position = 0;
    //waveencoder class used to encodes bytearray data properly used to play properly after saving
    //you can get this api from below link
    //http://code.google.com/p/micrecorder/downloads/detail?name=MicRecorder%201.2.zip&can=2&q=
    var encod:WaveEncoder= new WaveEncoder();
    var byte:ByteArray = encod.encode(soundBytes,2);
    var file:FileReference= new FileReference();
    file.save(byte, “test.wav”);

  • How to record the screen in snow leopard ?

    how to record the screen in snow leopard ?

    Must I find it myself !
    Well you could try Google :-)
    I am unsure if you want a static image, or a movie recording of what you are doing on your screen.
    Images can be done using Command-Shift-3, Command-Shift-4, and Command-Shift-4-Space.
    3rd party utilities such as Skitch will allow you to annotate the image after you capture it.
    Making a movie of your screen activities can be done usng Applications -> Quicktime
    There are 3rd party screen records such as Snapz Pro, ScreenSteps, etc...
    And of course you can do a Google search.

  • How & why Record with an external drive?

    Hi. Okay, in another topic I posted it was recommended that I record with an external drive and not the internal drive... I have a 7200rpm firewire 400 lacie drive... so how do record with it? Why and how will this improve my Logic Pro recording experience? I also have a FirePod firewire interface.
    Thanks,
    Bill K.

    To record onto an external drive, simply go to the audio menu and choose "Set Audio Record Path..." From here set your recording path to be somewhere on your external drive.
    In general, it best to record to a drive other than your system drive. Depending on what you are doing, the system drive can be writing/reading cash files, data files and doing other Logic/OSX related activities in the background, all of which slows down your disk. You of course can still use your system drive to access data, but because its doing other operations, you may not be able to run as many audio tracks at once as you could using a dedicated external drive.
    Try both methods and see which works best for you and your system.

  • How to record menus that display when mouse hovers

    The software I am creating a training session for has
    pull-down menus that display when the mouse clicks on them or when
    the mouse hovers over them. I can only get Captivate to record the
    menus when the mouse is clicked - and cannot determine how to
    record the menus that display when the mouse hovers. Can anyone
    offer any suggestions as to how to fully capture the displayed
    software screens and menus? Thanks.

    > Thanks. The Print Screen works just OK - although it is
    a cumbersome and
    > the
    > timing is not as smooth as it could be. As I make a
    series of training
    > videos
    > over time and many menus will be missed and more retakes
    will be required.
    >
    You can change the timing yourself - just reduce the time the
    slide catch
    with print screen to a second or whatever works for you.
    Steve
    http://twitter.com/Stevehoward999
    Adobe Community Expert: eLearning, Mobile and Devices
    European eLearning Summit - EeLS
    Adobe-sponsored eLearning conference.
    http://www.elearningsummit.eu

  • No of records in SAP BI Corresponds to how many records in database

    Dear all
                   If i have 2lakh records in a datasource  then how it  Corresponds to how many records in database.

    For the first time load the datasource , the no of records in the database(source) must be equal to the number of records in the PSA(datasource).
    If you are daily deleting the records in the PSA , and doing a delta load then the no of records in PSA must be equal to the no of records in delta queue RSA7 for the corresponding datasource .
    If the load is a full load everytime or a full repair  ,then the no of  records in PSA  must be equal to the numbers of records in source.

Maybe you are looking for

  • Configure sender in automatic e-mail for EWA

    Hi, I configured the automatic e-mail for EWA. How can I change the sender of the e-mail to a specific one or to an default? I already tried to set up the automatic e-mail with an other user but always my user is set as sender in the e-mail. Does any

  • Material master saving error

    Hi Friends, In the general plant data/Storage I am trying to change the profit center but I am gettting error message that Program terminated while deleting old export control data (update).Message no. M3668 What Can I do to avoid this error. Thanks,

  • Report Cursor Position

    Hi, I have a report. In the report output, when I have the output for more than one page, I go to the 2nd or 3rd page. From there, when I double click on one value, it goes to a screen. and when I come BACK to the report output, it shows the report f

  • How to add detail disclosure regon programmatically ?

    Hi all, I need to add detail disclosure in a seeded page. there are PO lines in the page and the requirement is to add receipts information as hide/show. What is step by step approach i need to follow? Any code samples to add detail disclosure via co

  • In my ipad email address which I am using for sending mail is appearing differently in the receipents mail box ! how to resolve that

    in my ipad email address which I am using for sending mail is appearing differently in the receipents mail box ! how to resolve that