Video Stream Adaptive Frame Rate Scheme
A system for a video stream adaptive frame rate comprises a video capture device for sending video samples captured from a video source and a video playback device for receiving video samples from the video capture device. The video capture device includes a playback buffer and is configured to adjust a playback of the video samples from the playback buffer when the buffer is not within a designated target range. Other systems and methods are also provided.
This application is a continuation of co-pending U.S. application Ser. No. 10/364,562 entitled “Video Stream Adaptive Frame Rate Scheme” filed Feb. 10, 2003, which is expressly incorporated in its entirety herein by reference.
TECHNICAL FIELDThe present invention is generally related to communications and, more particularly, is related to video communications.
BACKGROUND OF THE INVENTIONWhen streaming video capture and playback video sample clocks are not synchronized, playback buffers are often slowly starved or flooded with video data. This can cause the video playback to break up.
One current approach is to wait until the playback buffer has become empty or overflowed. Once this has happened, the playback is stopped and restarted at the optimal buffer level. This results in video breaking up. The Motion Picture Experts Group (MPEG) utilizes systems that encode clocking information in the stream to synchronize capture and playback clocks. However, delays may still result in erratic playback.
Thus, a heretofore-unaddressed need exists for a solution that addresses the aforementioned deficiencies and inadequacies.
SUMMARY OF THE INVENTIONThe preferred embodiments of the present invention provide systems and methods for providing a video stream adaptive frame rate system.
Briefly described, in architecture, one preferred embodiment of one system, among others, can be implemented as follows. A video stream adaptive frame rate system comprises a video capture device for sending video samples captured from a video source and a video playback device for receiving video samples from the video capture device. The video capture device includes a playback buffer and is configured to adjust a playback of the video samples from the buffer when the buffer is not within a designated target range.
The preferred embodiment of the present invention can also be viewed as providing methods for providing a video stream adaptive frame rate system. In this regard, one embodiment of such a method, among others, can be broadly summarized by the following steps: receiving a video source at a playback buffer; and adjusting a buffer level of the playback buffer when the buffer level is not within a designated target range.
Other systems, methods, features, and advantages of the present invention will be or become apparent to one with skill in the art upon examination of the following drawings and detailed description. It is intended that all such additional systems, methods, features, and advantages be included within this description, and be within the scope of the present invention.
Many aspects of the invention can be better understood with reference to the following drawings. The components in the drawings are not necessarily to scale, emphasis instead being placed upon clearly illustrating the principles of the present invention. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
Disclosed herein are systems and methods for providing a video stream adaptive frame rate system. To facilitate description of the inventive systems, an example system that can be used to implement the systems and methods for providing a video stream adaptive frame rate system is discussed with reference to the figures. Although this system is described in detail, it will be appreciated that this system is provided for purposes of illustration only and that various modifications are feasible without departing from the inventive concept.
For example, while several embodiments are described in connection with these drawings, there is no intent to limit the invention to the embodiment or embodiments disclosed herein. On the contrary, the intent is to cover all alternatives, modifications, and equivalents. Additionally, while the following description and accompanying drawing specifically describes video stream adaptive frequencies, it will be clear to one of ordinary skill in the art that the systems and methods presented herein may be extended to other video streaming applications such as voice-over Internet protocol (VoIP), video conferences, etc. After the example system has been described, an example of the operation of the system will be provided to explain the manner in which the system can be used to provide a video stream adaptive frame rate system.
Referring now in more detail to the drawings, in which like numerals indicate corresponding parts throughout the several views,
The network 104 may be any type of communications network employing any network topology, transmission medium, or network protocol. For example, such a network may be any public or private packet-switched or other data network, including the Internet, circuit-switched network, such as a public switch telecommunications network (PSTN), wireless network, or any other desired communications infrastructure and/or combination of infrastructure.
The playback destination device 106 can be a computer. The playback destination device receives the video data from the network 104 and places the video into a playback buffer (not shown). In an example, the playback buffer starts filling with video data in memory and continues to fill until the buffer reaches a certain point of fullness, at which time the playback buffer plays the video out on the display device 108.
In a preferred embodiment, the video playback device 106 is a computer that includes, inter alia, a video playback buffer 204 and output processing 206. Preferably, the video playback buffer 204 is included in memory in the video playback device 106. Of course, other system memory may also be used for the video playback buffer 204. Packetized samples 202 from the network 104 are received at the video playback buffer 204. In an example, output processing 206 provides for adjusting the play rate of the samples 205 from the video playback buffer 204 to the playback hardware 108.
In operation, the video playback buffer 204 is configured such that a buffer fill level can be established, and the buffer fill level can be adjusted to ensure the buffer 204 is not too full or too low. If the buffer 204 becomes too full, i.e., the amount of video data is above a threshold, more samples are released out of the buffer 204 at a faster rate. If the buffer 204 becomes too low, samples are released from the buffer 204 at a slower rate. In addition, the adjustments of the buffer 204 (i.e., release rate changes) are determined by how far the buffer fill level is off a preferred fill level range. The video capture buffer 201 threshold levels are not adjusted, but the video playback buffer fill level range is effectively adjusted. The video playback buffer 204 and output processing device 206 provide for video playback through the display device that has substantially undetectable changes in video display to a viewer.
Generally, in terms of hardware architecture, the video playback device 106 includes, inter alia, a processor 304 and memory 306. Input and/or output (I/O) devices 308 (or peripherals) can be communicatively coupled to a local interface 310. The local interface 310 can be, for example but not limited to, one or more buses or other wired or wireless connections, as is known in the art. The local interface 310 may have additional elements, which are omitted for simplicity, such as controllers, buffers (caches), drivers, repeaters, and receivers, to enable communications. Further, the local interface 310 may include address, control, and/or data connections to enable appropriate communications among the aforementioned components.
The processor 304 is preferably a hardware device for executing software, particularly that stored in memory 306. The processor device 304 can preferably be any custom made or commercially available processor, a central processing unit (CPU), an auxiliary processor among several processors, a semiconductor based microprocessor (in the form of a microchip or chip set), a macroprocessor, or generally any device for executing software instructions.
The memory 306 can include any one or combination of volatile memory elements (e.g., random access memory (RAM, such as DRAM, SRAM, SDRAM, etc.)) and nonvolatile memory elements (e.g., ROM, hard drive, tape, CDROM, etc.). Moreover, the memory 306 may incorporate electronic, magnetic, optical, and/or other types of storage media. Note that the memory 306 can have a distributed architecture, where various components are situated remote from one another, but can be accessed by the processor 304.
The software and/or firmware in memory 306 may include one or more separate programs, each of which comprises an ordered listing of executable instructions for implementing logical functions. In the example of
In an example, the logic 302 is configured to drive the reading rate of the buffer 204 to release samples faster or slower such that a target fill level range is maintained. The video playback buffer 204 is sized based on target sample rates and delay. For example, the video playback buffer 204 can be configured to allocate 100 samples. Thus, if a target range is about 50 samples, when the video playback buffer 204 has received and stored 50 samples from the network 104, an video card 314 begins to read samples beginning at a designated address in the video playback buffer 204. In a perfect environment, samples in the buffer, beginning at the 51st sample, continue to be placed in the video playback buffer 204 as they are received from the network 104. The video card 314 continues to read samples at the desired frame rate and the samples are played at the speaker 108 or alternatively at a playback device in the video card 314.
In a typical environment, the network 104 may begin to send samples to the video playback buffer 204 that are above or below the target sample range or goal level. In this situation, the logic 302 adjusts the playback frame rate with a goal of maintaining a target level fill range of samples in the buffer 204. In an example, a play frame rate such as 5 frames per second is established for the playback destination device 106 for an ‘n’ sample playback buffer 204 target range. When the playback buffer 204 is within the preferred target buffer range, the playback frame rate is not adjusted by the frame rate adjuster 320. If the playback buffer 204 is not within the target buffer range, the playback frame rate is adjusted by the frame rate adjuster 320. The frame rate adjuster 320 is preferably configured to determine an offset frame rate. The offset frame rate is used to increase or decrease the rate of samples read from the playback buffer 204 to return the playback buffer 204 to preferred target range. The offset frame rate is sent to the frame rate summer 318 and added to the encoded frame rate to become the play frame rate for reading samples from the playback buffer 204. Preferably, the encoded frame rate for the frame rate summer 318 typically comes from the transmitted data being received from the network 104.
The playback frame rate is adjusted based on the target fill level range of playback buffer 204. As the fill level of the playback buffer 204 increases, the playback frame rate is increased to release more samples from the playback buffer 204 to bring the playback buffer 204 down to the target range. When the playback buffer level decreased, the playback frame rate is decreased to bring the playback buffer up to target range. The logic 302 attempts to keep ‘n’ number of milliseconds video samples in the video playback buffer by varying the playback frame rate. The logic 302 ultimately locks on to the source capture frame rate. The maximum playback frame rate deviation can be limited to prevent perceptible distortion in the video display.
The adaptive frame rate algorithm logic 302 is preferably a source program, executable program (object code), script, or any other entity comprising a set of instructions to be performed. When logic 302 is implemented as a source program, then the program needs to be translated via a compiler, assembler, interpreter, or the like, which may or may not be included within the memory 306, so as to operate properly in connection with the O/S 312. Furthermore, logic 302 can be written as (a) an object oriented programming language, which has classes of data and methods, or (b) a procedure programming language, which has routines, subroutines, and/or functions, for example but not limited to, C, C++, Pascal, Basic, Fortran, Cobol, Perl, Java, and Ada.
The I/O devices 308 may preferably include input devices, for example but not limited to, a keyboard, mouse, scanner, microphone, etc. Furthermore, the I/O devices 308 may also include output devices, for example but not limited to, a printer, display, etc. Finally, the I/O devices 308 may further include devices that communicate both inputs and outputs to the network 104 and display device 108, for instance but not limited to, a modulator/demodulator (modem; for accessing another device, system, or network), a radio frequency (RF) or other transceiver, a telephonic interface, a bridge, a router, etc.
When the logic 302 is implemented in software, it should be noted that the logic 302 could preferably be stored on any computer-readable medium for use by or in connection with any computer-related system or method. The logic 302 can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. In the context of this document, a “computer-readable medium” can be any means that can store, communicate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. The computer-readable medium can be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or storage medium. More specific examples (a nonexhaustive list) of the computer-readable medium would include the following: a portable computer diskette (magnetic), a random access memory (RAM) (electronic), a read-only memory (ROM) (electronic), an erasable programmable read-only memory (EPROM, EEPROM, or Flash memory) (electronic), and a portable compact disc read-only memory (CDROM) (optical). If implemented in hardware, as in an alternative embodiment, the logic 302 can be implemented with any or a combination of the following technologies, which are all well known in the art: a discrete logic circuit(s) having logic gates for implementing logic functions upon data signals, an application specific integrated circuit (ASIC) having appropriate combinational logic gates, a programmable gate array(s) (PGA), a field programmable gate array (FPGA), etc.
In operation, a video capture sample clock 316 of the video capture device 102 and video playback sample clock 315 of the video playback device 106 are effectively synchronized to provide continuous uninterrupted video. The video playback buffer 204 level is monitored and used to dynamically adjust the video playback frame rate. The playback frame rate is constantly adjusted utilizing logic 302 to maintain the preferred number of samples in the video playback buffer 204, and thus lock on the frame rate of the remote video capture source 102. In addition to stabilizing a video stream by matching it to a particular source capture frame rate, minor delays in the network can be compensated. Thus, video interruptions are minimized or prevented. The enhanced stability allows for smaller video capture buffers 201 so transmission buffering delays are minimized.
The frame rate offset can be increased or decreased in increments. The frame rate can be adjusted as desired however, adjustments should be made such that a user does not notice a perceptible degradation in video display. In an example, when the frame rate deviates about −8%, the buffer level is close to zero, and thus video is paused or lost. In an example, when the frame rate deviates about +8% range the buffer level is close to 100% and thus video play is skipped.
At 614, the samples are loaded into a playback buffer. In a preferred embodiment, the playback buffer resides at the video playback device. At 616, a determination is made as to whether the playback buffer is at a target fill level range. If yes, at 618, the video samples are played at display device, such as a display device. At 619, a determination is made as to whether there are more video samples remaining in the buffer. If no, the process ends at 620. If yes, the process continues at 616.
Referring to
If the playback buffer level range is not too high, i.e., the level is too low, at 626, a correction is performed to bring the buffer level up. In an example, a correction encompasses playing the video at a slower rate such that over time, fewer samples are released from the buffer and the buffer level is increased. Once the buffer level is at or near the target level range, the video samples are displayed at 618. At 619, a determination is made as to whether there are more video samples remaining in the buffer. If no, the process ends at 620. If yes, the process continues at 616 of
Any process descriptions or blocks in flow charts should be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps in the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The present invention provides for a playback device that can play video without encoded clocking information. The invention also provides for a playback frame rate that is constantly synchronized with a source frame rate. In addition, the invention provides for playback delays that can be short and consistent without video breakup.
This invention provides for an adaptive algorithm to vary the playback frame rate and maintain a particular buffer level to lock on a remote video capture frame rate. With this invention, no frame rate encoding information need be sent.
It should be emphasized that the above-described embodiments of the present invention, particularly, any “preferred” embodiments, are merely possible examples of implementations, merely set forth for a clear understanding of the principles of the invention. Many variations and modifications may be made to the above-described embodiment(s) of the invention without departing substantially from the spirit and principles of the invention. All such modifications and variations are intended to be included herein within the scope of this disclosure and the present invention and protected by the following claims.
Claims
1. A method for adjusting the playback of a video stream, comprising:
- receiving a video source at a playback buffer; and
- adjusting a buffer level of the playback buffer when the buffer level is not within a designated target level range.
Type: Application
Filed: Oct 23, 2009
Publication Date: Feb 18, 2010
Inventors: Larry G. Kent, JR. (Loganville, GA), W. Todd Daniell (Marietta, GA), Joel A. Davis (Marietta, GA), Brian K. Daigle (Marietta, GA)
Application Number: 12/604,677
International Classification: H04N 5/91 (20060101);