iOS video Processing

Source: Internet
Author: User

In iOS, Apple provides avfoundation to handle audio and video, basically to meet some of the commonly used audio and video processing needs, and can call the hardware codec interface, can improve a lot of efficiency, which other libraries can not achieve. These features have been integrated in the recently done Recnow SDK, such as some video length clips, video insertions, video transitions, add dubbing, add animations, and other video parameter changes, all of which can be easily implemented using Avfoundation. Please refer to the specific: https://developer.apple.com/library/ios/documentation/AudioVideo/Conceptual/AVFoundationPG/Articles/ 00_introduction.html#//apple_ref/doc/uid/tp40010188  in the video to add special effects, you have to mention the Gpuimage, the author is a bull, GitHub on the star Tens. Because the video is finally through the GPU, one frame to render to the screen, so we can use OpenGL ES, video frames for various processing, so that the video a variety of different effects, now a variety of beauty and video add special effects of the app is implemented. Gpuimage implements a number of filter functions, and the efficiency is claimed to be higher than Apple's own coreimage, but the lack of it is that the library of audio processing is basically stretched. Here's a little bit of understanding of Gpuimage: The library uses a chain-like processing pattern for the video, as if a faucet flowed out of the water, passes through several sections of the pipe, and then flows to different targets. The library defines gpuimageoutput as the source of the video output, which is an abstract parent class, specific classes like Gpuimagevideocamera,gpuimagemovie are inherited from it, this class is like water. Defines the protocol gpuimageinput, all the classes that obey this protocol, can handle the video stream. Gpuimagefilter inherits from Gpuimageoutput, and complies with the Gpuimageinput protocol, which is quite similar to a pipe, which can flow in and out. This design pattern is a good embodiment of protocol-oriented programming, rather than implementation-oriented, so designed to facilitate better extensibility, in Apple's new release of Swift, the protocol becomes extensible and more convenient for protocol-oriented programming. The processed video stream, directed to a different target, can be rendered to the screen or generated by a video file, for example: Gpuimageview. Specifically, you can try some of your own demo. GpuImagecontext managing OpenGL ES Context (this part is temporarily skipped)

iOS Video processing

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.