How to set up the FMS release video stream H.

Source: Internet
Author: User

FMS is a long-standing topic, and the coding format is long-standing. FMS is not called FMS, change called AMS. Because it's adobe.

Today, I would like to talk about Flash publishing streaming video, with the problem of coding in H. Looking online, a lot of code about AS3 's H. The API is just a few. But when you really do, use the streaming media to publish and play, you will find that the results are not as beautiful as imagined. You may encounter the following issues.
1. The video on the publishing side is not clear.
2. The video is clear at the end of the release, and the video received by the client is not clear.
The video coding is highly respected and the high-definition hat was put on early. Why is that so? Here's a little bit of detail to talk about.
1. Not only the setting of the block, you have to set it up well. The camera has to be set up as well. If you just set up the H-coded here, but miss the set camera, you'll have a problem with the top.
2. If you only set the camera's SetMode, then the video on your release will be clear. If the setquality is also set. Then both the release and the viewing end will have a better effect.
3. You encode this side of the video resolution, the frame rate is set to high, and the camera is set up here. Then your video effect is in the leverage. However, the result of this time is a large amount of bytes, the bandwidth is very large. I set the resolution to 640*480 and the frame frequency to 30. The upstream bandwidth reaches more than 400 k/s. Video capture source If you shake it, it will be more powerful. Therefore, the resolution and frame rate can be reduced appropriately as needed. Even if you lower the resolution, you can zoom in on the vedio.

Then finally, post code:

_nsvideo =NewNetStream (CONTROLLER.INSTANCE.FMSER.NC); _nsvideo.client= This; _nsvideo.buffertime=0; varH264settings:h264videostreamsettings =Newh264videostreamsettings ();            H264settings.setprofilelevel (H264profile.baseline, H264level.level_5_1); H264settings.setmode ( the, -, the); H264settings.setquality (0, the); H264settings.setkeyframeinterval ( the); _nsvideo.videostreamsettings=h264settings; _cam=Camera.getcamera (); if(_cam) {_cam.setmode ( the, -, the,false); _cam.setquality (0, the);            _nsvideo.attachcamera (_cam); }

How to set up the FMS release video stream H.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.