Flex :: Flash - Buffer + Live Stream Via RTMP?

Jan 27, 2010

Live streaming and a buffer on a NetStream do not mix. Why? The docs don't say you can't do this.The playback gets hosed. Buffer is supposed to fill to what you set it to before playing. Instead though, about half the time, the player starts playing right away and disregards the buffer time you've set. Then you get caught in short buffering and rebuffering cycles that degrades the playback experience.

Give it a shot yourself. Here is the simplest of live streaming video players. No frills. Just connect it to your live stream by changing the defaultURL string and stream name in the ns.play() statement.

Run it in Flex debug mode. It will check and print the ns.bufferLength property every second. The buffer is set to 20 secs currently. Last time I ran it, I never made it above 2 seconds in the buffer. Player started playing right away instead of buffering the full 20 secs first. Sometimes you get to the full 20 and sometimes not.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
initialize="init()">
<mx:Script>

[code]....

View 2 Replies


Similar Posts:


Flash :: OSMF Detecting The End Of A Live RTMP Stream?

Oct 26, 2010

What's the best way to check whether there is video data (or not) in a live RTMP stream? For example, if a broadcast terminates, can I auto-detect that condition, to perform some sort of "thank you for watching" behavior?Also, how can I know if a visitor somehow gets disconnected from the Internet during the broadcast? (So I can notify the visitor of the problem, and give instruction.)

View 1 Replies

Live Stream Both RTMP And HLS With FMS 4.5?

Feb 7, 2012

Is it possible to live stream both RTMP and HLS with FMS 4.5?

I want flash users to have the least latency possible using RTMP, and iOS users use HLS.

View 1 Replies

Media Server :: Buffer A Live Webcam Stream?

Aug 20, 2009

Should I buffer a live webcam stream?

View 1 Replies

Media Server :: Publish Live Stream(H.264) To FMS(NetStream.Buffer.Empty)?

Feb 27, 2011

I am developing a C++ program to connect FMS via RTMP, and then publish a live stream I can't use FMLE here because I need collect the H.264 NALU from somewhere and forward them to the FMS.I write a demo app, which parses H.264 encoded FLV file, and send the VideoTag in the FLV as RTMP Message content for publishing.Finally, I make it run and I can see some frames of video!But the problem is: The video does not play smoothly and it just updates some frames.
Then I looked at the NetStream event and found that:Everytime when there is a NetStream.Buffer.Full event, the frame in the video is updated and display correctly But immediately there is another NetStream.Buffer.Empty event followed and the video is frozen.
 
[code]...

View 1 Replies

Media Server :: Clearing Application Buffer After A Live Stream Ends?

Mar 16, 2012

I'm sure this has been asked and answered a million times, but searching for "application" "buffer" "cache" "live" and "hls" isn't giving me any answers, so let's get to it. After I end a live stream (which I do using FMLE 3.2 and FMS 4.5) and I then start a new live stream with the same application name, the HLS stream just loops the last 30 seconds of the old stream. To prevent this, after I end a stream, I have to go to applicationslivepkgstreams\_definst_ and delete the buffered data there. Only then can I start a new stream with the same name as the old stream. Now... that can't be normal, can it? Is there a switch somewhere I can set to tell FMS to cut it out and stop buffering old streams?

View 1 Replies

Stream Live Video - Use Http Or Rtmp Protocols From Player Code?

Nov 21, 2009

I'm trying to stream live video for the first time. I've installed FMIS 3.5 without Apache 2.2. I'm confused on the RTMP/HTTP protocol usage,I can only have port 80 opened on our FMIS 3.5 box.

[Code]...

View 1 Replies

Publish Prerecorded (or Live) Video, Instead Of Camera In Flash/Flex/Air Via RTMP To FMS?

May 17, 2011

I'm looking for a way to stream video from the desktop to an FMS installation. I know that in ActionScript, it's possible to do:

netStream.attachCamera(camera);
netStream.attachAudio(mic);
but not:

[code].....

View 1 Replies

Media Server :: Way To Pass Rtmp Call For A Live Stream Through A Proxy Server?

Mar 4, 2011

Somebody I know can't watch because they have a proxy server.The nc.connect() call to get the live stream fails because it goes direct from AS3 to FMS and doesn't go through the proxy server.

View 1 Replies

Actionscript 3 :: Buffer Stream When The Video Is Paused With Flash?

Nov 30, 2010

I need a feature of allowing buffering the video when it's paused, which I cannot find how to do it directly... I notice that, when I pause the video, the event "NetStream.Buffer.Flush" is triggered. And according to the language reference: "Data has finished streaming, and the remaining buffer will be emptied.", I have to re-buffer it, right? However, also according to the reference, it shouldn't stop buffering:

[Code]....

View 1 Replies

Flash :: Embed RTMP Live Streaming Link To Browser?

Mar 31, 2011

how to embed rtmp link to be viewed in a browser? I already tried Moeya but it is still not running. Anyone knows other solution to how can I embed this to a browser?

View 1 Replies

Flash :: Pause An RTMP Stream Immediately?

Aug 18, 2011

I can stream video RTMP just fine in JW Player by LongTail Media. The Pause seems to work, however using Windows 7's Resource Monitor I can see that the player continues to download data when the video is paused, it downloads for about 60 seconds (and does not seem to be longer for longer videos). I have found the same using the examples on longtailmedia's website, so I know it is not something I have done.

I want a way to pause the video and have it stop downloading, this will save us lots of bandwidth. But also have it continue where it left off if play is pressed again.

I checked the logs on our wowza media server, which indicates that the player actually waits 60s before it sends the pause command to the server.

LongTail's support say that the pause functionality uses the built in NetStream class and its behaviour is out of their control.

I have tested flowplayer online examples, and a couple of Adobe / OSMF examples and they all continue to download for 60 seconds after the video is paused.

A way to get this working in JW player would be best, but Are there any flash players that will stop downloading while paused?

If this is not possible with RTMP are there any technologies that will do this with a flash player?

View 2 Replies

Security - Save This Rtmp Flash Video Stream?

Jan 26, 2011

I immediately fired firebug in firefox but surprisingly the video source is not in the requests.tp://hwcdn.net/m7n9i8d5/fms/videos/5_Standard_Zipper/B_Overview_of_Zipper_Types.flv.smil is the last request that is being made. response being:

<smil>
<head>
<meta base="rtmp://fms006.lo1.hwcdn.net/m7n9i8d5/_definst_">

[code].....

View 2 Replies

Create/modify Flash Video Stream Before Streaming Via RTMP?

Jan 4, 2010

Usually, flash streaming is done by capturing webcam video/audio and streaming using NetConnection and other objects to servers like FMS,Red5,Wowza etc.I haven't found any example on how to create your own stream of images and stream as a video to the server.I know it would be possible to convert the image to bytes and send via SharedObjects. Then decode on server and create a video file on the server (e.g. using ffmpeg), but I would rather do it in realtime on the client side if possible.

View 3 Replies

Flash :: Media Server - Isn't Able To Pass Metadata Of F4V File Into The Stream (RTMP)

Apr 18, 2011

Are there any way that Flash Media Server isn't able to pass metadata of F4V file into the stream (RTMP) if F4V file was encrypted with Flash Access?

View 1 Replies

Flex :: Change The Sound Volume Of A Live Stream?

Apr 20, 2010

I have something like this:

private var myVideo:Video;
public var videoDisplay:UIComponent;
...
videoDisplay.addChild(myVideo);

[Code]....

how can I change the volume of this stream, I would like to bind the volume to a slider

View 2 Replies

Media Server :: Play Live Video Stream With Flex?

Sep 23, 2010

I'm trying to get Flex Builder 3 to play a live video stream with Flash Media Server and Flash Live Media Encoder.
 
I'm able to stream pre-recrorded (vod) flvs in flex from flash media server.
I'm able to stream live video using Flash/FMS/Flas Live Media Encoder, but not with Flex.
 
This code streams pre-recorded Video on Demand flvs, but not live streams:
If I change source to "rtmp://localhost/live/livesream.flv, I get nothing.
 
<?xml version="1.0"?><!-- controlsvideodisplayVideoDisplayFMS.mxml --><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:HBox>        <mx:Label text="RTMP FMS 2.0"/>        <mx:VideoDisplay autoBandWidthDetection="false"             source="rtmp://localhost/vod/Legend.flv"/>    </mx:HBox></mx:Application>

View 3 Replies

Media Server :: Close Another Live Stream B If Opening When Stream A Is Closed?

Aug 28, 2010

close another live stream B if opening when stream A is closed? Does FMS support this kind of logic?

View 8 Replies

Media Server :: Dynamic Live Stream Don't Take The Best Stream For Bandwith

Mar 9, 2010

I build a client side application where is only a FLVPlayback2.5 component and a short AS3 script.

[Code]....

My Encoder is setup with three streams: Vid: 500 kbps - Audio: 48 kbpsVid: 800 kbps - Audio: 48 kbpsVid: 1500 kbps - Audio: 48 kbps I start the encoder and everything looks fine in the log. In my browser (Safari or Firefox) I go to my html site and the stream starts after 6-8 sec. But anytime with the lowest bitrate 548 kbps and nothing look like the stream is switching to another bitrate. I tried it with the smil playlist and the result is the same. Only the lowest bitrate is plublished.

[Code]....

View 3 Replies

Media Server :: Last Few Seconds Of Stream Cut Off When Recording A Live Stream?

Aug 27, 2010

I'm having a problem with recording a live webcam stream. The last few seconds of the stream is getting cut off.
The recording is stopped with the following piece of code:
 
vid.attachCamera(null);
vid.clear();
ns.attachCamera(null);
ns.attachAudio(null);
ns.pause();
  
What could be causing this? Is the stream cut off too soon? Is the client unable to send buffered data to the server?

View 2 Replies

Media Server :: Stream A HDS Live Multi-bit Stream?

Dec 12, 2011

I'm trying to stream a HDS live multi-bit stream, it seems to push to the FMS but my player doesn't display the stream.Are these settings and files correct? The documenation is confusing on what and which files need to be edited and/or created.

Encoder settings:
Bit Rate: 150,500,700
FMS URL: rtmp://myserver/livepkgr
Stream: liveevent%i?adbe-live-event?liveevent

FMS 4.5

I see the following directories being created when I start encoding and each directory has a single file with a .stream extension in them. Are these correct? fC:FMS-HOMEapplicationslivepkgrevents\_definst_liveevent1[code].....

View 2 Replies

Media Server :: Set The Buffer To 30 Seconds For Live Video?

Aug 16, 2010

We purchased the Adobe Flash Media Sreaming Server 3.5.

My question is, the client wants to set the buffer to 30 seconds, so if an error is encountered the live feed feed will not be interupted.

Is this set from the Adobe client that is recording the video or is this a setting on the server?

View 9 Replies

Make Live Streaming On RTMP?

Feb 15, 2010

Am using adobe media development server successfully able to make live streaming on RTMP

View 1 Replies

ActionScript 3.0 :: How To Buffer Stream When The Video Is Paused

Nov 30, 2010

I just made it clear of the differences between the progressive video and streaming video *^_^* But I do need a feature of allowing buffering the video when it's paused, which I cannot find how to do it directly... I followed an article ( url...) to manage the buffer strategy but it didn't solve my problem. My problem is: if the user has a very slow network condition, he/she might want to just pause the video manually, and wait it to be downloaded until it's 'pretty much', and he/she can watch it without interrupting. But I notice that, when I pause the video, the event "NetStream.Buffer.Flush" is triggered. And according to the language reference: "Data has finished streaming, and the remaining buffer will be emptied.", I have to re-buffer it, right? However, also according to the reference, it shouldn't stop buffering:Starting with Flash Player 9.0.115.0, Flash Player no longer clears the buffer when NetStream.pause() is called. This behavior is called "smart pause". Before Flash Player 9.0.115.0, Flash Player waited for the buffer to fill up before resuming playback, which often caused a delay. I'm using Flash Professional to do the debugging, and the traced version number is: MAC 10,0,22,91; and for the streaming server, I use red5.

View 1 Replies

ActionScript 3.0 :: Buffer Stream When The Video Is Paused?

Nov 28, 2010

just made it clear of the differences between the progressive video and streaming video *^.^*

But I do need a feature of allowing buffering the video when it's paused, which I cannot find how to do it directly...

I followed an article (I'm not able to post the url) to manage the buffer strategy but it didn't solve my problem.

My problem is: if the user has a very slow network condition, he/she might want to just pause the video manually, and wait it to be downloaded until it's 'pretty much', and he/she can watch it without interrupting.

But I notice that, when I pause the video, the event "NetStream.Buffer.Flush" is triggered. And according to the language reference: "Data has finished streaming, and the remaining buffer will be emptied.", I have to re-buffer it, right?

I really expect the "buffer when paused" functionality, is it possible to do?

p.s. I'm using red5, not fms, although I haven't touched the difference part of them.

View 3 Replies

Media Server :: Passing Buffer And Republish To Client As Live Video

May 6, 2009

I have buffer of video and want to pass it to server and then republish it to the client and display that as live video.

View 1 Replies

Java :: Best Way For Live RTMP Streaming From Dv Camcorder?

Nov 3, 2009

I herd about RED5, but unfortunately I can't find any examples for feeding it with external source. I know RTSP is in development, but I'm thinking about (named) pipes or something like this. There is is also project named xuggle that is as far as I understand ffmpeg wrapper for Java, but I herd they have also problems with live streaming.

View 5 Replies

ActionScript 3.0 :: Play MP3 Sound From Buffer (ByteArray / Stream)?

Oct 25, 2009

I have a buffer with MP3 data (If I would save this buffer and call it buffer.mp3 it would play, but in this situation I should not save it to file system). I have to play it, but I can not, what shall I do? I tried the next code to play that buffrer(ByteArrayStream) (I get MP3 data from server the method of getting data works fine (tested on text int's etc) I call the returned ByteArray readResponse because I have some seading method and It is it's response).

[Code]....

View 5 Replies

Restream RTMP Stream To FMS?

Dec 23, 2010

I have 4 different RTMP stream URLS, and I need group them on one Server, to re-stream them to mobiles. Can I do this with FMS , or I  shall to hard code it?Can I do thi with SMIL?

View 5 Replies

Flash :: Crop Live Video Stream?

Jun 1, 2011

I have a streaming video that is displayed on a web page through a flash player from an external source. This video has a huge border that I would like to crop out before displaying. How can I alter the feed in real time before showing it to the user, such that the resulting video has its border removed?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved