Publishing Live Stream - Bandwidth Doesn't Match Camera Settings
I'm publishing a live stream on FMS 2 from my webcam. I have the camera properties set via the following:
Code: vid_width = 640; vid_height = 480; vid_framerate = 30; our_cam.setQuality(vid_bitrate*1024/8,vid_quality); our_cam.setMode(vid_width,vid_height,vid_framerate,true); I pass in vid_bitrate and vid_quality via the UI and I'm finding via a network bandwidth monitor that I'm using far more bandwidth than I expect. If I pass in 300 for vid_bitrate and 0 for vid_quality I'm expecting to see approximately 300Kbps upstream for my video stream (I have not attached the mic to the stream so only video here). Instead, I see huge peaks depending on motion up to roughly 1.2Mbps. There can't be that much overhead in the stream, can there? Any ideas on how to properly calculate the upstream bandwidth I need based on known camera parameters?
If I bump the resolution down to 320x240, I'm seeing about half the bandwidth utilization (up to roughly 600Kbps). Not sure how the pixel dimensions are coming into play here.
Not sure if this is more appropriate for the AS 2 forum or FMS forum.
ActionScript.org Forums > Supporting Technologies > Flash Media Server
Posted on: 06-09-2008, 02:51 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
CCD Security Camera Publishing Live FLV Stream?
sweet hello to all,
I can publish my 'Live' flv video to my RTMP Server using my webcam(USB), because flash player easily detects my camera and publish live stream.
Problem is that, I want to use a Security Camera for this pupose because I can get Good Picture quality and Lengthy wire of course.
I want to stream flv video using my CCD Security Camera. But Flash Player does't stream/show live video when i select this camera from Flash Player camera names list. This security camera works fine when i use it with my webcam software or Windows movie maker.
please tell, Do i need to install some software or the issue is something else?
Also tell me how can i check that my Security Camera is using WDM Video capture Driver or Not??
Regards,
Waqas Tariq Dar
AS 2 CCD Security Camera Publishing Live FLV Stream?
sweet hello to all,
I can publish my 'Live' flv video to my RTMP Server using my webcam(USB), because [COLOR=blue ! important][COLOR=blue ! important]flash [COLOR=blue ! important]player[/color][/color][/color] easily detects my camera and publish live stream.
Problem is that, I want to use a Security Camera for this pupose because I can get Good Picture quality and Lengthy wire of course.
I want to stream flv video using my CCD [COLOR=blue ! important][COLOR=blue ! important]Security [COLOR=blue ! important]Camera[/color][/color][/color]. But Flash Player does't stream/show live video when i select this camera from Flash Player camera names list. This security camera works fine when i use it with my webcam software or Windows movie maker.
please tell, Do i need to install some software or the issue is something else?
Also tell me how can i check that my Security Camera is using WDM [COLOR=blue ! important][COLOR=blue ! important]Video [COLOR=blue ! important]Capture [/color][COLOR=blue ! important]Driver[/color][/color][/color] or Not??
Regards,
Waqas Tariq Dar
AS 2 CCD Security Camera Publishing Live FLV Stream?
sweet hello to all,
I can publish my 'Live' flv video to my RTMP Server using my webcam(USB), because [COLOR=blue ! important][COLOR=blue ! important]flash [COLOR=blue ! important]player[/color][/color][/color] easily detects my camera and publish live stream.
Problem is that, I want to use a Security Camera for this pupose because I can get Good Picture quality and Lengthy wire of course.
I want to stream flv video using my CCD [COLOR=blue ! important][COLOR=blue ! important]Security [COLOR=blue ! important]Camera[/color][/color][/color]. But Flash Player does't stream/show live video when i select this camera from Flash Player camera names list. This security camera works fine when i use it with my webcam software or Windows movie maker.
please tell, Do i need to install some software or the issue is something else?
Also tell me how can i check that my Security Camera is using WDM [COLOR=blue ! important][COLOR=blue ! important]Video [COLOR=blue ! important]Capture [/color][COLOR=blue ! important]Driver[/color][/color][/color] or Not??
Regards,
Waqas Tariq Dar
Live Stream Bandwidth Limiting
I have confirmed this behavior in FMS 3.0.2 on Windows 2003, Vista, and Linux.
In prior versions of FMS if I had a publisher sending a live video feed to the server, then I could have subscribers connect to the server and set a bandwidth limit for them and the server would ensure that the subscribers only got as much bandwidth as I set for them. As of version 3, the server now ignores this limiting for live streams.
You can set a limit on the publisher which of course then limits the live stream that subscribers view, but that is not what I want. I want to have the publisher push a live stream at the quality I specify and then I need a way to give some subscribers a lower bandwidth version of that stream. This all worked fine in prior versions of FMS and I can't imagine this is intended behavior in version 3, but it seems like a major oversight.
The bug can be replicated by creating a simple flash app to stream live video to the server and then in a separate NetConnection, subscribe to that live stream and display it. Then on the server side, setup an application.onConnect to do a setBandwidthLimit on the subscriber and you can see that it is totally ignored. You get the full bandwidth stream even though the limit should be reduced for the subscriber.
AS3 Live Stream Publishing Bug In FireFox
Hi everyone!
I hope that some AS3 guru can help me
I have one AS3 development trouble which I can't solve during weeks...
It's a phantom bug from FireFox flash player...
I will be happy if anybody can help me.
Short info about bug:
I have one AS3 swf(1) loader, that loads another AS3 coded swf (2).
(2)swf contains code, which gets webCam video, and then publish it to FMS3 server.
All is ok in IE7, but in FireFox any mouse event stops the stream publishing without any reason... (ex: MouseOver to video object on the stage, that shows video from webCam (local video, not published on fms)).
Swf published to the Internet server.
If I open (2)swf directly (without loading it into another swf) - all works fine in both browsers.
Thank you in advance!
Have a great day!
AS3 Live Stream Publishing Problem In FireFox
Hi everyone!
I hope that some AS3 guru can help me
I have one AS3 development trouble which I can't solve during weeks...
It's a phantom bug from FireFox flash player...
I will be happy if anybody can help me.
Short info about bug:
I have one AS3 swf(1) loader, that loads another AS3 coded swf (2).
(2)swf contains code, which gets webCam video, and then publish it to FMS3 server.
All is ok in IE7, but in FireFox any mouse event stops the stream publishing without any reason... (ex: MouseOver to video object on the stage, that shows video from webCam (local video, not published on fms)).
Swf published to the Internet server.
If I open (2)swf directly (without loading it into another swf) - all works fine in both browsers.
Thank you in advance!
Have a great day!
Can I Insert An Extra Audio Stream Into The Live Stream?
I have a project where I need to set up a broadcast (from pre-recorded files) so people can 'tune in' at a certain time to watch a show. Some of these shows should have a soundtrack, can I use SSAS to overlay an extra audio stream? So I would send one video and two audio streams out to the client as one stream.
Alternatively, can I use SSAS to replace the audio, so effectively demux the original audio off and send out a different audio stream in its place.
Thank you in advance for any advice.
Embed Live Cue Data In Live Stream?
I am currently using the new FME to encode live to a FMS. Both applicatioins are running on the same machine. Is there a way to embed live cue and metadata into the live stream? Once embedded we want to record the stream AND send it on to viewers. Is there a way to process this on the server. The live cue and metadata is coming in the serial port.
Bandwidth Settings
Hi guys,
I wonder if anyone has this information to hand.
I have x users in my database. For testing I want each user to been assigned a Connection type value.
T1
DSL
Cable.
What are the proper up and down stream values for these connections.
I want to check user's connection so that i can set buffering amount for video on site.
Thanks
Paul
Camera Settings
Does anyone know where the camera settings are stored for the Flash Player. I am working on a projector and would like to set the camera to always allow before Flash asks the question.
Live Camera In A Webpage
Hi guys,
I have a website in a windows 2003 small business server and i want to put one flash movie to the home-page and i want to play live video with a webcam. I have this script for local video only.
[code]localCamera = camera.get();
localVidInstance.attachVideo(localCamera);
mic = Microphone.get(0);
mic.setRate(44);
mic.setGain(70);
mic.setSilenceLevel(1);
mic.setUseEchoSuppression(true);
_root.attachAudio(mic);CODE]
But i want this live video to can be watched remotely by any visitor.
Any idea???
Thanks in advance.
Live Data Transfer = Huge Bandwidth Consumption
I've created a simple Flash app that would allow people to move boxes around and see other people move theirs. I've been using XML to do the data exchange but it slows down tremendously when more than 2 or 3 people are using it. Is there a more efficient way to transfer data from Flash to a server and vice versa?
Here is also another question, is it possible for Flash to act as a client and server? This way a Flash client would directly connect to another and exchange data without a middle-man server.
---------------------------------------
http://www.visualactive.net/
Creating Live Connection To USB Camera
I Have a USB camera and want to create an application in Flash or Director which creates a Live feed from the USB camera.
Like a CCTV system, with out the pauses.
Any help or thought would be greatly appreciated.
LIVE VIDEO - MULTIPLE CAMERA
iam trying live video streaming using FMS3, FME2, and Flash Lite3
how to create live video streaming , if i use multiple camera
help me,,,,
Streaming Live Camera Not Working
I am very new to FMS and need some pointers on where to go now i have the product installed.
Currently i have FMS installled on a server and can access the Flash Media Administration with no problems. I have setup a webcam on a desktop and used the Adobe Flash Media Converter to streram the output to the FMS, giving it the FMS URL as rtmp://<ip address>/live/livestream which connects fine.
Here is where i have the problem. I have run the URL rtmp:localhost/live/livestream on the FMS server but all it says is 'connecting'. I have also tried running the livetest.html from the ../samples/applications/live directory but this again just shows 'loading' at the bottom of the screen.
This setup really is just a test for me to try and get an understanding of the FMS etc, what i will really need to do is take a feed from an IP camera to the FMS and then stream this out to multiple desktops.
Can anyone help with with the above issue and also proivde some pointers for me to progress with the live setup.
Many thanks
Making A Stream Selection For Low Bandwidth Users
Hello to everyone, I'm streaming a live video feed at 512Kb but I want to encode a second stream for low bandwidth users, right now I have 2 encoders: 1 for 512Kb and the other for 128Kb, both are connected to FMS3, I´m trying to make a button selection for the users so they can choose the right speed. Thank you.
Making A Stream Selection For Low Bandwidth Users
Hello to everyone, I'm streaming a live video feed at 512Kb but I want to encode a second stream for low bandwidth users, right now I have 2 encoders: 1 for 512Kb and the other for 128Kb, both are connected to FMS3, I´m trying to make a button selection for the users so they can choose the right speed. Thank you.
Stream Camera In Flash Help
hi all.... this is my first post . any mistake hope be forgive ^^
my_cam = Camera.get();
my_video.attachVideo (my_cam);
above is the script that make me able to view my pc usb webcam in the flash.
but if i want to view the camera that install in other pc within my local network into the flash.
how im going to change the script to make it work??? if the flash can do like wat i mention?
hope to get some help!! thks
Linux Flash Player LNX9,0,48,0 Camera Settings
The flash player sees my capture card ok, but there doesn't seem to be a way for me to tell flash which input to use on my capture card or any way to set capture format, size or palette information?
I also seem to be having trouble using the onscreen controls to activate the AVpresence instance. I'm thinking I might need to compile my swf for flash 9?
Please help...
PV3D - Which Camera Settings To See Normal Sized Images
I read in some post/blog or something recently where the camera was set up to see the item ( pictures i guess ) at the normal viewing size. I can't find that post now, and I am wondering if someone knows those values?
camera.focus = ?
camera.z = ?
camera.zoom = ?
I have these values now, but there only close... but not exact
camera.zoom = 4;
camera.focus = 140;
camera.z = -1000;
Live Stream
Hi, i have my own internet radio station and i would like to let people listen to it from my flash website so how can i do this.
Live Mp3 Stream
Hi, I'm working on this site: http://www.kalicious.com/projects/in...e/witr/launch/
I am using a live MP3 stream of the radio station so that I can play the live music and have the user ontrol the volume, but I am running into many problems with it.
For instance, when I compile the SWF in Flash, it compiles and then the entire flash environment immediatly crashes. When I run the swf in Flash player off my machine it works fine. When I run it embedded within HTML or uploaded to a server, the sound plays for a few seconds, then just stops. This is on PC.
On mac, on the other hand, it seems to always work fine in all situations.
I'm pretty sure this has something to do with Sandbox security settings, but I don't know much about this side of things. Does anyone out there know of a workaround for this problem?
Live Stream
hi friends,
I have live stream from media encoder to media server.I want to know how much of speed i want to live stream.
my encoding configurations are
size : 400X 300
FPS : 25
2 pass CBR
video bitrate :200kbps
audio 22050 Hz
bitrate :32 kbps
please help me to find a good internet connection....
When calculated the bitrate using adobe bitrate calculator ,it shows 288 kbps.
please help me to find out it...
regards
harilal
Live Stream
I can stream the content to the flash 3 server, but how does the end user connect to a live stream? Is it like a VOD application?
Live Stream With H.264
Hi,
It's possible use live stream video with codec h.264 without use FME 2.5 like encoder.
Exactly, is it possible create a flash application (exe) and use codec h.264 for live stream?
Thanks
Stefano
DVR Live Stream
Hi every body i need help i try to view live video from dvr which connected via local network and has an ip and there are 8 cameras connected to the dvr i want to use flash media server for streaming
Live Stream Help
Hi,
I have been doing a lot of Flash with progressive download and also streaming Flash but I have been asked to create a piece that uses live streaming Flash. I tried using the Flash Import wizard with the RTMP link that I was given but alas, it failed to work. I don't understand the live streaming video...
I am having troubles finding a tutorial on this. I looked at the Flash tutorials and only found the basics of using the Flash wizard.
Please help!
Thanks!
janst
Publish Doesn't Match Preview
My .fla looks great. The preview .swf looks even better. When I publish, the .swf file is all messed up...transitions don't happen, text is missing....
BUT, strangely enough, a mac Projector works fine! What's going on?
Can Stream LIVE, But Can't Stream FLV -=
Hi there. Pulling out my hair...and i'm bald enough already!
I built a FLA that streams live from the FME - works great.
Cannot for the life of me figure out how to use the FLVPlayback (or anything for that matter) to stream a regular FLV.
Any help would be SO helpful!!
My fms and flv set up - ... applications/playapp/play.flv (also put in streams folder and _definst_ folder with play.flv in there just in case)
in the source, I have tried all variations - but is currently: rtmp://edge2.xxx.net/playapp/instance1
It demands an instance name, even though I don't know how that works (i know i put the source in FME with that, but this is an already made FLV).
Sincere thanks -
adam
Publishing Settings
I have completed the work to my flash website and I am ready to publish it (I think). Problem is that after I publish my movie selecting html and swf. I test the movie in the browser and the movie is neither flush left or flush with the top of the window and I would really like for it to be. Any help?
Publishing Settings . . .
Is there a way in which to get flash to publish the html , so that the .swf re-sizes inside it to fit the browser window.
i.e so that it won't chop edges off at a lower resolution, and not leave gaps on a higher one.
Publishing Settings . . .
Is there a way in which to get flash to publish the html , so that the .swf re-sizes inside it to fit the browser window.
i.e so that it won't chop edges off at a lower resolution, and not leave gaps on a higher one.
Help With Live Stream Switcher
I want to be able to have several locations stream audio/video to a flash media server. I am using an adobe video switcher right now and it works great
http://www.adobe.com/devnet/flash/ar..._switcher.html
but I need to be able to get the audio from a DV cam, which is not possible through the browser plugin. I am able to grab the audio from the DV cam when using Flash Media Encoder. When I stream from the encoder to the FMS, in the "switcher" swf, the stream does not appear in the list. So I think I just need the code to retrieve the list of streams on the FMS. Can anybody help? Thanks.
Detect Live Stream
Any ideas on why this code is not working? It never traces that the video is not found. Even when I put in a wrong address.
Attach Code
//------------Make Initial Connection-------------------//
var nc:NetConnection = new NetConnection();
nc.connect("rtmp://flashmedia.administaff.com/live/");
var ns:NetStream = new NetStream(nc);
ns.setBufferTime(0);
video.attachVideo(ns);
ns.play("livestream");
ns.onStatus = function(infoObject:Object):Void {
if (infoObject.code == "NetStream.Play.StreamNotFound") {
trace("Could not find video file.");
}else{
trace("Live is working!");
}
}
Can Not Connect To A Live Stream
I just can not get the live stream. I have two files, one sender and 1 subscriber. I'm working localy testing FMS.
I just have a video object on each stage and the actionscript:
sender:
var rtmpPath:String = new String();
rtmpPath = "rtmp:/test";
var ncBase:NetConnection = new NetConnection();
ncBase.connect(rtmpPath);
var ns:NetStream = new NetStream(ncBase);
local_sender.attachVideo(Camera.get());
ns.publish("testVideo","live");
the video object instance name is local_sender.
the subscriber:
var rtmpPath:String = new String();
rtmpPath = "rtmp:/test";
var ncBase:NetConnection = new NetConnection();
ncBase.connect(rtmpPath);
var ns:NetStream = new NetStream(ncBase);
local_re.attachVideo(ns);
ns.play("testVideo");
I can see video from camera in the sender file but in the subscriber nothing.
In the flash media server console i can see 3 streams. one with the name i create and the other two generic, like CBAoQD6H...
how can test is the stream out is really going out and if so, if the stream in the problem?
I dont have a main.as file in my folder application. but i tried putting there one from the flash 8 samples and tutorials and didn't work.
any help will be very appreciated.
Thanks
Viewing A Live Stream From FMS
I'm using the Adobe Flash Video Encoder to send a live flash video stream to my FMS 2 (Developer Edition) on a Windows 2003 R2 Standard Edition Server
I'm connected to FMS and the encoder IS sending the video. When I look at the FMS Console its confirmed that I'm connected and publishing a LIVE video.
I can't view the video, which I thought was going to be the 'easy' part.
I can't for the life of me figure out how to configure a flash .swf embedded in a web page to VIEW the video.
IT"S MADDENING. I'm a bright guy, but in my opinion FMS is very poorly documented when it comes right down to telling you HOW to make things work.
Any help is appreciated.
I'm good with Flash, but I come from a Windows Media Server background. This is my first foray into FMS.
Mirroring A Live Stream
I need to take a live stream from a camera attached to server A, and mirror it to server B, so that local users on server B can view it. I don't want it saved to server B, I want it to remain live. I'm using a push model - server A sets this up.
I think that if I create a netconnection on server B looking back at server A I can use it to add a netstream attached directly to server A's camera. Is this correct?
I am as yet a very inexperienced Flash developer, and my efforts are impacted by the fact that I am now modifying someone else's code using someone else's design patterns.
Thanks.
Live Stream And Codecs
Hello.
Here is described how to use different codecs for different clients (Sorenson Spark for Flash Player 7- and On2 VP6 for Flash Player 8+).
http://livedocs.adobe.com/fms/2/docs/00000081.html
But as I can see, it is only suitable for recorded .flv files.
Is there any possibilities to customize stream delivery or live streams?
Can FMS2 transcode streams on the fly?
Thank you.
Sending Live Stream From One FMS To Another FMS
Hey,
Here's what I would like to do:
1. The Flash Media Encoder sends a live stream to FMS 1
2. On FMS 1, a connection to FMS 2 is set up and the live stream is sent to FMS 2.
3. Every second, a message with metadata is sent to FMS 2 using Stream.send()
4. A Client connecting to FMS 2 receives the stream and the metadata that was sent along with it.
I know this sounds pretty confusing, but the main problem is, that I don't have access to the FMS 2, so I can't call Stream.send() there. First I thought the solution would be using Stream.play() with a remote connection, but when I call the Stream.send() method nothing happens on the client side.
Then I thought I could do the whole thing by using a client side application that connects to FMS 1, receives the stream, embeds the metadata and publishes it to FMS 2. Here's the code I used:
// Connect to FMS 1 to get stream
client_nc.connect("rtmp://localhost/encoder_stream/room_01", "Client");
// Create input stream
in_ns = new NetStream(client_nc);
// Connect to FMS 2
akamai_nc.connect("rtmp://localhost/akamai/room_01", "Client");
// Create new stream, feed with in_ns and send to FMS2
out_ns = new NetStream(akamai_nc);
out_ns.publish("stream");
out_ns.attachVideo(in_ns);
Unfortunately the attachVideo method only accepts a camera and not a netstream object.
So this is where I'm standing now... anyone any ideas?
thanks
Buffering Of Live Stream
Hey guys, I noticed whenever my FME's connection to the FMS get laggy, the FME seems to buffer the stream. The streaming service hence becomes 'not live' as the users watch events that happened minutes ago. Is there any settings that I can apply to either the FMS or FME to prevent this? Currently, the only solution I could use is to stop the FME streaming and restart it, flushing out the buffered data.
Lag When Recording Live Stream
I am experiencing a very strange behavior from FMS
I am conducting a live conversation between 2 people using their webcams. One of the participants have a relatively slow computer (we think its the anti-virus). When conducting the live session everything seems to be fine... Still a bit slower than fast computers but still pretty good.
We are doing the following test:
We do a combined count from 1 to 20.
participant-1 counts "1" (this is the slow computer)
Only after hearing his count participant-2 counts "2"
Again, only after hearing his "2" participant-1 counts "3"
and so on...
so the count goes from participant-1 to the server and from there to participant-2 only then the "2" count leaves participant-2 to the server and so on...
This session is being recorded. What I am getting in the recored video is very strange...
I am getting participant-2 count before participant-1. So the count goes:
2,1,4,3,6,5 and so on
How is this possible to have the order correct on the live and not on the recorded?
Record Live Stream With Different Name
Hi all!
I have a live streaming application running with FMS2 and I have come across an issue with recording streams. My application allows a client (from a pool of multiple clients) viewing the stream to record the stream to the FMS server. I start the recording on the server side with the following (simplified) code:
application.recordStream = Stream.get(instanceName);
if (blnRecord)
{
// start recording
application.recordStream.record();
}
else
{
// stop recording
application.recordStream.record(false);
}
There is something that I'm having trouble with though - is there a way to record the stream with a different (unique) name rather than the instance name? I ask this because I need to have different names for each different recording session. Using file.renameTo( ) after the recording finishes works in theory, but in practice it seems that the recorded file is buffered before it is written to disk. So when the application.recordStream.record(false); line is invoked, trying to rename the file now is not possible, as it's still being written to the disk. It seems there is no way to know when the final, complete file has finally been written to the disk.
The problem here is that once the first recording is finished, another user can start the record process again. If the file has not been renamed or moved, the previous recording will be overwritten!
So, is it possible to record a stream, but save it to disk with a unique name?
Thanks in advance,
K.
Publish H.264 Live Stream
Hi all,
I'm currently trying Flash Media Server 3.0 with CS3 and Flash Player 9.0.115. Our goal is to implement a videoconferencing application with H.264 encoded video.
In the feature list, it's clearly stated that the server allows live publishing of H.264 content. I haven't seen any documentation on how to do this yet. I don't know if the player publish in H.264 by default or not?
Is it possible to do this?
Live Webcam Stream
I am new to the FMS....I have down loaded FMS3....I am also trying to get other to view me on my webcam through a website. My question is, do I need the Media Encoder for FMS3 or is that already included in it?
Any help will be great.
Thanks
Live Stream In Different Resolutions
hello,
I have an urgent question for the following purpose. We plan to develope a
solution consisting of a sender software for streaming live video to the streaming server. Now more than one client should be able to connect to the stream of the server. Because the different clients are connected with different bandwidth rates the server should be able to convert the video stream (e.g. the video width and height, framerate and quality) on the fly. Maybe a client with a better connection than DSL should get the video in a resolution of 640x480, a DSL client should get the video in 352x288 and a client with ISDN in 176x144.
Is there a possibility to do this with the FMS server on the server with server-side ActionScript? Or can I limit the requested stream size on the client side? Or anything I can do?
I hope anybody can answer my question quickly, its really really urgent.
Thanks in advance
|