Getting images sort of like live stream

I have an application. I want to make it to somewhat stream my images. The way it works is that i have a thread running that captures data from my port, goes into the pc, does some process and then display an image. I want to keep doing this continuously or depending on how many frames i want. How would i go about implementing something like this.
Using for loops would not work because then the image only display at the end of the loop which is the last frame and misses out on others. Just wondering what method or ways to do it.
Thanks

thanks bobear. here's something i'm facing. i'm using a jbutton to start my stream.
code looks something like:
Runnable updateImage = new Runnable() {
public void run() {
   displayUpdateImage()
for (frameCounter = 0; frameCounter < frameWanted; frameCounter++) {
            SwingUtilities.invokeLater(updateImage);
            System.out.println("Frame number " + frameCounter);
            getData();
        }Basically, getData() will get the information from my port, then there are other functions to convert the data to image. With invoke later, the updated image only displays after the process is done (after for loop is done). Where am i doing wrong here, or is there a better way to do it.
Thanks for your time.

Similar Messages

  • How to open live streaming audio? Like live streaming audio

    like
    i can't play some asf files
    i need help
    i suscribed to a radio station and can't listen to it
    also how can I use Window media player to open some live streaming audio or video instead of quicktime ?

    Install Flip4Mac to enable QuickTime to handle Windows Media files.

  • How to get the number of viewers live stream?

    Subj.
    I want to know how many viewers watch stream at the moment. How to find this out?

    that's how I did it
    var nc_admin = new NetConnection;
    function timer1(){
        nc_admin.call("getLiveStreams", new onGetLiveStreams(), "live");
    setInterval(timer1, 5000);
    function onGetLiveStreams() {
        this.onResult = function(ans) {
         for (i = 0; i < ans.data.length; i++){
             nc_admin.call("getLiveStreamStats", new onGetLiveStreamStats(), "live" , ans.data[i]);
    function onGetLiveStreamStats(){
        this.onResult = function(info) {
         if(info.data.publisher && info.data.subscribers) {
             var so = SharedObject.get(info.data.publisher.name, false);
             so.setProperty('viewers', info.data.subscribers.length);
    application.onAppStart = function(){
        trace("Starting...");   
        nc_admin.connect("rtmp://localhost:1111/admin", "fmsroot", "ljvedjls");

  • Show image quality as like original image after resize in as3.

    Hi Guys,
    I am working on a Action Script3 project and i am showing images after resizing. I am using Bitmap and BitmapData manipulation for this but not getting image quality as like original image.  Please guide and help me with code that how can i do this.
    Thanks & regards
    Rangrajan

    How are you resizing? Normally, you would draw the original bitmap data into the new bitmap data, using a matrix to resize. To smooth scale, you need to use the smoothing option of the draw method. Here's a little sample that takes a library image and scales it to 500x500, using smoothing:
    var orig:BitmapData = new baseMap(); //library image
    var res:BitmapData = new BitmapData(500,500);
    var m:Matrix = new Matrix();
    m.scale(res.width / orig.width, res.height / orig.height);
    res.draw(orig, m, null, null, null, true);
    var c:Bitmap = new Bitmap(res);
    addChild(c);
    toggle the true to false in the draw, to see the difference...

  • No audio on some App like tennistv the have live stream video, I used to hear the audio, they told me is an iPad issue, also trayed RolandGarros App no audio

    I have several Tennis App like TENNISTV, US OPEN, ROLANDGARROS and last month I noticed that I have no sound on the video (this is live streaming) games if I do log in on my PC there is video and audio playing, I did contact them, the 1st suggestion was to delete the app and reinstalled, I did not worked still no sound at all, they told me to contact Apple

    Have you got notifications muted ? Only notifications (including games) get muted, so the Music/iPod and Videos apps, and headphones, still get sound.
    Depending on what you've got Settings > General > Use Side Switch To set to (mute or rotation lock), then you can mute notifications by the switch on the right hand side of the iPad, or via the taskbar : double-click the home button; slide from the left; and it's the icon far left; press home again to exit the taskbar. The function that isn't on the side switch is set via the taskbar instead : http://support.apple.com/kb/HT4085

  • Cannot get HLS Live streaming to work

    I'm struggling to get things going on the HTTP live streaming side.
    I'm using FMLE 3.2 w/ Flash Media Server 4.5.
    Format: H.264
    Frame Rate: 29.97
    Bit Rate: 800Kpbs
    Profile: Main
    Leven: 3.1
    Keyframe Frequency: 4 Seconds
    I'm streaming to:
    FMS URL: rtmp://hostname/livepkgr
    STREAM: livestream?adbe-live-event=liveevent
    I have verified the stream is working by connecting via flash to
    rtmp://<HOST-NAME>/livepkgr
    livestream?adbe-live-event=liveevent
    I can't get the stream to play in iOs/Safari. I've been trying using the instructions via this doc (http://help.adobe.com/en_US/flashmediaserver/devguide/WSd391de4d9c7bd609-52e437a812a3725df a0-8000.html)
    If I try to access the following file: http://<HOST-NAME>/hls-live/livepkgr/_definst_/liveevent/livestream.m3u8 I get FILE NOT FOUND.
    Looking on the FMS machine under /opt/adobe/fms/applications/livepkgr/events/_definst_/liveevent is see no files other than Event.xml and Manifest.xml
    So...it seems like no stream is being created in the livepkgr. What can I do to troubleshoot?

    #1 Fails (see below)
    I get a 404 not found.
    http://<HOST-NAME>/hls-live/livepkgr/_definst_/liveevent/Event.xml
    http://<HOST-NAME>/hls-live/livepkgr/_definst_/liveevent/readme.html (test file I created)
    Sounds like the hls-live alias isn't working? Off to check Apache. That alias is supposed to be set up by default isn't it?
    #2
    Here's my  application.00.log from opt/adobe/fms/logs/_defaultVHost_\livepkgr\_definst_
    #Version: 1.0
    #Start-Date: 2011-12-02 12:01:32
    #Software: Adobe Flash Media Server 4.5.0 r297 x64
    #Date: 2011-12-02
    #Fields: date   time    x-pid   x-status        x-ctx   x-comment
    2011-12-02      12:01:29        12262   (s)2641173      f4f:livestream - NetStream.Play.UnpublishNotify -
    2011-12-02      12:01:29        12262   (s)2641173      onUnpublish : livestream        -
    2011-12-02      12:01:29        12262   (s)2641173      f4f:livestream - NetStream.Play.Stop    -
    2011-12-02      12:01:29        12262   (s)2641173      f4f:livestream - NetStream.Unpublish.Success    -
    2011-12-02      12:01:32        12262   (s)2641173      onPublish : livestream  -
    2011-12-02      12:01:32        12262   (s)2641173      Stream name is: livestream and live event is: liveevent -
    2011-12-02      12:01:32        12262   (i)2611173      Event level recording configuration: General[flags: 3, keyframe interval: 60000, max size: -1, max length: -1, io buffer size: 0], Fragment[frag duration: 4000, seg duration: 400000, duration precision: 100, allowed drift: 1000, frame rate: 0.000000, frames per interval: 0, intervals per frag: 1, frame precision: 1, disk management duration: 3.000000], ContentProtection[enabled=false(overridable)]        -
    2011-12-02      12:01:32        12262   (s)2641173      f4f:livestream - record failed. -
    2011-12-02      12:01:32        12262   (s)2641173      f4f:livestream - NetStream.Publish.Start        -
    2011-12-02      12:01:32        12262   (s)2641173      f4f:livestream - NetStream.Data.Start   -
    2011-12-02      12:01:32        12262   (s)2641173      f4f:livestream - NetStream.Play.Reset   -
    2011-12-02      12:01:32        12262   (s)2641173      f4f:livestream - NetStream.Record.NoAccess      -
    2011-12-02      13:23:31        12262   (s)2641173      f4f:livestream - NetStream.Play.UnpublishNotify -
    2011-12-02      13:23:31        12262   (s)2641173      onUnpublish : livestream        -
    2011-12-02      13:23:31        12262   (s)2641173      f4f:livestream - NetStream.Play.Stop    -
    2011-12-02      13:23:31        12262   (s)2641173      f4f:livestream - NetStream.Unpublish.Success    -
    2011-12-02      13:23:40        12262   (s)2641173      onPublish : livestream  -
    2011-12-02      13:23:40        12262   (s)2641173      Stream name is: livestream and live event is: liveevent -
    2011-12-02      13:23:40        12262   (i)2611173      Event level recording configuration: General[flags: 3, keyframe interval: 60000, max size: -1, max length: -1, io buffer size: 0], Fragment[frag duration: 4000, seg duration: 400000, duration precision: 100, allowed drift: 1000, frame rate: 0.000000, frames per interval: 0, intervals per frag: 1, frame precision: 1, disk management duration: 3.000000], ContentProtection[enabled=false(overridable)]        -
    2011-12-02      13:23:40        12262   (s)2641173      f4f:livestream - record failed. -
    2011-12-02      13:23:40        12262   (s)2641173      f4f:livestream - NetStream.Publish.Start        -
    2011-12-02      13:23:40        12262   (s)2641173      f4f:livestream - NetStream.Play.Reset   -
    2011-12-02      13:23:40        12262   (s)2641173      f4f:livestream - NetStream.Data.Start   -
    2011-12-02      13:23:40        12262   (s)2641173      f4f:livestream - NetStream.Record.NoAccess      -
    ~    
    #3
    I get the following error in my core.00.log file in opt/adobe/fms/logs
    Error from libf4f.so: Couldn't create directory for new record : /opt/adobe/fms/applications/livepkgr/streams/_definst_/livestream

  • HT2188 I'm presuming my old iPod id dead meat, but after 24 charging a get the Apple Logo followed by an image that looks like a file folder with an exclamation point. Is there anyway we can resurrect all trhe music on it & transfer into a new iPod?

    I'm presuming my old iPod id dead meat, but after 24 charging a get the Apple Logo followed by an image that looks like a file folder with an exclamation point. Is there anyway we can resurrect all trhe music on it & transfer into a new iPod?

    You can try putting it into Disk Mode
    http://support.apple.com/kb/HT1363
    If that works, you can see if the computer will recognize it when connected, either in iTunes or by the system.
    NOTE:  You can also try putting it into Disk Mode WHILE it is already connected to the computer.
    If the iPod is recognized, you may be able to use one of the third-party methods or utilities to transfer song files from iPod to computer.  You can do a Google search on something like "ipod transfer" to get some links (add "mac" to the search if your computer is a Mac).
    Once the song files are on your computer, add them to that computer's iTunes library, then sync it to the new iPod.

  • How to connect flash video player(like youtube)  to live streaming video the programm like                             

    How to connect flash video player(like youtube) to live
    streaming video the programm like webcamXP?
    Or through a browser to look in a videoplayer video from
    other usual personal computer with the program for a video
    broadcasting from the web chamber.

    you can use google to search for tutorials on skinning the component.

  • Everytime i go on safari numerous ads pop up and when i go to "X" them off it loads up about 3 other tabs with like movie streaming or trying to get me to buy products etc. what should i do?

    Everytime i go on safari numerous ads pop up and when i go to "X" them off it loads up like 3 tabs with things like movie streaming or trying to get me to buy products? what should I do?

    You may have installed the "DownLite" trojan, perhaps under a different name. Remove it as follows.
    Malware is constantly changing to get around the defenses against it. The instructions in this comment are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.vsearch.agent.plist
    Right-click or control-click the line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "VSearch" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    /Library/LaunchDaemons/Jack.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/VSearch
    /Library/PrivilegedHelperTools/Jack
    /System/Library/Frameworks/VSearch.framework
    ~/Library/Internet Plug-Ins/ConduitNPAPIPlugin.plugin
    Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including any that have the word "Spigot" or "Conduit" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    This trojan is distributed on illegal websites that traffic in pirated movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect much worse to happen in the future.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that the DownLite developer has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. This failure of oversight is inexcusable and has compromised both Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • Live stream not live- plays like VOD

    Hi All,
    I'm not sure if this belongs in the AS3 forum or the streaming forum, but here it is.
    I wrote a pair CS3/AS3 players to send and receive a live video stream (webcam) from a browser.  The first is called broadcaster.  It makes a NetConnection to my server, publishes a stream and attaches the camera and microphone.  This works fine. The stream is live.
    The second is originally called receiver.  Using an instance of flash.media.video on the stage it also makes a NetConnectin, attaches a stream and calls play.  This also works, BUT the receiver stream is not live.  It starts playing at time=0 like a VOD.
    --- broadcaster.swf ---
    var connection:NetConnection = new NetConnection()
    connection.connect(connect_url);  // my server/application/instance
    var stream = new NetStream(connection);
    stream.publish("mass", "live");  // live means stream live without recording on the server
    stream.attachCamera(Camera.getCamera());
    stream.attachAudio( Microphone.getMicrophone() );
    --- receiver.swf---
    connection.connect(connect_url);
    var stream = new NetStream(connection);
    video1.attachNetStream(stream); // video1 is on the stage (flash.media.video not FLVPlayback)
    stream.play("mass", -1, -1, true); // -1 means play live stream only, -1 means start at 'wherever the live stream is'
    How can the receiver not obey the -1, -1 parameters especially if the broadcaster is not recording on the server.  How can i see the beginning of the stream!
    I believe I read that the flash plugin 9.0+ uses the on2 codec, and I also saw some discussion about on2 not able to stream live -- or not live from the browser plugin, only the flash media encoder.
    Can anybody tell me what is going on?
    Thanks
    Ted

    I tried streaming with the Adobe Flash Media Live Encoder3 instead of my Broadcater.swf.  This connects fine and pushes h.264 no problem.
    But the reciever is still seeng VOD not Live video.
    Is there something wrong with my receiver?

  • How to get live stream name

    Dear all!
    I use ffmepg to push a livestream to my flash media server. Then I want to catchup live stream to file.
    /opt/ffmpeg-1.1.1/bin/ffmpeg -i udp://238.1.1.2:1234 -filter:v yadif -acodec libfaac -ac 2 -ar 44100 -b:a 96k -af volume=5 -b:v 1000k -c:v libx264 -preset fast -pix_fmt yuv420p -s 720x476 -r 25 -threads 0 -t 300 -f flv "rtmp://10.84.70.120/dvrcast_origin/vtv22"
    After, I create an application that main.asc file is:
    application.onConnect = function (){
            name = Stream.name();
            stream = Stream.get(name);
            if(stream){
            stream.record();
    I can not catch live stream to file.
    Can you show me how to get a live stream name?
    Thanks!

    The error only appeare when there is no stream name in output.
    rtmp://10.84.70.120/dvrcast_origin/   --> error
    rtmp://10.84.70.120/dvrcast_origin/vtv22 --> ok.
    1. Could you re-try using the -ru option? for realtime publish?
    2. Have you compiled the ffmpeg with rtmp libraries?
         I can publish without error as the format above. So it is not problem.
    3. Are you able to record the udp stream onto the disk? (to verify there are no problems with the input stream? --> I've test with input without FMS. It's ok.
    4. Are there any error messages logged in FMS? (core logs/application logs)
    There is no error log file in logs/ folder.
    When I test with Flash media live encoder. I press "record" button. Everything is ok.
    The problem only appeare when I put stream with ffmpeg .
    Is there special anyconfig that effect it?

  • Having trouble watching live streams such as jtv and twitch.tv. I tried uninstalling/reinstalling adobe flash but I still get no stream just ads and pictures. Anyone have any suggestions?

    Having trouble watching live streams such as jtv and twitch.tv. I tried uninstalling/reinstalling adobe flash but I still get no stream just ads and pictures. Anyone have any suggestions?

    I just wanted to follow this up by saying that you were entirely correct in your diagnosis of the situation.  My computer did have the faulty part you linked to.  I brought my laptop in and specifically told them to run that test, had it fail and then argued with the person at the genius bar and the manager.  Eventually they offered to have it sent out and have everything replaced for free of charge.  They did so mainly because I had complained about graphical issues almost every other time I had come in with problems and no one ran the test.  They should have caught this problem during my warranty, but they didn't, even though I mentioned the problem.
    Anyhow, after having the part replaced, I haven't had my computer crash a single time since, or had many of the issues mentioned above.  I've never had this experience before.  Even brand new, I got occasional crashes.  Hopefully this new trend continues.
    I do find that web browsing is still incredibly slow.  Web browsers just chug along at a slow pace, even though I have great internet speed.  Maybe I'll try just deleting my web browsers and reinstalling them...
    Anyhow, thank you for your help and knowledge Clinton.

  • Why can't I get live streaming video to play

    Why can't I get live streaming video to play in Safari?

    Sorry, but that is old info. On my 21" iMac, I'm running 10.7.1 and the version of Safari is 5.1. On my 24" iMac, I'm running 10.6.8 and Safari 5.1. I have even tried to get it to run in Firefox and still no results. I've been able to do live streaming previously, but today I'm hitting a road block. Could there be a setting or preference that I do not have set properly?

  • Capture image from video live streaming

    Hi everyone ^^ 
    I have a question in my attached vi, I am able to have a live streaming video from my build in PC camera and take a pic from it too, the problem is it runs perfectly for the first time but the mint I press the button the image froze >< , I can not have my video back even when the case structure is fasle. Hope someone can help me with that 
    thanks a lot ^^ 
    Solved!
    Go to Solution.
    Attachments:
    Image Aquairing 2.vi ‏53 KB

    Hi ReChan,
    -IMAQ Snap Configures, starts, acquires, and unconfigures a snap acquisition.
    -For IMAQ Grab you're configuring initally. So, whenever you click boolean-imaq snap captures image and unconfigures the IMAQ session.
    -When you try to grab again, it will throw an error because IMAQ session isn't configured.
    -The mechanical action of boolean you kept as switch when pressed-it'll stay high-which results asking user for saving an image. instead i changed it to latch.
    Thanks
    uday,
    Please Mark the solution as accepted if your problem is solved and help author by clicking on kudoes
    Certified LabVIEW Associate Developer (CLAD) Using LV13
    Attachments:
    Image Aquairing 2.vi ‏53 KB

  • Offline image for Live Stream

    I am new to using flash media server. I setup the server and using the default player for the live stream and when I am not broadcasting I want to display an image instead of the black box that comes up till I start the live broadcast. Is there away to have it pull an image when I am not streaming?  

    Hi,
    When you said you are using the default player, did you mean the livetest.swf inside <fms-install>\applications\live ?
    If so then that cant be modified since it has only .swf file. You may have to write custom client side player (swf file).
    And also do you want to display any image or the last frame of the video before it stopped?

Maybe you are looking for