Media Rate Allocation
Total Page:16
File Type:pdf, Size:1020Kb
MEDIA RATE ALLOCATION A PROJECT REPORT Submitted by P.BALASUBRAMANIAN (32205205004) R.VIGNESWARAN (32205205302) in the partial fulfillment for the award of the degree of BACHELOR OF TECHNOLOGY In INFORMATION TECHNOLOGY DHANALAKSHMI SRINIVASAN COLLEGE OF ENGINEERING AND TECHNOLOGY: Mamallapuram ANNA UNIVERSITY: CHENNAI 600025 APRIL 2009 1 ANNA UNIVERSITY: CHENNAI 600 025 BONAFIDE CERTIFICATE Certified that this project report “MEDIA RATE ALLOCATION” is the bonafide work of “P.BALASUBRAMANIAN (32205205004), R.VIGNESWARAN (32205205302)” who carried out the project work under my supervision. SIGNATURE SIGNATURE Ms.D.Jansi Rani Ms.T.Yogeswari HEAD OF THE DEPARTMENT SUPERVISOR Department of Information Technology Department of Information Technology Dhanalakshmi Srinivasan Dhanalakshmi Srinivasan College of Engineering and Technology, College of Engineering and Technology, Mamallapuram. Mamallapuram. Submitted for the project viva voce examination held on ____________ INTERNAL EXAMINER EXTERNAL EXAMINER 2 ACKNOWLEDGEMENT We are glad to take this opportunity to cordially acknowledge a number of people who provide me with great support in these six months. First, we would like to thank Mr.A.Srinivasan, our Chairman who allowed me to do the project in the college campus. We are also thankful to Dr.R.Ponraj M.Tech Ph.D., our Principal, for his constant support in selecting the project. We wish to express my sincere gratitude to our respected Vice Principal, Mr.Pon.Arivanandham M.E, PhD., for his continued encouragement and support. We are grateful to Lecturer Ms.D.Jansi Rani M.Tech., our Head of the Department, who expressed her interest in my work and supplied me with some of her recent works. We would like to thank Lecturer Ms.T.Yogeswari B.E., for following my project with interest and for giving me constant support. Furthermore, we would like to thank all my Lectures, Lab Technicians and My Friends for their timely help in solving my project queries. 3 ABSTRACT Aim of our project is to transfer the video files in an intranet application that multiple clients can receive through single channel with effective usage of bandwidth by using Real time Transport Protocol and Java Media Framework. In our project we can send the video files in to any number of clients from one machine without any default messages. Then here we can send the video files in same machine, at this time same machine act as both sender and receiver. For our project only we need one transmitter side machine, and some receiver side machines. These machines are should be connected in an intranet connection. Then we need movie files for transmission and digital camera if using. So with the help of these items we can execute our project. This application used to transfer the video file in compressed formative (Video Broadcasting) a deployment solution for Java-technology-based applications. It is the plumbing between the computer and the network that allows the user to launch and manage applications right off the Network. It provides easy access to applications, and guarantees that users are always running the video. Which then automatically downloads, caches, and runs the given Video application. The entire process is typically completed without requiring any user interaction. 4 CHAPTER –I INTRODUCTION 5 CHAPTER – I 1.1 DEFINITION Here we are going to transmit video files between transmitter and receiver in an intranet. In the transmitter side machine, Initially user wants the ip address and port number of the target machine that is receiver side machine.The transmitter can capable of storing the movie file in the local machine in to remote machine. Then in the transmitter side machine we are using two protocols, They are Video For window(VFW) and Real Time Transport Protocol(RTP). By using the VFW we sends entire movie files into RTP.So,now all the movie files are placed in the RTP. From the RTP we are going to transmit the movie files in to the receiver side machines.RTP sends entire movie files as packet by packet.Each packet consists of eight bytes of data. Now transmitter side RTP ready for transmit entire movie files into the receiver side machine by packet by packet. In the receiver side machine also ,Initially the user wants the ip address and port number of thre transmitter side machine.So now the communication is established between the transmitter side machine and receiver side machine.Here in the receiver side machine also we are using the Video For Window and Realtime Transport Protocol.Then the receiver 6 side RTP receives entire movie files as packet by packet.So now we are having entire movie files in the receiver side RTP without any corruption. Then all the movie files are given to the VFW.Then this VFW gives entire movie files into the Java Media Framework(JMF).Java Media Framework enables audio and video files into the users .So by using this JMF the user can see the entire movie files.Here in this project we can transmit the movie files in the same machine.Here one machine act as both transmitter and receiver. 1.2 SYSTEM REQUIREMENTS: 1.2.1 HARDWARE SPECIFICATION Processor : Intel Pentium IV Processor Speed : 3.0 GHz HT RAM : 2 GB RAM Monitor : 15” SAMSUNG Color Monitor Keyboard : Keyboard with 108 Keys Mouse : Logitech Optical Printer : SAMSUNG 6100 Laser 1.2.2 SOFTWARE SPECIFICATION Operating System : Windows XP Front End : Java ,JDK 1.5 Packages : Swing,.Net,JMF Tool : Net Beans 5.5.JMF Back End : My SQL 1.3 FEASIBILITY STUDY 7 This project make use of a new and evolving protocol named RTP. RTP, the real-time transport protocol. RTP provides end-to-end network transport functions suitable for applications transmitting real-time data, such as audio, video or simulation data, over multicast or unicast network services.The packet size of RTP is 8 bytes. The data transport is augmented by a control protocol (RTCP) to allow monitoring of the data delivery in a manner scalable to large multicast networks, and to provide minimal control and identification functionality. RTP and RTCP are designed to be independent of the underlying transport and network layers. The protocol supports the use of RTP-level translators and mixers. If both audio and video media are used in a conference, they are transmitted as separate RTP sessions RTCP packets are transmitted for each medium using two different UDP port pairs and/or multicast addresses. There is no direct coupling at the RTP level between the audio and video sessions, except that a user participating in both sessions should use the same distinguished (canonical) name in the RTCP packets or both so that the sessions can be associated. One motivation for this separation is to allow some participants in the conference to receive only one medium if they choose.RTP consists of RTP payload: The data transported by RTP in a packet, for example audio samples or compressed video data. 8 Here we are done our project by using Java Media Framework and Real time Transport Protocol.The Java Media Framework API (JMF) enables audio, video and other time-based media to be added to applications and applets built on Java technology. This optional package, which can capture, playback, stream, and transcode multiple media formats. This project make use of a new and evolving protocol named RTP. RTP, the real-time transport protocol. RTP provides end-to-end network transport functions suitable for applications transmitting real-time data, such as audio, video or simulation data, over multicast or unicast network services.The packet size of RTP is 8 bytes. An one motivation for this separation is to allow some participants in the conference to receive only one medium if they choose. RTP consists of . RTP payload: The data transported by RTP in a packet, for example audio samples or compressed video data. RTP packet: A data packet consisting of the fixed RTP header, a possibly empty list of contributing sources (see below), and the payload data. Some underlying protocols may require an encapsulation of the RTP packet to be defined. Typically one packet of the underlying protocol contains a single RTP packet, but several RTP packets may be contained if permitted by the encapsulation method. 9 . RTCP packet: A control packet consisting of a fixed header part similar to that of RTP data packets, followed by structured elements that vary depending upon the RTCP packet type. Typically, multiple RTCP packets are sent together as a compound RTCP packet in a single packet of the underlying protocol; this is enabled by the length field in the fixed header of each RTCP packet. Port: The "abstraction that transport protocols use to distinguish among multiple destinations within a given host computer. TCP/IP protocols identify ports using small positive integers." The transport selectors (TSEL) used by the OSI transport layer are equivalent to ports. RTP depends upon the lower-layer protocol to provide some mechanism such as ports to multiplex the RTP and RTCP packets of a session. RTP supports two types of transmissions, a unicast method which allows for one client to connect and receive the transmission or there is a multicast method which allows multiple clients to connect to the server. Obviously the multicast allows for more flexibility with the allowance of more than a single user to get a stream, one of the advantages of the multicast method was that the destination IP address did not need to be known, you needed to supply the multicast address and then the associated port that the RTP session is supposed to run on. RTP is a protocol which essentially rides on top of a transport protocol such as UDP or TCP.