Skip to main content
June 9, 2007
Question

streaming video at 640x480

  • June 9, 2007
  • 1 reply
  • 291 views
Hello
I am using flash 8.0 and I want to improve video quality at receiving side.


Sending side action script code is :

sending.fla:--
var nc:NetConnection = new NetConnection();
nc.connect("rtmp:/server path/application1"); //we are using influxis server
mycam = Camera.get();
mycam.setQuality(0, 80);
mycam.setMode(320, 240, 30);
send_video.smoothing = true; //send_video is video object
send_video.attachVideo(mycam);
var out_netstream:NetStream = new NetStream(nc);
out_netstream.attachVideo(mycam);
out_netstream.publish("livevideofile", "record");

and recieving side code is :


recieving.fla:--


var nc:NetConnection = new NetConnection();
nc.connect("rtmp:/server path/application1");
var in_netstream = new NetStream(nc);
rcv_video._width=640; // rce_video is video object
rcv_video._height=480;
rcv_video.smoothing = true;
in_netstream.play("livevideofile");
rcv_video.attachVideo(in_netstream);

receiving video seems to be pixellised.
So any body has experience of streaming video at 640x480?
It’s urgent.

Thanks in advance

    This topic has been closed for replies.

    1 reply

    June 9, 2007
    The problem is that you're capturing video at 320x240, and showing it at 640x480.

    This line:

    mycam.setMode(320, 240, 30);

    Is telling the Flashplayer to capture the camera image at 30x240, 30 frames per second.

    If you change it to:

    mycam.setMode(640, 480, 30);

    Your image should clear up some. Of course, this assumes your camera supports 640x480 (most do).