以灰度记录实时流

时间:2015-07-24 11:09:21

标签: actionscript-3 flash flash-cs5 red5 red5-recorder

我开发了用于录制直播视频流的Red 5 flex应用程序。现在我想将相同的流记录为灰度。

这是动作脚本中的代码:

ns= new NetStream(nc);
ns.videoStreamSettings = h264Settings;
ns.publish(stream_id,"record");
ns.attachAudio(mic);
ns.attachCamera(cam);

代码Red5服务器:

public void recordShow() {
        IConnection conn = Red5.getConnectionLocal();
        logger.debug("Recording show for: {}", conn.getScope().getContextPath());
        String streamName = String.valueOf(System.currentTimeMillis());
        // Get a reference to the current broadcast stream.
        IBroadcastStream stream = app.getBroadcastStream(conn.getScope(), "hostStream");
        try {
            // Save the stream to disk.
            stream.saveAs(streamName, false);
        } catch (Exception e) {
            logger.error("Error while saving stream: {}", streamName);
        }
    }

我尝试使用过滤器,它显示灰度但不记录灰度。如何在灰度转换实时流,并以灰度记录。

0 个答案:

没有答案