This package provides a Flash tool to interface with the MediaCasterStreamManager API. This to tool is used to start and stop the publishing of non-pushed based encoder streams such as Native RTP, MPEG-TS and SHOUTcast. It provides greater control over the publishing and recording process when using these encoder technologies. This tool is designed to work with the live, live-lowlatency and liverepeater-origin stream types rather than the MediaCaster stream types (rtp-live[-*] and shoutcast[-*]). The MediaCasterStreamManager API can also be accessed using the JMX/JConsole interface to the server. The MediaCasterStreamManager interface is available in JConsole in the MBean tab in the application folder of the application you wish to control.
Same answer. I know VLC doesn’t generate RTCP packets. See which of the other two values gives you better results. Also, be sure you modify your command line to increase the key frame rate.
Change the encoder part:
from:
venc=x264,vcodec=x264
to:
venc=x264{keyint=2},vcodec=x264
This will increase the frequency at which the encoder generates key frames. It will improve stream startup time since the stream needs a key frame to start. Yes, you will most likely need to regenerate the SDP file.
Someone else reported a similar issue and it was due to the fact that Wowza Pro does not send RTCP RR packets. See if there is a way to configure Darwin so that it is not depending on these packets. At this time we do not have plans to implement RTCP RR packets.
You are probably moving or copying the file before it has completely been written. The file is done being written the the unpublish event is throw/logged. Before that the duration written to the file header is zero.
Wowza Pro does have a way if the duration is incorrect in the header to derive it by looking at the last packet in the file.
I believe that is correct. I don’t think the stream has been written after stopStream. I believe this operation is asynchronous. You will need to use the IMediaStreamActionNotify2 interface and add a listener to get notification of the onUnPublish event.
If you recording using the mediacasterstreammanager the file is not properly closed until the mediacasterstreammanager is used to stop the stream. If you grab the file before the stream is stopped then the moov atom will not be written properly.
If this is not the problem then please send me the errant file and I will have a look (charlie@wowza.com).
Please describe in detail how you are connecting to Darwin. Is it through RTSP or native RTP. Are you seeing any log statements when the stream stops. Be sure to install the most recent patch. Some of the RTSP re-streaming code has been improved (https://www.wowza.com/devbuild.html).
I need to think about this more. It is a clear need. The source code for the MediaCasterStreamManager is included in the package. So you can fashion a different solution to fit your needs. I will continue to think about how to make this a more straight forward operation.
I don’t have experience with that package yet, but I took a look at the included source, and there is a stopMediaCasterStream method that returns results to the calling client. You might be able to use that on the client.
In AS3 (untested) I think it will look something like this:
netconnection.call("stopMediaCasterStream", new Responder(mediacasterResponse));
private function mediacasterResponse(response:Object):void
{
if (response.description.indexOf("Stream stopped:")>-1)
{
trace("stream ready to move");
}
}
But for that to work you have to be sending an actual live stream named “livestream” with an encoder such as Wirecast that will push a live stream over rtmp to Wowza. Then in a player you can play a stream “mystream” and the alias system will kick in and transform mystream to livestream, if that’s useful.
With rtsp streams, where the stream name itself is a url like rtsp://ipcamera-ip:554, and you can use an alias to simplify:
mystream= rtsp://ipcamera-ip:554
In this case the rtsp url is a stream name. So “mystream” will be expanded by the alias system to the rtsp url.