The Application Development of Embedded Streaming Media System Based on DaVinci Technologies
- Author
- ChenChengLian
- Advisor
- ChiXueFen
- School
- Jilin University
- Major
- Communication and Information System
- Classification
- TN919.8 Image communication, multimedia communication
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 272
- Citations
- 5
Abstract
Today, the streaming media systems in the market mainly serve for large-scale corporations or government departments. This kind of streaming media system usally has very high performance and is very expensive which need high-class hardware equipments and professional persons for the device’s maintenance. It is fit for applying in the eviroment with a large number of streaming media users. The low-end users including small enterprises and individuals has less money and the streaming media system for those users usually provide services for a limited number of users, They have a higher demand on the mobility and portability.To meet the low-end users’special needs for the the meida system, we designed and developed a standard streaming media system which costs very little and has a small size. We can easily install and maintain it. This system consists of the streaming media server and the client. The streaming media server is implemented on the DVEVM supplied by the wintch company which is based on the DaVinci technology. The client runs on the Windows operationg system and is developed on the PC platform.The streaming media server is the core of the system.It makes full use of the advantages of DaVinci technology in the multimedia applications field. The TMS320DM6446 processor based on DaVinci technology integrates the ARM926EJ-S core and DSP C64x + TM core. The ARM core can run commen control programs and the DSP core can process digital signals with a high speed, so the TMS320DM6446 processor is very suitable for the construction of multimedia applications.The efficient integration of the ARM core and the DSP core is the core issue of DaVinci technologies. We analyze the issue from two points of view of hardware and software. In the level of hardware, The ARM core exchange data through the shared DDR2 memory with the DSP core and they use interrupts to communicate with each other. As for the level of software, the integration of dual-core uses the concept of RPC (Remote Procedure Call). DSP is configured as a Codec Server and the ARM client can call the remote algorithm running on the side of DSP with the help of Codec Engine.The system uses the RTSP protocol to control the process of palying a streaming media and use the SDP protocol to describe the media information. The operation of initiation, control and termination for streaming media is implemented by RTSP. We use RTP protocol to transport streaming media data and the packet loss rate, delay jitter and relative statistical information are computed from the RTCP packets. The digital compression is one of the key technologies for developing the streaming system. We choose H.264 algorithm for viedo compression and G.729 algrithm for speech compression. H.264 compression algorithm not only has the high compression rate but also improve the performance of resistance to error bits. How to play audio and video stream synchronously is the last step in the process of developing a stream system. In this paper, we use the DirectShow technology to achieve the aim.Demand analysis is one step which can’t be ommited when we develop a system. This system supports three types of streaming media applications: video on demand, video broadcast and live broadcast. The VOD service can provide the interactive operation such as playing, pausing, seeking and so on. The user can control the process of playing a multimedia file. In the video broadcast and live broadcast applications, the users receive streaming media data passively. The difference between the two is that the data source in the video broadcast come from media files stored in the media server and it is real-time data captured from the input devices in the live broadcast. It is worth mentioning in particular that this system can support data transmission with the interleaved mode so the users behind NAT or firewalls can use the system’s service.This system can be abstracted into the network layer, data processing layer, signaling control layer and user interface layer. We use loosely coupled manner between all levels to design the system. After analyzing the function features of the streaming system, we give the solution design of the streaming media system. The streaming media server’s development is based on the LScube project of the open source community and the streaming media client’s development is based on MFC and DirectShow.In this paper, the development of streaming media system is decompounded into the following five parts: RTSP signaling module, parsing media files module, real-time data processing module, RTP network sending module and DirectShow playback module. These modules coordinate with each other to complete the whole function of the system.RTSP signaling module is responsible for the handling of RTSP signaling messages. The streaming media client firstly sends OPTIONS request to the server to query the server’s ability and then send the DESCRIBE message to get the description information of streaming media resources.The client can send SETUP request to establish the streaming session after receiving the SDP description. The client uses the PLAY, PAUSE method to start or stop transmission of data streams after successful establishment of the streaming session and uses the REDIRECT method to redirect the location of the media resource. Teardowning a streaming media session is completed by sending the TEARDOWN method.In the service of VOD, the streaming media server needs to parse multimedia files with a variety of formats and read the audio and video stream from the multimedia files to send to the RTP sending thread. We use the API interfaces provided by ffmpeg project to parse meida files. Beacause parsing media files and sending audio and video data is implemented in two asynchronous threads, the thread parsing media files and RTP sending thread need for synchronization. The streaming system uses event messages to achieve synchronization of two threads mentioned above.In the service of live broadcasting, the streaming media server needs to caputure real-time audio and video frame which is implemented using Linux driver programs in real-time data processing module. The system uses a memory mapped to the user space from the Linux kernel space in order to transport data without operation of copying. We use the VISA API supplied by the Codec Engine engine to compress the real-time audio and video data. This system uses the H.264 and G.729 algorithm which has been packaged into Codec Server running in the DSP side. These algorithm listed above is supplied by the DVEVM development kit.The RTP network sending module located in the streaming server send the streaming media data over the network and the client needs to build an appropriate DirectShow Filter Graphic to receive, decode and playback the streaming data. The RTP source of the DirectShow chain receives RTP packets from the network and push to the next decoding Filter to decoding the compressed data. The decoded data is finally sent to the video card or sound card for playback by the Rnder Filter. We use a dual-buffer queue in the streaming media client which can cache some data in order to ensure the continuity of playing streaming media, but can also smooth the delay jitter of different packet and improve the playback quality.To sum up, the paper designs and develops a embedded streaming media system based on DaVinci technology. The streaming system makes full use of the advantage of the DaVinci and streaming media technology which is suitable for useness in the environment with little users.
Table of contents
Summary 4-8
Chapter 1 Introduction 8-12
1.1 Introduction 8-9
1.1.1 research background 8-9
1.1.2 research significance 9
120 research status 9-11
1.3 In this paper, the content and structure arrangements 11-12
Chapter 2
the DaVinci embedded development platform 12-22
2.1 Embedded System Overview 12-14
2.1.1 Embedded systems constitute 12-13
2.1.2 Linux embedded operating system 13-14
2.1.3 build DaVinci development environment 14
2.2 DaVinci hardware development platform 14-17
the composition of the
2.2.1 DaVinci technology module 14-15
2.2.2 TMS320DM6446 processor 15
2.2.3 DVEVM resource description 15-17
2.3 DaVinci software development platform 17-18
2.3.1 DaVinci software framework 17-18
2.3.2 DVEVM system startup process 18
2.4 ARM nuclear and DSP core system integration 18-22
2.4.1 ARM nuclear integrated with the DSP core hardware 19-20
2.4.2 ARM nuclear and DSP core software integration 20-22
Chapter 3, streaming media development of key technologies 22-31
3.1 RTSP protocol 22-25
3.1.1 RTSP protocol Overview 22
3.1.2 RTSP protocol defines the method 22-24
3.1.3 RTSP protocol message structure 24
3.1.4 Session Description Protocol SDP 24-25
3.2 RTP / RTCP protocol 25-26
3.2.1 RTP packet structure 25
3.2.2 RTCP protocol 25-26
3.2.3 RTP and RTSP interaction 26
3.3 digital compression coding technology 26-28
3.3.1 video compression coding 26-27
3.3.2 audio compression coding 27-28
3.4 DirectShow technology 28-30
3.4.1 DirectShow system structure 28-29
3.4.2 DirectShow component modules 29-30
3.5 MFC and COM 30-31
Chapter 4 streaming system analysis and design 31-40
4.1 development platform of choice 31-32
4.1.1 server-side development platform 31-32
4.1.2 client development platform 32
4.2 system function analysis 32-34
4.2.1 server-side functionality analysis 33
4.2.2 client function analysis 33-34
4.3 system design 34-39
4.3.1 system, the overall structure of 34-36
4.3.2 server-side solution 36-38
4.3.3 client solutions 38-39
4.4 Summary 39-40
Chapter 5 Streaming Media System Based 40-63
5.1 RTSP signaling module 40-44
5.1.1 RTSP signaling interaction 40-42
5.1.2 RTSP signaling module to achieve 42-44
5.2 media file parsing module 44-46
5.2.1 media file parsing process 44-45
5.2.2 asynchronous event handling 45-46
5.3 real-time data processing module 46-51
5.3.1 audio and video system hardware design 46-47
5.3.2 Real-time data acquisition 47-50
5.3.3 Real-time data compression 50-51
5.4 RTP sent over the network module 51-57
5.4.1 RTP sent over the network to achieve 51-53
5.4.2 RTP / RTCP parameters calculated 53-56
5.4.3 Congestion Control Strategy 56-57
5.5 DirectShow playback module 57-61
5.5.1 RTP source Filter development 57-58
5.5.2 build DirectShow player link 58-60
5.5.3 receive buffer design 60-61
5.6 system, the results of testing 61-63
Chapter 6 Summary and outlook 63-65
6.1 summarizes 63-64
future work
6.2 Outlook 64-65
References 65-69
thank 69-70
tutor and author 70-71
Summary 71-73
ABSTRACT 73-75
Related dissertations
- The Research and Implementation of Video Surveillance System Based on RED5
- An Applied Research About RTSP Protocol Based on IPTV System
- Design and Implementation of Streaming Media System on Smart Phone
- Design and Implementation of Embedded Streaming Media Players Based on the MPEG-4
- Design and Implementation of Streaming Media Proxy System
- Design and Implementation of MPEG-4 Streaming Playing
- Research on streaming media transmission protocol
- Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
- The Study of Remote Video Monitor System Baced on ARM
- Design and Implementation of Intelligent Video Surveillance System Based on Embedded Linux
- Video Surveillance System Based on Embedded Technology Research
- Research and Implementation of Intelligent Video Surveillance System Based on Android
- Design of Video Monitoring System Based on the Embedded
- The Design of Embedded Network Video Surveillance System Based on ARM9
- Research and implementation of remote monitor system of ship based on the technology of the Internet of things
- Design of Video Surveillance Software Based on Ti Dm6446Processor
- The Designation and Implementation of Hotspot Information Distribution System of Network Video Monitoring
- Data Acquisition System of Cavern Based on Embedded Web Server
- Design of Security Surveillance System Based on Intelligent Video Analysis
- Research and Realization of Embedded Data Acquisition and Recording System for Industrial Process Based on ARM