Backfill of video stream

Kirkby , et al. January 24, 2

Patent Grant 9553910

U.S. patent number 9,553,910 [Application Number 14/948,355] was granted by the patent office on 2017-01-24 for backfill of video stream. This patent grant is currently assigned to GOOGLE INC.. The grantee listed for this patent is GOOGLE INC.. Invention is credited to Gregory R. Duffy, Ronald Loren Kirkby, Gregory Rourk Nelson.


United States Patent 9,553,910
Kirkby ,   et al. January 24, 2017

Backfill of video stream

Abstract

A data streaming method is performed at a computing device having one or more processors and memory. The memory stores one or more programs configured for execution by the one or more processors. The process records video from a camera in real-time. The recorded video is stored in the memory in a circular buffer in chronological order. The process sends data in chronological order from the circular buffer to a destination in real-time. In response to detecting that a portion of content from the circular buffer needs to be resent, the process concurrently resends to the destination in reverse chronological order data from the portion of content from the circular buffer.


Inventors: Kirkby; Ronald Loren (Burlingame, CA), Nelson; Gregory Rourk (San Francisco, CA), Duffy; Gregory R. (San Francisco, CA)
Applicant:
Name City State Country Type

GOOGLE INC.

Mountain View

CA

US
Assignee: GOOGLE INC. (Mountain View, CA)
Family ID: 54543018
Appl. No.: 14/948,355
Filed: November 22, 2015

Prior Publication Data

Document Identifier Publication Date
US 20160080450 A1 Mar 17, 2016

Related U.S. Patent Documents

Application Number Filing Date Patent Number Issue Date
13733789 Jan 3, 2013 9197686
61583997 Jan 6, 2012

Current U.S. Class: 1/1
Current CPC Class: H04L 65/607 (20130101); H04L 65/4015 (20130101); H04L 65/60 (20130101); H04L 65/4069 (20130101); H04L 65/608 (20130101); H04L 47/30 (20130101); H04L 47/193 (20130101); H04L 65/602 (20130101); H04L 1/1877 (20130101); H04L 65/80 (20130101); H04L 47/2433 (20130101); H04W 4/80 (20180201)
Current International Class: H04L 29/06 (20060101); H04L 12/801 (20130101); H04L 12/851 (20130101); H04L 12/835 (20130101); H04W 4/00 (20090101)

References Cited [Referenced By]

U.S. Patent Documents
2997935 August 1961 Scheffold
3782260 January 1974 Ettischer et al.
D349914 August 1994 Usui
D357267 April 1995 Yotsuya
D372490 August 1996 Sheffield et al.
D385571 October 1997 Abrams
5862428 January 1999 An
5963253 October 1999 Dwyer
5978028 November 1999 Yamane
D429269 August 2000 Renkis
D429743 August 2000 Renkis
6147701 November 2000 Tamura et al.
D445123 July 2001 Shen
6268882 July 2001 Elberbaum
D446534 August 2001 Zimmer
D447758 September 2001 Lin et al.
D449630 October 2001 Rak et al.
D452259 December 2001 Choi
6357936 March 2002 Elberbaum
D455164 April 2002 Tsang et al.
6462781 October 2002 Arnold
D467952 December 2002 Nakamura
D469775 February 2003 Bradley
D470874 February 2003 Chiu
6515275 February 2003 Hunter
6634804 October 2003 Toste et al.
6650694 November 2003 Brown
6678001 January 2004 Elberbaum
6727954 April 2004 Okada et al.
D489388 May 2004 Saito et al.
6762790 July 2004 Matko et al.
D511352 November 2005 Oliver et al.
7066664 June 2006 Sitoh et al.
D527755 September 2006 Wu
D534938 January 2007 Beasley et al.
D537097 February 2007 Freeman
D542320 May 2007 Cheng
D552649 October 2007 Logan et al.
D552659 October 2007 Stephens et al.
D555692 November 2007 Liu et al.
7290740 November 2007 Joy et al.
D558250 December 2007 Hsia
D563446 March 2008 Stephens et al.
D575316 August 2008 Liu et al.
7552340 June 2009 Ooi et al.
7586537 September 2009 Konishi et al.
D606105 December 2009 Hinkel
7646425 January 2010 Bohaker et al.
D610601 February 2010 Melder
D614223 April 2010 Kim et al.
D627815 November 2010 Oba
7930369 April 2011 Marriott et al.
D638461 May 2011 Kim et al.
7986369 July 2011 Burns
D651229 December 2011 Tan et al.
D651230 December 2011 Tan et al.
8072536 December 2011 Campbell
D651633 January 2012 Park et al.
8139122 March 2012 Rolston
D657410 April 2012 Helaoui et al.
8165146 April 2012 Melick et al.
8174972 May 2012 Cernius et al.
D678929 March 2013 Hancock
8402145 March 2013 Holden et al.
8504707 August 2013 Toebes et al.
D694305 November 2013 Katori et al.
D697119 January 2014 Park et al.
8625024 January 2014 Hsu
D719205 December 2014 Matsumoto
D729296 May 2015 Shelton
D730422 May 2015 Kim et al.
D733781 July 2015 Chen
D734801 July 2015 Yang
9102055 August 2015 Konolige et al.
D740871 October 2015 Moon et al.
D742954 November 2015 Simonelli et al.
D743465 November 2015 Aglassinger et al.
D745916 December 2015 Oh
D746350 December 2015 Li
D748709 February 2016 Jeong
D755880 May 2016 Luo et al.
9330307 May 2016 Litvak et al.
2002/0107591 August 2002 Gabai et al.
2002/0141418 October 2002 Ben-Dor et al.
2002/0186317 December 2002 Kayanuma
2002/0191082 December 2002 Fujino et al.
2003/0169354 September 2003 Aotsuka
2003/0193409 October 2003 Crank
2004/0132489 July 2004 Ryley et al.
2004/0211868 October 2004 Holmes et al.
2004/0247203 December 2004 Dell'Eva
2005/0062720 March 2005 Rotzoll et al.
2005/0128336 June 2005 Toledano et al.
2005/0149213 July 2005 Guzak et al.
2005/0151042 July 2005 Watson
2005/0200751 September 2005 Weaver
2005/0212958 September 2005 Su et al.
2005/0227217 October 2005 Wilson
2005/0230583 October 2005 Wu
2005/0237425 October 2005 Lee et al.
2005/0243199 November 2005 Bohaker et al.
2005/0275723 December 2005 Sablak et al.
2006/0086871 April 2006 Joseph et al.
2006/0109375 May 2006 Ho et al.
2006/0109613 May 2006 Chen
2006/0123166 June 2006 Toebes et al.
2006/0210259 September 2006 Matsumoto
2006/0262194 November 2006 Swain
2006/0282866 December 2006 Kuo
2007/0001087 January 2007 Shyu et al.
2007/0011375 January 2007 Kumar
2007/0036539 February 2007 Martinez et al.
2007/0083791 April 2007 Panesar
2007/0222888 September 2007 Xiao et al.
2008/0005432 January 2008 Kagawa
2008/0151052 June 2008 Erel et al.
2008/0186150 August 2008 Kao
2008/0189352 August 2008 Mitchell
2008/0291260 November 2008 Dignan et al.
2008/0309765 December 2008 Dayan et al.
2009/0019187 January 2009 Okuma
2009/0027570 January 2009 Fujinawa
2009/0102715 April 2009 Lou
2009/0141918 June 2009 Chris et al.
2009/0141939 June 2009 Chambers et al.
2009/0195655 August 2009 Pandey
2009/0245268 October 2009 Pugliese, IV
2009/0248918 October 2009 Diab et al.
2009/0289921 November 2009 Mickelson
2009/0296735 December 2009 Cernius et al.
2009/0309969 December 2009 Wendler
2010/0026811 February 2010 Palmer
2010/0076600 March 2010 Cross et al.
2010/0109878 May 2010 Desrosiers
2010/0180012 July 2010 Heo
2010/0199157 August 2010 Takaoka
2010/0271503 October 2010 Safaee-Rad et al.
2010/0306399 December 2010 Khosravi et al.
2010/0314508 December 2010 Bevirt et al.
2010/0328475 December 2010 Thomas et al.
2011/0007159 January 2011 Camp et al.
2011/0102438 May 2011 Mathe et al.
2011/0102588 May 2011 Trundle et al.
2011/0134313 June 2011 Kato
2011/0161076 June 2011 Davis et al.
2011/0193964 August 2011 McLeod
2011/0193967 August 2011 Matsumoto et al.
2011/0205965 August 2011 Sprigg et al.
2011/0234803 September 2011 Nakajima et al.
2011/0267492 November 2011 Prentice et al.
2011/0285813 November 2011 Girdzijauskas et al.
2011/0293137 December 2011 Gurman et al.
2011/0299728 December 2011 Markovic et al.
2012/0105632 May 2012 Renkis
2012/0127270 May 2012 Zhang et al.
2012/0140068 June 2012 Monroe et al.
2012/0162416 June 2012 Su et al.
2012/0194650 August 2012 Izadi et al.
2012/0246359 September 2012 Scragg et al.
2012/0262575 October 2012 Champagne et al.
2013/0053657 February 2013 Ziarno et al.
2013/0156260 June 2013 Craig
2013/0162629 June 2013 Huang et al.
2013/0314544 November 2013 Ban
2013/0321564 December 2013 Smith et al.
2013/0342653 December 2013 McCloskey
2014/0032796 January 2014 Krause
2014/0047143 February 2014 Bateman et al.
2014/0049609 February 2014 Wilson
2014/0119604 May 2014 Mai et al.
2014/0168421 June 2014 Xu et al.
2014/0270387 September 2014 Hoof et al.
2014/0333726 November 2014 Tokui et al.
2014/0375635 December 2014 Johnson et al.
2015/0052029 February 2015 Wu et al.
2015/0120389 April 2015 Zhang et al.
2015/0154467 June 2015 Feng et al.
2015/0170371 June 2015 Muninder et al.
2015/0181198 June 2015 Baele et al.
2015/0228114 August 2015 Shapira et al.
2016/0012588 January 2016 Taguchi et al.
2016/0022181 January 2016 Valsan et al.
2016/0094829 March 2016 Georgiev et al.

Other References

0308 Brand USB 2.0 HD Night Vision Webcam Web Cam Camera Webcamera With Microphone Sucker Stand for PC Computer Laptop Notebook, Dec. 18, 2015, 13 pgs. cited by applicant .
720p TF Card IP Wireless Camera Indoor Built-In Microphone Support Two Way Intercom for Smart Home Life and Unique PIR Alarm, Dec. 18, 2015, 3 pgs. cited by applicant .
Buy Svb Ladybird Tripod Webcam 4 Mega Pixel--4 Megapixel Web Cam Online, Best Prices in India: Rediff Shopping, Dec. 16, 2015, 3 pgs. cited by applicant .
Drivers--Video Cam: Download Drivers for (Genius VideoCAM NB) Visual/Video Camera, Computer Question Help, Jul. 3, 2008, 2 pgs. cited by applicant .
Ebay, Belkin F7D7601AU, Net Cam IP WIFI Baby Pet Monitor Camera Security Night Vision, Dec. 15, 2015, 5 pgs. cited by applicant .
Ebay, Lot of 2 USB WebCam Web Cam Camera Logitech Quickcam HP Hewlett Packard, Dec. 16, 2015, 3 pgs. cited by applicant .
Ebay, Motorola, MBP421 Digital Video & Sound Rechargeable Baby Monitor 1.8'' LCD Screen, Dec. 15, 2015, 5 pgs. cited by applicant .
Ebay, New Smallest Mini Camera Camcorder Video Recorder DVR Spy Hidden Pinhole Web Cam, Dec. 2, 2015, 4 pgs. cited by applicant .
Goods in Stock PC Camera USB Plug and Play Free Driver Digital Webcam Stand Web Camera, Dec. 18, 2015, 12 pgs. cited by applicant .
Input Devices on Pintrest, Computers, Mice and Apples, Tanna Darty, Dec. 15, 2015, 1 pg. cited by applicant .
Ion Camera, The Home Pro Wi-Fi Wireless Cloud Video Monitoring Security Camera (Black): Camera & Photo, Dec. 15, 2015, 6 pgs. cited by applicant .
Joel Johnson, Glowdoodle Turns Your Crappy Webcam in a Crappier Webcam (in a good way), webcam--Boing Boing, Dec. 16, 2015, 8 pgs. cited by applicant .
John Lewis, Samsung SEB-1019RW Add-On Night Vision Baby Monitor Camera, Dec. 15, 2015, 2 pgs. cited by applicant .
Kyo-Tux, IconArchive, Device WebCam Icon, Phuzion Iconset, Jun. 8, 2010, 3 pgs. cited by applicant .
Linksys Wireless-N Internet Home Monitoring Camera: Home Security Systems: Camera & Photo, Amazon.com, Dec. 15, 2015, 7 pgs. cited by applicant .
Logi Circle: Portable Home Surveillance Camera from Logitech (video), AppleApple.Top World News, Feb. 10, 2015, 5 pgs. cited by applicant .
Mini Universal Tripod Stand for Digital Camera and Webcam A33-in Tripods from Consumer Electronics on Aliexpress.com, Alibaba Group, Store: Angel One-Stop Shopping Center, Dec. 16, 2015, 3 pgs. cited by applicant .
Restore.Solutions, Numus Software, USB/VID, Syntek Web Cam Device Drivers, Dec. 12, 2015, 10 pgs. cited by applicant .
Siv Al-Ball Very Small Hidden IP Network Camera Battery Powered Wireless IP Camera, Alibaba.com, 1999-2015, 7 pgs. cited by applicant .
TechAllianz, How to Pick the Right Webcam, Satyakam, Jan. 22, 2013, 4 pgs. cited by applicant .
Trek Ai-Ball Mini WiFi Spy Cam IP Wireless Camera for Iphone / Android /Ipad, Tmart, www.tmart.com, Dec. 18, 2015, 6 pgs. cited by applicant .
Tripod Support for a QuickCam (or other webcam), Instructables, 2015, 3 pgs. cited by applicant .
Web Camera 6 Stock Photo, Dreamstime, Dec. 16, 2015, 2 pgs. cited by applicant .
FabulaTech, What is USB for Remote Desktop, Dec. 12, 2011, 2 pgs, http://web.archive.org/web/20111212070644/http://www.usb-over-network.com- /usb-for-remote-desktop.html. cited by applicant .
FabulaTech, What is USB over Network, Dec. 17, 2011, 2 pgs, http://web.archive.org/web/20111217080253/http://www.usb-over-network.com- /usb-over-network.html. cited by applicant .
Parent, Android USB Port Forwarding, Dec. 26, 2011, 7 pgs, http://www.codeproject.com/Articles/191930/Android-Usb-Port-Forwarding. cited by applicant .
Silberman, Indoor Segmentation and Support Ingerence from RGBD Images, Computer Vision--ECCV 2012, Springer Berlin Heidelbert, Oct. 2012, pp. 746-780. cited by applicant .
USB/IP Project, USB Request Over IP Network, Dec. 27, 2011, 5 pgs, http://web.archive.org/web/20111227171215/http://usbip.sourceforge.net/. cited by applicant .
Hampapur, Smart surveillance: applications, technologies and implications, Information Communications and Signal Processing 2, 2003, pp. 1133-1138. cited by applicant .
Adipranata, Fast method for multiple human face segmentation in color image, 2008 Second Int'l Conference on Future Generation Communcation and Networking, IEEE, 2008, 4 pgs. cited by applicant .
Heo, Fusion of visual and thermal face recognition techniques: A comparative study. Univ. of Tennessee, Knoxville, TN, 2003, 75 pgs. cited by applicant.

Primary Examiner: Lai; Michael C
Attorney, Agent or Firm: Morgan, Lewis & Bockius LLP

Parent Case Text



CROSS REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No. 13/733,789, filed Jan. 3, 2013, now U.S. Pat. No. 9,197,686, entitled "Backfill of Video Stream," which claims priority to U.S. Provisional Patent Application No. 61/583,997, filed Jan. 6, 2012, entitled "Backfill of Video Stream," each of which is incorporated herein by reference in its entirety.
Claims



What is claimed is:

1. A data streaming method performed at a computing device having one or more processors and memory storing one or more programs configured for execution by the one or more processors, comprising: recording video from a camera in real-time, wherein the recorded video is stored in the memory in a circular buffer in chronological order; sending data in chronological order from the circular buffer to a destination in real-time; and in response to detecting that a portion of content from the circular buffer needs to be resent, concurrently resending to the destination in reverse chronological order data from the portion of content from the circular buffer.

2. The method of claim 1, further comprising receiving acknowledgements sent by the destination.

3. The method of claim 2, wherein detecting that the portion of content from the circular buffer needs to be resent includes detecting that no acknowledgement for the portion of content from the circular buffer has been received from the destination.

4. The method of claim 1, wherein sending data in chronological order is given higher priority than resending data in reverse chronological order.

5. The method of claim 1, wherein sending data in chronological order uses a forward cursor that advances in a forward direction in the circular buffer as video frames from the circular buffer are sent to the destination.

6. The method of claim 5, wherein resending data in reverse chronological order uses a backfill cursor that advances in a direction opposite the forward direction in the circular buffer as video frames from the portion are resent to the destination.

7. A data streaming system, comprising: one or more processors; memory; and one or more programs stored in the memory, wherein the one or more programs are configured for execution by the one or more processors for: recording video from a camera in real-time, wherein the recorded video is stored in the memory in a circular buffer in chronological order; sending data in chronological order from the circular buffer to a destination in real-time; and in response to detecting that a portion of content from the circular buffer needs to be resent, concurrently resending to the destination in reverse chronological order data from the portion of content from the circular buffer.

8. The data streaming system of claim 7, further comprising receiving acknowledgements sent by the destination.

9. The data streaming system of claim 8, wherein detecting that the portion of content from the circular buffer needs to be resent includes detecting that no acknowledgement for the portion of content from the circular buffer has been received from the destination.

10. The data streaming system of claim 7, wherein sending data in chronological order is given higher priority than resending data in reverse chronological order.

11. The data streaming system of claim 7, wherein sending data in chronological order uses a forward cursor that advances in a forward direction in the circular buffer as video frames from the circular buffer are sent to the destination.

12. The data streaming system of claim 11, wherein resending data in reverse chronological order uses a backfill cursor that advances in a direction opposite the forward direction in the circular buffer as video frames from the portion are resent to the destination.

13. A non-transitory computer readable storage medium storing one or more programs configured for execution by a computing device having one or more processors and memory, the one or more programs comprising instructions for: recording video from a camera in real-time, wherein the recorded video is stored in the memory in a circular buffer in chronological order; sending data in chronological order from the circular buffer to a destination in real-time; and in response to detecting that a portion of content from the circular buffer needs to be resent, concurrently resending to the destination in reverse chronological order data from the portion of content from the circular buffer.

14. The computer readable storage medium of claim 13, further comprising receiving acknowledgements sent by the destination.

15. The computer readable storage medium of claim 14, wherein detecting that the portion of content from the circular buffer needs to be resent includes detecting that no acknowledgement for the portion of content from the circular buffer has been received from the destination.

16. The computer readable storage medium of claim 13, wherein sending data in chronological order is given higher priority than resending data in reverse chronological order.

17. The computer readable storage medium of claim 13, wherein sending data in chronological order uses a forward cursor that advances in a forward direction in the circular buffer as video frames from the circular buffer are sent to the destination.

18. The computer readable storage medium of claim 17, wherein resending data in reverse chronological order uses a backfill cursor that advances in a direction opposite the forward direction in the circular buffer as video frames from the portion are resent to the destination.
Description



BACKGROUND

In recent years, network-based video streaming devices such as Wi-Fi-enabled security monitor cameras have been developed which streams recorded data in real time to servers via network connections. Network connections, in particular wireless connections (e.g., Wi-Fi), can be easily interrupted. When the network connection between a streaming device and the server is disrupted, there can be loss of data. Solutions are needed to recover the lost data.

BRIEF DESCRIPTION OF THE DRAWINGS

Various embodiments of the invention are disclosed in the following detailed description and the accompanying drawings.

FIG. 1 is a functional diagram illustrating a system for streaming media data in accordance with some embodiments.

FIG. 2 is a block diagram illustrating an embodiment of a network-enabled media capturing and streaming platform.

FIG. 3A is a diagram illustrating an example representation of the available video data.

FIG. 3B illustrates an example where backfill is taking place. In this case, data is resent in the opposite direction of the time axis along arrow 300.

FIG. 3C is a diagram illustrating the effect of a process that sends data in the same direction as the time axis.

FIG. 4 is a flowchart illustrating an embodiment of a process for back filling streaming media data.

FIG. 5 is a flowchart illustrating an embodiment of a process for detecting that a portion of the first media data stream needs to be resent.

FIG. 6 is a diagram illustrating an example implementation of an embodiment of a media data streaming system.

DETAILED DESCRIPTION

The invention can be implemented in numerous ways, including as a process; an apparatus; a system; a composition of matter; a computer program product embodied on a computer readable storage medium; and/or a processor, such as a processor configured to execute instructions stored on and/or provided by a memory coupled to the processor. In this specification, these implementations, or any other form that the invention may take, may be referred to as techniques. In general, the order of the steps of disclosed processes may be altered within the scope of the invention. Unless stated otherwise, a component such as a processor or a memory described as being configured to perform a task may be implemented as a general component that is temporarily configured to perform the task at a given time or a specific component that is manufactured to perform the task. As used herein, the term `processor` refers to one or more devices, circuits, and/or processing cores configured to process data, such as computer program instructions.

A detailed description of one or more embodiments of the invention is provided below along with accompanying figures that illustrate the principles of the invention. The invention is described in connection with such embodiments, but the invention is not limited to any embodiment. The scope of the invention is limited only by the claims and the invention encompasses numerous alternatives, modifications and equivalents. Numerous specific details are set forth in the following description in order to provide a thorough understanding of the invention. These details are provided for the purpose of example and the invention may be practiced according to the claims without some or all of these specific details. For the purpose of clarity, technical material that is known in the technical fields related to the invention has not been described in detail so that the invention is not unnecessarily obscured.

Data streaming is described. In some embodiments, a first media data stream is sent to a destination. In the event that it is detected that a portion of the first media data stream needs to be resent (e.g., the portion is not received by the destination due to network failure or the like), buffered data is sent in a second media data stream, where the buffered data corresponds to at least some of the missing portion. The buffered data is backfilled. In other words, in the second media data stream, data that is obtained (e.g., recorded) more recently is sent prior to media data that is obtained less recently. Although video streaming is described in the following examples for purposes of illustration, the technique is also applicable to other types of streaming media such as audio.

FIG. 1 is a functional diagram illustrating a system for streaming media data in accordance with some embodiments. An example of system 102 is the Dropcam.RTM. Wi-Fi Internet Video Camera, System 100, which includes various subsystems as described below, includes at least one microprocessor subsystem (also referred to as a processor or a central processing unit (CPU)) 102. For example, processor 102 can be implemented by a single-chip processor or by multiple processors. In some embodiments, processor 102 is a general purpose digital processor that controls the operation of system 100. Using instructions retrieved from memory 110, the processor 102 controls the reception and manipulation of input data (e.g., recorded media data), and the output of data via an I/O interface (e.g., network interface 116).

Processor 102 is coupled bi-directionally with memory 110, which can include primary storages such as a random access memory (RAM) and/or a read-only memory (ROM). As is well known in the art, primary storage can be used as a general storage area and as scratch-pad memory, and can also be used to store input data and processed data. Primary storage can also store programming instructions and data, in the form of data objects and text objects, in addition to other data and instructions for processes operating on processor 102. Also as is well known in the art, primary storage typically includes basic operating instructions, program code, data and objects used by the processor 102 to perform its functions (e.g., programmed instructions). For example, memory 110 can include any suitable computer-readable storage media, described below, depending on whether, for example, data access needs to be bi-directional or uni-directional. For example, processor 102 can also directly and very rapidly retrieve and store frequently needed data in a cache memory (not shown).

An optional removable mass storage device 112 provides additional data storage capacity for the system 100, and is coupled either bi-directionally (read/write) or uni-directionally (read only) to processor 102. An optional fixed mass storage 120 can also, for example, provide additional data storage capacity. Examples of mass storage 120 include a hard disk drive, a flash drive, a solid state drive, or the like. It will be appreciated that the information retained within mass storage 112 and 120 can be incorporated, if needed, in standard fashion as part of memory 110 (e.g., RAM) as virtual memory.

In addition to providing processor 102 access to storage subsystems, bus 114 can also be used to provide access to other subsystems and devices. As shown, these can include a network interface (also referred to as the communication interface) 116, a microphone 106, a camera 104, as well as any optional auxiliary input/output interface devices such as a display 118, a keyboard and a pointing device, a sound card, speakers, (not shown) and other subsystems as needed.

The network interface 116 allows processor 102 to be coupled to another computer, computer network, or telecommunications network using a network connection (e.g., an Ethernet connection, a Wi-Fi connection, etc.). For example, through the network interface 116, the processor 102 can send streaming media data (including audio and/or video) to another device such as a media server. Information, often represented as a sequence of instructions to be executed on a processor, can be received from and outputted to another network. An interface card or similar device and appropriate software implemented by (e.g., executed/performed on) processor 102 can be used to connect the computer system 100 to an external network and transfer data according to standard protocols. For example, various process embodiments disclosed herein can be executed on processor 102, or can be performed over a direct connection such as a Universal Serial Bus (USB) interface or over a network such as the Internet, intranet networks, or local area networks, in conjunction with a remote processor that shares a portion of the processing. Additional mass storage devices (not shown) can also be connected to processor 102 through network interface 116.

In addition, various embodiments disclosed herein further relate to computer storage products with a computer readable medium that includes program code for performing various computer-implemented operations. The computer-readable medium is any data storage device that can store data which can thereafter be read by a computer system. Examples of computer-readable media include, but are not limited to, all the media mentioned above: magnetic media such as hard disks, floppy disks, and magnetic tape; optical media such as CD-ROM disks; magneto-optical media such as optical disks; and specially configured hardware devices such as application-specific integrated circuits (ASICs), programmable logic devices (PLDs), and ROM and RAM devices. Examples of program code include both machine code, as produced, for example, by a compiler, or files containing higher level code (e.g., script) that can be executed using an interpreter.

The computer system shown in FIG. 1 is but an example of a computer system suitable for use with the various embodiments disclosed herein. Other computer systems suitable for such use can include additional or fewer subsystems. In addition, bus 114 is illustrative of any interconnection scheme serving to link the subsystems. Other computer architectures having different configurations of subsystems can also be utilized.

FIG. 2 is a block diagram illustrating an embodiment of a network-enabled media capturing and streaming platform. Device 202 can be implemented by a system such as 100 or by any other appropriate recording and streaming device. An example of device 202 is the Dropcam.RTM. Wi-Fi Internet Video Camera. Device 202 includes one or more interfaces configured to capture media data (e.g., camera and/or microphone interfaces configured to capture video and/or audio), and record the captured media information to a local storage. The device includes one or more network interfaces that allow the device to be connected to a server 204 via a network 206 such as the Internet. Alternatively, device 202 can also connect to the server via an external host. For example, device 202 can be connected to a host via a USB, Bluetooth, or other local connections, and use the host as a proxy for communicating with the server over the network.

In some embodiments, device 202 is configured to continuously capture video and stream the video to server 204 via the network, using a protocol such as Real Time Streaming Protocol (RTSP), DropTalk, or any other appropriate streaming protocol. Server 204 (also referred to as a media server) buffers the received video stream, saves it to storage, and makes it available for viewing by a user. For example, the server can make the video available to a client device by implementing a client-server communications protocol such as Hypertext Transfer Protocol (HTTP), where the video is accessible at a given Universal Resource Locator (URL). A user accesses the video by visiting the URL using a web browser or a standalone application running on a client device 208 (e.g., a personal computer, a smartphone, a tablet device, or the like). The user can view the video live, i.e., in real time as the video is captured and streamed to the server by the device, or view previously recorded video. A user interface with time indication (e.g., a scrubber bar) is provided for the user via the web browser or the standalone application to control the portion of the video to view.

In some embodiments, while the video is being captured, it is also buffered in a local storage space (e.g., a disk, a flash drive, or other memory device) that is a part of the device. The amount of video that is buffered depends on the quality of the video being stored and the amount of storage space available. In some embodiments, a few minutes or a few hours' worth of video is buffered. In some embodiments, the storage space is implemented as a circular buffer in which the oldest video content is overwritten by the newest video content when the storage space is filled up and additional space is needed.

If there is disruption in the device's video stream to the server, some of the video data will not be correctly received by the server. For example, if the network connection is disrupted temporarily, the device will not be able to access the server via the Internet, causing disruption to the video stream. FIG. 3A is a diagram illustrating an example representation of the available video data. Information conveyed in the example shown may be implemented as data structures or as a user interface displayed to the user. The x-axis represents time. The shaded portions represent available video data, and in particular available video data on the server. In some embodiments, the video data is stored as a Motion Picture Experts Group (MPEG) stream comprising a plurality of video frames with timestamps. Between time t1 and t2, there is a gap where the video stream is disrupted (possibly due to a network outage or the like). Without any backfill, the user will simply not be able to view the video captured between t1 and t2. To overcome the problem, in some embodiments, the video that is buffered on the camera itself is used to backfill the gap once the network connection is restored.

In this example, the video stream includes timestamps so that the data on the device and the data on the server can be synchronized. After the disruption has occurred and the connection is restored, the server will request the device to resend the missing portion of video in an attempt to backfill the video. FIG. 3B illustrates an example where backfill is taking place. In this case, data is resent in the opposite direction of the time axis along arrow 300. In other words, data that was recorded more recently is resent before data that was recorded earlier. For example, video frame 302 (with a timestamp of 00:00:30) is resent before video frame 304 (with a timestamp of 00:00:29), which in turn is resent before video frame 306 (with a timestamp of 00:00:28).

One reason to backfill in the opposite direction of the time axis is that the camera is still recording live video and may be overwriting old data in the buffer. A backfill process that goes in the opposite direction of the time axis means that there may be a gap of lost data at the beginning of the disruption period (e.g., portion 308) that has already been overwritten by new data, but the portion of missing data that is resent would be continuous. If the process were to resent data in the same direction as the time axis, there can be portions of the old data that is not yet uploaded on to the server but is overwritten by new data and becomes irretrievably lost. Depending on the speed of the overwrite and the speed of the upload, there can be multiple such missing data portions, resulting in a backfilled stream that is choppy and is unpleasant to viewer.

FIG. 3C is a diagram illustrating the effect of a process that sends data in the same direction as the time axis. As shown, recorded data is written continuously to a circular buffer, and old data can be overwritten by new data. To resent the portion of data between t1-t2, data is resent in the same direction as the time axis. The portions shown in white correspond to portions of the buffered data that have been overwritten by newer data and therefore cannot be resent. Hashed portions such as 312 are resent before the buffer is overwritten by new data. The overall effect of the resent stream is choppy because of the discontinuities.

FIG. 4 is a flowchart illustrating an embodiment of a process for back filling streaming media data. Process 400 can be performed on a device such as 100. At 402, a first media data stream is sent to a destination such as a video server. In some embodiments, the first media data stream includes a recorded video stream. In some embodiments, the recorded video stream is captured in real-time by the device.

The first media data stream is written to a local storage (e.g., a mass storage component such as 112 or 120 of FIG. 1) continuously as the media data is captured. As will be described in greater detail below, in some embodiments, the local storage is implemented using a circular buffer.

At 404, it is detected that a portion of the first media data stream needs to be resent. Details of an example process for how to detect the missing portion is described below in connection with FIG. 5.

At 406, a second media data stream that comprises media data corresponding to at least some of the missing portion is sent to the destination. In some embodiments, once the processor on the device detects that a portion of the media stream needs to be resent, the processor notifies the communications interface and causes appropriate data to be transferred from a storage buffer to the communications interface, which sends the missing portion to the destination. Media data that is obtained more recently is sent prior to media data that is obtained less recently. Referring to FIG. 3B, data frame 302, which is obtained more recently than data frame 304, is sent before data frame 304.

In some embodiments, the second media data stream is generated by reading the recorded media data from the local storage. The device continues to send media data that corresponds to the missing portion until either the entire missing portion has been sent, or newer data that is recorded after the end of the disrupted period (e.g., data recorded after time t2) is encountered.

Upon receiving the resent media data, the server stores the media data. Since the media data is sequenced according to the frame identifiers, the missing portion can now be played back properly.

FIG. 5 is a flowchart illustrating an embodiment of a process for detecting that a portion of the first media data stream needs to be resent. Process 500 can be used to implement 404 of process 400.

In some embodiments, the destination sends acknowledgments to the device upon successfully receiving data in the first media data stream from the device. Depending on the communication protocol used between the device and the destination, the acknowledgments can have different formats and the interval at which the acknowledgements are sent can differ. For example, in some embodiments, the device sends data in blocks. Each block comprises a set of media data frames and some identification information (e.g., a block identifier, the range of frame identifiers for the set of media data frames, the range of timestamps associated with the set of media data frames, or any other appropriate information that identifies the block or its contents). Accordingly, the acknowledgement also includes the identification information to indicate that the block or the set of media data frames that is successfully received. At 502, one or more acknowledgements are received from the server.

When the communication channel between the device and the server is interrupted, the server will not receive certain data and therefore will not send acknowledgements with respect to the data. In some embodiments, lower layer (e.g., the TCP layer) software handles the process of reestablishing the connection. Upon being notified that the communication channel has been reestablished, the server sends a backfill request to the device, instructing the device to check for any data that has not been successfully acknowledged and therefore should be resent. At 504, the backfill request from the server is received by the device.

At 506, the device checks its records of media data that has been sent and corresponding acknowledgements to determine which data blocks or data frames have not been acknowledged. For example, if the device has sent media data frames with identifiers ranging from 1-200 to the server but has only received acknowledgements for media data frames 1-150 when the backfill request is received, then the portion that needs to be resent includes frames 151-200, which will be sent in reverse order according to the frame identifiers.

FIG. 6 is a diagram illustrating an example implementation of an embodiment of a media data streaming system. System 600 implements its local storage buffer using a circular buffer 602. In the example shown, circular buffer 602 is a fixed-sized circular buffer storing non-uniformly sized data chunks (referred to as CircularChunkBuffer). Uniformly sized data chunks can be used in other embodiments. Each data chunk includes a set of frames. As shown, a media loader task 612 (implemented as a thread or a process executing on the processor of the device) retrieves frames from a media source (e.g., the camera interface) and places the frames into circular buffer 602. The direction in which the frames are written is referred to as the forward direction, and the opposite direction is referred to as the backward direction. Since a circular buffer does not have a beginning or an end, as the media loader task continuously writes frames to the circular buffer, old frames can be overwritten by new frames.

Data in circular buffer 602 is dispatched (i.e., transmitted) to the destination by a forward dispatch task 604 and a backfill dispatch task 606. Each task transmits a corresponding media data stream. The forward dispatch task is started as soon as the device is connected to a server, taking media data stored in circular buffer 602 in the forward direction according to time, and transmitting the data to the server. A forward cursor 608 that advances in the forward direction is used to track the position of the media data being transmitted and allow the forward dispatch task to transmit the appropriate media data frame. In some embodiments, once a frame is transmitted by the forward dispatch task, the forward cursor advances to the next frame in the forward direction.

Backfill dispatch task 606 is started when it is detected that a portion of the media data in the first media data stream sent by the forward dispatch task needs to be resent. Backfill dispatch task 606 transmits media data in circular buffer 602 in the backward direction, starting with the last frame that needs to be resent. A backfill cursor 610 that advances in the backward direction is used to track the position of the media data that needs to be resent. In some embodiments, once a frame is transmitted by the backfill dispatch task, the backward cursor advances to the next frame in the backward direction. In the example where frames 151-200 need to be resent, the backfill cursor points to frame 200 initially since frame 200 should be resent first. Once frame 200 is sent, the backfill cursor advances to the next frame 199, then 198, and so on until frame 151 is resent. If, however, certain old frames have been overwritten, then the backfill process stops when the last available frame that needs to be resent is resent. For example, if frames 151 and 152 have been overwritten by new frames 806 and 807, then the backfill cursor stops advancing when frame 153 has been sent and the backfill process is completed.

In some situations, the media data stream comprising backfilled data and the media data stream comprising live data can be transmitted contemporaneously. In some embodiments, the live video stream is given higher priority than the backfilled data stream over the transmission channel. For example, the live video stream will occupy as much bandwidth as needed if the available bandwidth exceeds the bandwidth of the live video stream or all the available bandwidth if the available bandwidth is less than the bandwidth of the live video stream; and buffered data is sent to the server using any remaining bandwidth. Alternatively, the live video stream and the buffered data can be configured to occupy some predefined proportion of the available bandwidth (e.g., the live stream occupies 80% of the bandwidth and the buffered data occupies 20%). In some embodiments, each stream is sent over a different TCP connection, and the TCP connection associated with the live data stream is assigned a higher priority than the TCP connection associated with the backfilled data stream. For example, the live data stream can be configured to "very high" priority and the buffered data can be configured to "Medium" priority when their respective TCP connections are opened.

Although the foregoing embodiments have been described in some detail for purposes of clarity of understanding, the invention is not limited to the details provided. There are many alternative ways of implementing the invention. The disclosed embodiments are illustrative and not restrictive.

* * * * *

References


uspto.report is an independent third-party trademark research tool that is not affiliated, endorsed, or sponsored by the United States Patent and Trademark Office (USPTO) or any other governmental organization. The information provided by uspto.report is based on publicly available data at the time of writing and is intended for informational purposes only.

While we strive to provide accurate and up-to-date information, we do not guarantee the accuracy, completeness, reliability, or suitability of the information displayed on this site. The use of this site is at your own risk. Any reliance you place on such information is therefore strictly at your own risk.

All official trademark data, including owner information, should be verified by visiting the official USPTO website at www.uspto.gov. This site is not intended to replace professional legal advice and should not be used as a substitute for consulting with a legal professional who is knowledgeable about trademark law.

© 2024 USPTO.report | Privacy Policy | Resources | RSS Feed of Trademarks | Trademark Filings Twitter Feed