[Streaming media] Android real-time video collection/encoding/transmission/decoding/playback-Solution Research (initial)

Source: Internet
Author: User
[Streaming media] Android real-time video collection/encoding/transmission/decoding/playback-Solution Research (initial)  

Skyseraph Mar 23rd 2012

Email: zgzhaobo@gmail.com QQ: 452728574

Real-Time Video Stream collection

Solution 1: Set setpreviewcallback in Android camera shooting preview to implement the onpreviewframe interface to capture video stream data of each frame in real time

Solution 2: Use mediarecorder of Android to bind localsocket to the setoutputfile function.

Solution 3: Use the Streaming Media Server to obtain the camera video by using FFMPEG or getstreamer.

Solution 4: To be supplemented...

Compression encoding

Solution 1: Without encoding, the original yuv420sp video frame is transmitted directly through the socket.

Solution 2: JPEG: Convert the original yuv420sp video frame compression to JPEG format, and transmit

Solution 3: H.264/AVC. compress the original yuv420sp video frame to H.264 for further transmission.

Common open-source Encoder Based on h264 include JM, x264, t264, hdot264, etc.

Solution 4: mpeg4. compress the original yuv420sp video frame to MPEG4 for further transmission

Solution 5: To be supplemented...

 

Transmission

Solution 1: Socket Transmission

Solution 2: HTTP Transmission

Solution 3: RTP/RTSP Transmission

Solution 4: streaming media servers, such as live555

Solution 5: To be supplemented...

 

Decoding

Decoder corresponding to the Encoding

Video Playback

Solution 1: Use Android videoview

Solution 2: Android mediaplay

Solution 3: directly paste the frame chart through the canvas

Solution 4: To be supplemented...


Repair

Related Article

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.