Video is an important part of Multimedia Systems in computers. To meet the needs of video storage, people have set different video file formats to put the video and audio in one file for simultaneous playback. Video files are actually a container that contains different tracks. The Container formats used are related to the scalability of video files.
FourCC is the Four-Character Codes. It consists of 4 characters (4 bytes) and is a Four-byte format that uniquely identifies the video data stream,
1.2.1 Common formatsCommon audio formats are: CD format, WAVE (*. WAV), AIFF, AU, MP3, MIDI, WMA, RealAudio, VQF, Oggvorbis,AAC, APE.
CDThe audio quality of the CD format is relatively high. So to speak the audio format, CD is naturally the leading pioneer. In most playback software, the "hitOpen file Type ", you can see the *.CDA format, which is the CD track. Standard CD format is 44.1K sampling frequency, rate 88k/Seconds, the 16-bit quantization b
. audio and video file formatsFirst, we need to identify the differences between media files and encoding: files are a collection of videos, audio, scripts, and containers; the compression algorithm of the video and audio in the file is the specific encoding. * AviAudio/Video interaction storage, the most common audio/video container. The most supported video and audio encoding is supported.* MPGThe audio and video containers used by MPEG encoding have the characteristics of stream. PS is classi
Directory
List all files and specific subdirectories (if the subdirectory contains a. nomedia hidden file, it will not be listed .). The listed file is used to determine whether the file is supported based on the file extension. If this file extension is supported, the C ++ layer calls back to the Java layer to scan the file. This extension will be scanned and listed in mediafile. java. The following is a list of supported file extensions.
/* Audio */Addfiletype ("MP3", file_type_mp3, "audio/MP
request, our service will start. However, it takes a long time to scan files. Therefore, this is an asynchronous process. There is a scanner, and there are two scanning points: External Storage {Tagshow (Event)} "> Device and/root/media./* Audio */Addfiletype ("MP3", file_type_mp3, "audio/MPEG ");Addfiletype ("m4a", file_type_m4a, "audio/MP4 ");Addfiletype ("WAV", file_type_wav, "audio/X-WAV ");Addfiletype
/vnd.symbian.install. Sisx Ibid. apk,mime to Application/vnd.android.package-archiveIn addition, you can also set up: The download type WAP server--------------------------------. MMF AUDIO/MMF. MFM AUDIO/MFM. PMD AUDIO/PMD. ADP AUDIO/ADP. AMR Audio/amr. PMDAUDIO/PMD.3gp VIDEO/3GPP. cab Application/vnd.smartpohone. gif image/gif. Hme Application/vnd.smartphone.thm. jad Text/vnd.sun.j2me.app-descriptor. Jar Application/java-archive. jpg Image/jpeg. Mid
Here's a look at what the ANDRIOD Multimedia framework supports developers. 1. Mediascannerreceiver This broadcast recipient receives action_boot_completed, action_media_mounted, or Action_media_scanner_scan_ File broadcast when the image, music and video files in the SD card is scanned, because the scan does not affect the user's use, here started a service Mediascannerservice, scan the following file types:/* Audio */addfiletype ("MP 3 ", File_type_mp3," audio/mpeg ");Addfiletype ("M4A", file_
.264. Therefore, the idea of developing a player on Symbian is as follows:
1) Call the interface provided by Symbian: You can directly use the cvideoplayerutility class for video playback. The formats supported by RealPlayer are as follows. Including 3GPP streaming media playback;For audio playback, cmdaaudioplayerutility can be used for local playback, while cmdaaudiooutputstream can be used for stream playback, while mmfcodec decoding efficiency is
Development Environment: Windows 7
FFmpeg versions: 0.8
Dynamic Link Library in FFMPEG windows:
Http://url.cn/IJJwo3
For the FFMPEG version, it should be noted that many interfaces of the old version have been deprecated in the new version, and my program is in just for the FFmpeg-0.8 version.
Supported audio formats:Currently, the test program supports the conversion of AMR, WAV (codecid: gsm_ms), WAV (PC
/*** The WAV file is decoded using transcode-1.1.7 and then played using OpenSL ES**/Variables and structures usedWAV wav;//wav file PointerSLOBJECTITF Engineobject;//Engine ObjectSLENGINEITF Engineinterface;//Engine interfaceSLOBJECTITF Outputmixobject;//MixerSLOBJECTITF Audioplayerobject;//Player ObjectSLANDROIDSIMPLEBUFFERQUEUEITF ANDIOPLAYERBUFFERQUEUEITF;//B
video container format (I .e. video MPEG-2, AC3 or DTS for audio), supports multi-video, multi-track, multi-subtitle chapter, etc.
MP4
MPEG-4 coding uses the audio and video container, developed based on QuickTime mov, has many advanced features.
3GP
The 3GPP video format is mainly used for streaming media transmission.
ASF
The audio and video containers used by Windows Media can be used for stream transmission and include scripts.
Rm
The audio and v
AMR (full name is Adaptibve multi-rate) is an audio format. Mainly used for mobile device audio, compression is larger, but compared to other compression format quality is poor, because more for the voice, call, the effect is very good. At present, the AMR format appears to be more of Nokia, Sony Ericsson system of some mobile phones. The following is a small series of methods to open the AMR file.
What is the AMR file?
AMR (full name is Adaptibve multi-rate), in addition to Noki
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.