Introduction to Android Multimedia developmentTransferred from: http://blog.csdn.net/reiliu/article/details/9060557First, multimedia architectureBased on the opencore of the third-party PacketVideo company, it supports all common audio/video/Still image formats including: MPEG4, H, MP3, AAC, AMR, JPG, PNG, GIF, etc. The function is divided into two parts, one is the audio/video playback (PlayBack), and the second is the record of the audio and video (
resolution films follow the above method and so on.
Complete the above work screen width and height is fixed, because the addition of the black Edge also easy to compress subtitles, so that subtitles will not block the screen.
Second, audio settings
As shown in Figure 5:
The audio format is selected as He-aac,iphone and can be decoded by hardware.
The encoder uses Nero
format conversion methods:Conversion Software: foobar2000 + oggenc external EncoderThere are many ways to convert the Ogg format, but the simplest method is to use the foobar2000 + oggenc external encoder. Foobar2000 is very popular nowadays. It is a WindowsApsaravideo player pro. Not only is the sound quality excellent, but also has powerful functions. Foobar2000 supports WAV, AIFF, VOC, AU, SND, and Ogg.Vorbis, MPC, MP2, MP3, and other music format
[Project 1 live broadcast]☞2. Pull live streams and broadcast ProjectsI. Introduction to video technology 1.
Video is structured data. Data is transmitted during live broadcasting, which is a small unit of video.
Video = image + audio
The original image data in the video is usually compressed in H.264 encoding format.
Audio sample data is usually compressed in AAC encoding format.
2. Real-Time Video Transmission
Video is structured data, and live
.
Cd ~ /FFMPEG-Source
Wget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
Tar xzvf lame-3.99.5.tar.gz
CD lame-3.99.5
./Configure -- disable-shared -- enable-NASM
Make
# Make install
Libogg
Required for libtheora and libvorbis.
Cd ~ /FFMPEG-Source
Wget http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar.xz
Tar jxvf libogg-1.3.0.tar.xz
CD libogg-1.3.0
./Configure -- disable-shared
Make
# Make install
Libtheora
Theora video
. Improved the lyrics download function to improve the download success rate;
2. Improved the audio playback engine to further improve performance;
3. correct the problem that the buffer size is too small during playback of the MCM format;
4. Correct the Win98 window overwrite and the disappearance of the main window;
4. correct the problem that multiple program instances may run at the same time;
5. Use the new program icon.
------------------------------------------------------
3.9.2: [2004-8-
the video cache detector VBV. It is used as the cache between the encoder and the decoder bit stream, you can set it as small as possible or reduce latency without affecting the video quality.
3. If the latency is optimized only, a large number of key frames can be inserted between video frames so that the client can decode the video stream as soon as it receives it. However, if you need to optimize the cumulative latency during transmission, try to
automatically monitored to the encoder
-strict strictness and Standard rigor
-AIC enables advanced intra-frame coding h263+
-UMV enables infinite motion vector h263+
-deinterlace does not use interleaving method
The-interlace forced interleaving method is only valid for MPEG2 and MPEG4. Use this option when your input is interlaced and you want to keep interlaced with minimal image loss. The alternative is not interwoven, but the loss is greater
-psn
Extension:. M4aCodec Type:LosslessDeveloper:Apple Inc.Supports:16 24 BIT, multi channel high frequency audioExtra Details:Stored in MPEG 4 containerStrengths:IPod support, fast decoding, versatile ID TaggingWeaknesses:Limited support outside of iPod/iTunesID Tagging:Quicktime/iTunes
Apple lossless (also known as Apple lossless audio codec, ALAC, or apple lossless encoder, ale) a type of audio compression created by
These days have been tossing in Ubuntu under the cross-compiling arm platform FFmpeg, as a standard Windows users, in the Linux toss really laborious, now the compilation process is recorded, mainly x265 compilation too toss people! The cross-compilation environment is self-configuring.
Cross-compiling aac:1. Download AAC Source
Wget-o fdk-aac.tar.gz https://github.com/mstorsjo/fdk-
This article for everyone to share the iOS live Class app development process, for your reference, the specific content as follows
One. The general process of audio and video processing:
data collection → code → transmission (streaming media server) → decoding data → playback display1. Data collection:Video and audio data are collected by the camera and pickup, which is the original data.relating to technology or agreement:Camera: CCD, CMOSPickup: acousto-Electric conversion device (microphone
-sharedYou can also choose to install the direct commandsudo apt-get install Libopus-dev9.ffmpegInstallation package Download path:http://ffmpeg.org/releases/ffmpeg-2.6.3.tar.bz2# TAR-JXVF FFMPEG-2.6.3.TAR.BZ2# CD opus-1.1#./afa_configure.shAfa_configure.sh content:#!/bin/shEcho $HOMEPath= "$PATH: $HOME/bin" pkg_config_path= "/home/afa/ffmpeg_build/lib/pkgconfig"./configure \--prefix= "$HOME/ffmpeg_build"--extra-cflags= "-i$home/ffmpeg_build/include-dredirect_debug_log"--extra-ldflags= "-l$home/
encoder is used to convert the original audio/video into a suitable stream format file. The server sends the encoded media stream to the client, and the client player decodes and plays the received media data.
1. Encoder
The encoder function is to compress and encode the input original audio and video signals. Different streaming media businesses have different
Ogg is a free and open standard container format maintained by the xiph. Org Foundation. The Ogg format is not restricted by software patents and is designed for efficient streaming media and high-quality digital multimedia processing.
Ogg refers to a file format that can be incorporated into a wide range of free and open source code codecs, including sound effects, video, text (like subtitles) and metadata processing.
Ogg theora
Theora is a premium-free and open-format lossy image compression t
Libmp3lame introduced, so, Ubuntu official repository ffmpeg is not encode MP3 (only encode MP2-MPEG 1 Audio Layer 2). Compiling the ffmpeg is simple, configure, make, and sudo make install is OK. Mainly configure, see what support to open, this time I do is:./configure--prefix=/usr--ENABLE-GPL--enable-postproc--enable-nonfree--enable-pthreads--enable-x11grab-- ENABLE-LIBAMR-NB--enable-libamr-wb--ENABLE-LIBFAAC--enable-libfaad--enable-libmp3lame--enable-libx264-- Enable-libxvid--disable-armv5te
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.