red5 服务端接受 rtmp 流 h.264 编码 进行保存 报错 求解决办法
@Override
public void streamPublishStart(IBroadcastStream stream) {
String streamName=stream.getPublishedName();
iapp = new Application();
iconn = Red5.getConnectionLocal();//得到当前的连接
iscope = iconn.getScope();//一组连入服务器的客户
iapp.connect(iconn,iscope,null);
System.out.println("connection Established!");
//注意 stream name ,在 flash 端也需要匹配
istream = (ClientBroadcastStream)iapp.getBroadcastStream(iscope,streamName);
System.out.println("The publisher's name is: "+stream.getPublishedName()+", created at: "+stream.getCreationTime());
System.out.println("the stream Name is: "+streamName);
try {
istream.saveAs(streamName, false);
System.out.println(istream.toString()+"__Sd");