Wowza Community

Live broadcast, with AS2 and Transcoder, black screen.

Good afternoon,

I have 3 questions please help me.

1 - I use to live broadcast, a script in AS2.

But is not working in this version using the ADDON “Transcoder” the screen goes BLACK.

What should I do?

2 - There is a flash grabber for live broadcasts, the latest? Free?

3 - How to stay put authenticated this connection? Why I had to disable publish users to connect.

thank you very much

function cameraOn()
{
    mycam = Camera.get();
    mycam_audio = Microphone.get();
    //mycam.setMode(160, 120, mycam.fps);
	mycam.setMode(160, 120, mycam.fps);
    mycam.setQuality(40000, 100);
    cam_feed.attachVideo(mycam);
    cam_feed.attachAudio(mycam_audio);
    client_nc = new NetConnection();
    client_nc.connect("rtmp://xxxx/live/");
	
    cam_ns = new NetStream(client_nc);
    cam_ns.setBufferTime(0);
    cam_ns.attachVideo(mycam);
    cam_ns.attachAudio(mycam_audio);
    cam_ns.publish("teste123");
    cam_ns.onStatus = function (infoObject)
    {
		txt_situacao_conexao_envio.text = infoObject.description;
		
        if (infoObject.code == "NetStream.Play.Stop")
        {
            txt_situacao_conexao_envio.text = "Parado";
        } // end if
        if (infoObject.code == "NetStream.Publish.Start")
        {
            txt_situacao_conexao_envio.text = "OK - Conectado!";
            fundo_desc._x = -9000;
            fundo_desc._y = -9000;
        } // end if
		
            
        
    };
    in_ns = new NetStream(client_nc);
    in_ns.play("teste123");
    in_ns.setBufferTime(0);
    in_ns.onStatus = function (infoObject)
    {
    };
    live_feed.attachVideo(in_ns);
    live_feed.attachAudio(in_ns);
} // End of the function
function runOnce()
{
    if (in_ns.liveDelay < 0.500000)
    {
        tmp = "Boa";
    }
    else if (in_ns.liveDelay < 1)
    {
        tmp = "Média";
    }
    else
    {
        tmp = "Lento";
    } // end else if
    txt_delay.text = in_ns.liveDelay + "s " + tmp;
    txt_situacao_audio.text = mycam_audio.activityLevel + "%";
    if (in_ns.liveDelay == undefined)
    {
        txt_situacao_conexao_envio.text = "Parou!";
        txt_delay.text = "-";
        myDate = new Date();
        if (myDate.getSeconds() % 5 == 0)
        {
            ++desconexoes;
            txt_desconexoes.text = desconexoes;
            fundo_desc._x = 0;
            fundo_desc._y = 0;
            cameraOn();
        } // end if
    } // end if
    setTimeout(runOnce, 1000);
} // End of the function
fundo_desc._x = -9000;
fundo_desc._y = -9000;
cameraOn();
var intID = setTimeout(runOnce, 1000);
desconexoes = 0;

Hi,

Please add some detail about your live source. What do you mean by “AS2”? Also, looking in your log statements, located in [install-dir]/logs, do you see any WARN or ERROR logging reported that appear related to the Transcoder AddOn?

As to a Flash Grabber, in most cases, this is an illegal/unacceptable tool used for converting hosted streams to VOD assets. Wowza will not support this use case functionally or in practice.

Authentication can be configured using Wowza Streaming Engine Manager. More information here:

How to configure security using Wowza Streaming Engine Manager

-Tim

Hi,

I’m not sure if you can do this in AS2. You need a recent version of Flash to enable h.264 video and Speex audio to be able to use the Wowza Transcoder. Take a look at this article on using H.264 and Speex to publish with Flash

Richard

The Flash browser plugin is still the only thing that comes close to that description and can publish video. It does have to be installed of course, but is usually already installed on most desktops. The recent versions of Flash can publish h.264 video and Speex audio, as shown in that article. All you need is Flash Builder, and the user of your application needs recent version of Flash plugin. Your application can be configured to guide the user to upgrade if necessary.

Richard

Is there any free software that does the live stream? Browser, without installing any software on the client machine.