How to understand live stream is online

Hi,
First sorry about my english, i search my problem, but i couldnt find my answer,
We have more then 80 live stream videos. More than 20 PC with capture cards, send cam streams to FSM with FME,
Problems,
PC can crush, capture card can crush, fme can crush, camera connection can crush,
so with below code, i can unterstand if FMS server is alive, "NetConnection.Connect.Success"
but is my stream  alive? How i can understand "1test1" is alive,
for example i can unterstand with onMetaData info, if there is no meta info, no stream,
but i am a noob, what is the true way to understand live stream is alive, meta info isn't true way i think
i change var videoURL:String ="1test1" to a false value
but no error i get, it never says "NetStream.Play.StreamNotFound":
my goal is, i will make a web page, it will find all livestreams from xml, and cheack them, so systemadmin will see problem easly,
last question, if there is a camera problem, livestream gives a blank black screen, can i understand automaticly  this screen
var videoURL:String ="1test1"
var nc:NetConnection = new NetConnection();
nc.client = this;
nc.connect("rtmp://myFMS/live/");
nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
function netStatusHandler(event:NetStatusEvent):void{
trace(" trace netStatusHandler: " +event.info.code);  
switch (event.info.code)
case "NetConnection.Connect.Success":
connectStream();
break;
case "NetStream.Play.StreamNotFound":
trace("Stream not found: " + videoURL);
break;
function connectStream():void
var vid:Video = new Video(640,480);
var ns:NetStream = new NetStream(nc);
ns.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
var meta:Object = new Object();
meta.onMetaData = function(info:Object){
trace("metadata: duration=" + info.duration + " width=" + info.width + " height=" + info.height + " framerate=" + info.framerate)}        
ns.client = meta;
addChild(vid);     
vid.attachNetStream(ns);
ns.play(videoURL);

thanks, now i am able to understand what's your requirement.
first you create a sample live chat application. just for testing purpose. 
1- create video object.; 
2- create camera object; 
3- attache camera object to video object; 
4- create a button and register a event and listener function write below code. 
5- download adobe.image.PNGEncoder class 
hope, you can capture photo from video object into you testing application 
package
    import com.adobe.image.PNGEncoder;
    import flash.display.Sprite;
    import flash.display.DisplayObject;
    import flash.events.*;
    import flash.display.Bitmap;
    import flash.display.BitmapData;
    import flash.media.Video;
    import flash.media.Camera;
    import flash.geom.*;
    import flash.net.FileReference;
    import flash.utils.ByteArray;
    public class SavePng extends Sprite
        private var cam:Camera;
        private var video:Video;
        private var ab:FileReference;
        public function SavePng()
            cam = Camera.getCamera();
            cam.setMode(800,600,25);
            cam.setQuality(0, 90);
            video = new Video(1024,768);
            video .smoothing=true;
            video.attachCamera(cam);
            addChild(video);
            btn.addEventListener(MouseEvent.CLICK,saveImage);
            ab=new FileReference();
        private function saveImage(evt:MouseEvent):void
            var count:int = 0;
            var scaleW:Number = .5;
            var scaleH:Number = .5;
            var m:Matrix = new Matrix();
            m.scale(scaleW,scaleH);
            var bmd:BitmapData = new BitmapData(320,240,true);
            bmd.draw(video);
            var img:Bitmap=new Bitmap(bmd);
            img.x=250;
            img.y=200;
            addChild(img);
            var ba:ByteArray = PNGEncoder.encode(bmd);
           ab.save(ba,"sushil.png")

Similar Messages

  • ((FoX Tv)) Pacquiao vs Bradley Live Streaming Video Online HD Fight TV

    Pacquiao vs Bradley Live Streaming Fight Online PPV Channel Coverage 
    Pacquiao vs Bradley Live
    Date: 12th April
    Bradley's WBO welterweight title
    Enjoy This Live Game Here
    Welcome to everyone to watch this exciting Boxing Match between Pacquiao vs Bradley. The Game is Scheduled on Saturday, 12th April.
    So, Watch This PPV Boxing Game via This Sports Channel Site.
    Catch The Game Here....
    http://goo.gl/ychiwt
    http://goo.gl/ychiwt
    http://goo.gl/ychiwt

    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM

  • ((FoX Tv)) Bradley vs Pacquiao Live Streaming Video Online HD Fight TV

    Bradley vs Pacquiao Live Streaming Fight Online PPV Channel Coverage 
    Bradley vs Pacquiao Live
    Date: 12th April
    Bradley's WBO welterweight title
    Enjoy This Live Game Here
    Welcome to everyone to watch this exciting Boxing Match between Bradley vs Pacquiao. The Game is Scheduled on Saturday, 12th April.
    So, Watch This PPV Boxing Game via This Sports Channel Site.
    Catch The Game Here....
    http://goo.gl/MhNI9y
    http://goo.gl/MhNI9y
    http://goo.gl/MhNI9y

    Hi Guys Don’t mistake to start watching Manny Pacquiao vs Tim Bradley Online Boxing match on You’r Pc,Laptop,iphone.ipad,mobile,mac &Android /iOs & tab device. So Join now Today's big Fight
    12 rounds – Welterweight division (for Bradley's WBO title)  match from this site & click on the link below & enjoy Online live coverage . Easy
    to use You can watch Anytime ! Anywhere! Anyhow access. So Just Sing Up Then & Start watching Manny Pacquiao vs Tim Bradley online – Fight Stream : live , preview, highlights and recaps All available here.
    http://goo.gl/Z5jpDi
    http://goo.gl/Z5jpDi
    http://goo.gl/Z5jpDi
    http://goo.gl/Z5jpDi

  • ((FoX Tv)) Manny Pacquiao vs Timothy Bradley Live Streaming Video Online HD Fight TV

    Manny Pacquiao vs Timothy Bradley Live Streaming Fight Online PPV Channel Coverage 
    Manny Pacquiao vs Timothy Bradley Live
    Date: 12th April
    Bradley's WBO welterweight title
    Enjoy This Live Game Here
    Welcome to everyone to watch this exciting Boxing Match between Manny Pacquiao vs Timothy Bradley. The Game is Scheduled on Saturday, 12th April.
    So, Watch This PPV Boxing Game via This Sports Channel Site.
    Catch The Game Here....
    http://goo.gl/Bsc9eW
    http://goo.gl/Bsc9eW
    http://goo.gl/Bsc9eW

    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM

  • ((FoX Tv)) Timothy Bradley vs Manny Pacquiao Live Streaming Video Online HD Fight TV

    Timothy Bradley vs Manny Pacquiao Live Streaming Fight Online PPV Channel Coverage 
    Timothy Bradley vs Manny Pacquiao Live
    Date: 12th April
    Bradley's WBO welterweight title
    Enjoy This Live Game Here
    Welcome to everyone to watch this exciting Boxing Match between Timothy Bradley vs Manny Pacquiao. The Game is Scheduled on Saturday, 12th April.
    So, Watch This PPV Boxing Game via This Sports Channel Site.
    Catch The Game Here....
    http://goo.gl/a2Gsc4
    http://goo.gl/a2Gsc4
    http://goo.gl/a2Gsc4

    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM
    http://goo.gl/8RNjMM

  • How to do live streaming to FMS3 on Linux?

    Hi, I'm currently running FMS3 on RedHat Linux and it's
    working fine for VOD files. I'm trying to figure out how to do live
    streaming with this and am confused. I know that if I was running
    Windows, I could just use Flash Media Encoder, but I'm not. Has
    anyone had any experience with this? I know that I would obviously
    need a capture card but then what other software is needed to make
    FMS3 aware of this live stream?
    Any insight would be greatly appreciated.

    You would still use the FME (Flash Media Encoder) to send the
    stream to the FMS3. You simply need to specify your linux's servers
    IP instead of localhost.
    Now I have been playing around with the Live sample
    application that Adobe provided and I too have been seeing some
    issues with it. As of yet I haven't solved them all on my server.
    But I don't think you should have any major problem.

  • How to play live streaming in windows phone 8.1 silverlight app?

    Hi,
    I am developing a windows phone 8.1 silverlight app. In my I want to show live streaming youtube channel , I think it is not possible, 
    Actually that youtube channel is a television channel , I want to stream that live tv in my app.(I tried to load youtube channel in webbrowser in iframe tag but it is not opening)
    Anybody help me how to play live tv or live streaming in my app,
    Thanks..
    Suresh.M

    Hello,
    You will likely need to write a custom
    MediaStreamSource that can access the media stream and parse it. Windows Phone supports h.264 natively and as long as the site serves up a media stream that contains h.264 frames you can parse it and have our built in decoder decode and display it. You
    will need to have intimate knowledge of the streaming protocol used by the website that you are trying to play. You must also make sure that the website is not using protected content. IANAL so I would recommend that you have your local law professional
    (lawyer) review the licensing of the website that you are attempting to connect to and stream from before continuing your development. Your lawyer can make sure make sure their licensing allows you to do this.
    I hope this helps,
    James
    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

  • 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?

  • 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 play live streaming video which is being streamed via http or rtsp

    I am building an application which needs to display live mpeg2 video; the source of the live stream is over e network, e.g,http://xxx.xxx.xxx.xx:8080.
    To see if QT had this capability, In QT for Open URL, I tried, rtsp://xxx.xxx.xxx.xx:8080 and http://xxx.xxx.xxx.xx:8080, but I am not able to see any video. (I tried setting my QT options per posts I have read)
    Also, I'm able to see the live stream using Windows Media Player and VLC. (I used VLC to stream the video over the network and I tried streaming several formats but still could not see video in QT; when using rtsp, status of QT says negoiating and never transition from this state)
    Any advice on this topic?
    Thanks in advance

    QuickTime will not play MPEG-2 content, streaming or otherwise, without the addition of the extra-cost MPEG-2 Playback Component. Even with that component, QuickTime cannot play all MPEG-2 streams. Read the FAQ carefully for details.

  • How does HTTP live streaming support subtitles?

    Our app currently is on HTTP Live Streaming and everytime we scrub (fast forward or rewind) or if with low connection (buffering), the subtitle gets off-sync. Videos are segmented into 10 seconds so when you scrub, it jumps back to the nearest start of segment and when it does, it does not provide the exact and correct current playback time so we can't accurately compute for the offset, thus subtitle gets off synch.
    Our one solution is to use ID3 tagging when we encode our videos so we know exactly the time when segments starts. Unfortunately, there are not much encoding system that uses this yet.
    Any ideas on this?
    Thanks!

    Unfortunately, QTSS doesn't support HTTP Live Streaming. I wonder why Apple did not implement QTSS in Snow Leopard Server.
    However, Helix Universal Server from Real can do the trick.
    http://www.realnetworks.com/products-services/helix-server-proxy.aspx

  • How to "cut" live streaming

    Hai all, I am just wondering if any of you have ever tried to "cut" a live streaming to the client. I am trying to do that and I am still confused by where QTSS actually send the packet to the client, I try to debuy all the function in QTSSReflectorModule but it stops somewhere. My guess would be, there are other modules that will take care of that. Can you tell me what the module is? Or any way to "cut" live streams?
    Thanks, any help will be appreciated :P

    Hey Ari,
    Best solution I've found thus far is parsing the StreamingServer log based on time, and using the connected IPs in conjunction with OS X server's firewall. It does a great job blocking access to a webcast while its going on, but of course you have to be very careful and specific as it is possible to make mistakes and blocking tons of unanticipated IPs.
    Having gone through QTSS and QTbroadcaster and altering anything except default directories and settings has just gotten me nowhere.

  • How to store Live stream on the other Server

    Hello Everyone,
    This is very important for me to store all live streams in the archive server at F4V sormat.
    to do that I record live stream in the F4V:
    mystreams.publish('mp4:' + netstream.name + 'f4v');
    mystream.recod();
    This cods is work currently in the rootinstall directory's but I wan to store on the archive directory in other linux server.
    1- I share the archive folder in the archive server.
    2- Create folder on the AMS linux server in the applications/livepkgr/streams/_definst_/archive
    3- mount archive folder to the archive folder in other server:
    mount -t cifs -o administrator=root,password=myams //192.168.1.100/Archive /opt/adobe/ams/applications/livepkgr/streams/_definst_/Archive
    So Archive Server is: 192.168.1.100/Archive.
    Now I have problem to store live streams in the Archive server...!!!
    When I start publish live events on the Flash Media Server, AMS is make video file with f4v format in the Archive server (ams have access to write in other server) But this file has 0kb. there is no capacity.
    Please advise me to solve this problem.
    Many Thanks.

    This seems like a good guide:
    http://www.marcoach.nl/index.php/nl/tech-tips/55-os-x-mountain-lion-webmail.html
    Lion Server (10.7) does still have webmail on board, although this is not the forum, this is.

  • Mutliple camera feeds, different qualities: How to reduce live stream quality for mobile users??

    My issue is I have multiple cameras from users and some are on mobile devices, so I want the mobile users to receive a different quality feed.
    I've tried using receiveVideoFPS to no avail (apparently H.264 can't / won't ever support this feature....)
    Can feeds be received differently so that if one users has an HD camera feed, the mobile guys not choking his connection and cpu trying to pull it down?
    Any help or ideas would be greatly appreciated.
    Thanks so much.

    1) any practical use of P2P multicast will have a delay measured in seconds. it shouldn't go to 30 seconds unless you have a large NetStream.bufferTime.
    2) i strongly recommend against changing the multicast stream parameters. they all interact with each other. decreasing the window duration will decrease the effective reliability of the stream, by reducing the amount of time to receive all of the fragments of the stream as they pass through the P2P group -- especially when people join or leave the group, which can disrupt the low latency "push" trees that are constructed in the group.
    3) you should be able to change the encoding parameters on the fly without a major disruption. are you using H.264 or Sorenson Spark?  it's possible that your camera doesn't like to have its capture size changed and it is freezing temporarily.  i'm not having any trouble changing the capture size with my camera (and using H.264).  i recall there being some issue with changing the frames-per-second on the fly (at least some time ago, and i don't remember what the issue is) -- there was enough of an issue that i disabled it in my little app while actively publishing.

  • How to use Youtube Live Streaming API ??

    I want to make a WPF application that gets the video from my ip camera and sends it to my youtube channel live. I look around all of the websites but there's no example how can i live stream a video to Youtube with c#. There are examples in google's website
    but they were written with PHP, Java and Phyton but I don't know this programming languages so i couldn't use the API.
    I tried to write a little bit but it didn't work. Here's my code that i wrote looking through the Java example.
    string devkey = "AIzaSyCbxm6g9orAw9PF3MkzTb_0PGbpD3Xo1Qg";
    string username = "MyYoutubeChannelEmailAdress";
    string password = "MyPassword";
    YouTubeRequestSettings youtubereqsetting = new YouTubeRequestSettings("API Project", devkey, username, password);
    YouTubeRequest youtubereq = new YouTubeRequest(youtubereqsetting);
    LiveBroadcastSnippet broadcastSnippet = new LiveBroadcastSnippet();
    broadcastSnippet.Title = "Test Live Stream";
    broadcastSnippet.ScheduledStartTime = new DateTime(2015, 3, 12, 19, 00, 00);
    broadcastSnippet.ScheduledEndTime = new DateTime(2015, 3, 12, 20, 00, 00);
    LiveBroadcastStatus status = new LiveBroadcastStatus();
    status.PrivacyStatus = "Private";
    LiveBroadcast broadcast = new LiveBroadcast();
    broadcast.Kind = "youtube#liveBroadcast";
    broadcast.Snippet = broadcastSnippet;
    broadcast.Status = status;
    Google.Apis.YouTube.v3.LiveBroadcastsResource.InsertRequest liveBroadcastInsert = new Google.Apis.YouTube.v3.LiveBroadcastsResource.InsertRequest(service, broadcast, "");
    LiveBroadcast returnLiveBroadcast = liveBroadcastInsert.Execute();

    This article should get you going:
    https://developers.google.com/youtube/v3/code_samples/dotnet
    Also, questions on YouTube API issues should get the best service here:
    https://groups.google.com/forum/#!forum/google-api-dotnet-client

Maybe you are looking for

  • How to undo Firefox 5 in Win 7 and in XP? Generally, how to stop automatic Firefox updates?

    Firefox 5 has reduced toolbar and other services on both of my 2 computers -- a Win 7 and an XP3. Would like to go back to version 4, stop automatic updates in Firefox.

  • Problem with an ImageIcon

    hi, i have a problem. i have two JButtons with image icon, and i want to superpose another JButton with imageIcon on the first button. i really have to make a music keyboard, and that is for the black keys. i have all the white keys, and when a draw

  • Date popup behaving very funny

    I have a PLSQL returning SQL which returns a multi row rwport. The query is like this..... SELECT HTMLDB_ITEM.TEXT(1,EMP_NO,'7','','readOnly = "true"') EMP_NO, HTMLDB_ITEM.TEXT(2,EMP_NAME,'35') EMP_NAME, WWV_FLOW_ITEM.DATE_POPUP(3,NULL,DOB) DOB etc e

  • Custom style sheets

    hi, I want to create custom style sheets which has some new styles that I can specify but these styles use the styles from blaf.xss and i can overwrite the properties of those styles! I was successful in overwriting the blaf styles but I want to have

  • Powerbook G4 won't install Leopard...

    I've done 2 days worth of research across the web but can't find a solution for my issue. My boss has his old Powerbook G4 800MHz (i know what some of you are already thinking...) with 10.2.8 loaded on it. We purchased the retail Leopard disc a while