The example in this article will be implemented by reading the PC webcam video data and sending it as a live stream with the RTMP protocol. Example contains the1, the use of FFmpeg libavdevice2. The basic flow of video decoding, encoding and pushinghas a strong comprehensive.To use Libavdevice related functions, you first need to register the relevant componentsAvdevice_register_all ();Next we want to list
How does Android implement call camera? In the Android APP development process, often need to call the phone's own camera to take pictures of the code, then the android call camera code is what? Now the wheat College Android Development teacher told everyone,android Call Camera This method is very simple and practical, the need for small partners can refer to the next.Scenario: During the Android development process, it is sometimes necessary to invoke the function of the phone's own device, thi
do a simplification, in advance to set the audio format to be encoded, wherein, select "AAC-LC" for audio encoding, audio sampling rate of 44100, The audiospecificconfig is then simplified to the following table:In this way, AVC sequence header and AAC sequence header content can be basically determined, more detailed information, you can go through the relevant documents.Run effectRtmpliveencoder Start RunningPlay with a Flash player that comes with a FMS+++++++++++++++++++++++++++++++++++++++
stream.Shut downand finally the release.H264 and AAC data streamsAs mentioned in this paper, rtmp push audio and video streaming package form similar to the FLV format, it can be seen, to the FMS push H264 and AAC live stream, need to first send "AVC sequence header" and "AAC sequence Header", these two data contain important coding information, without them, the decoder will not be decoded.The AVC sequence header is the Avcdecoderconfigurationrecord
http://blog.csdn.net/jiangwei0910410003/article/details/52057543First, prefaceIn the video broadcast is generally two video data sources, one is the camera data, one is recorded desktop data, and generally beautiful girls live is from the camera data, game Live is recorded desktop data, then today to see the first Data source analysis, There are many scenes of using the camera in Android, before the advent
The example in this article will be implemented by reading the PC webcam video data and sending it as a live stream with the RTMP protocol. Example contains the
1, the use of FFmpeg libavdevice
2. The basic flow of video decoding, encoding and pushing
has a strong comprehensive.
To use Libavdevice related functions, you first need to register the relevant components
Avdevice_register_all ();
Next we want
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.