WO2009018480A1 - Fast channel change between logical channels within a tranport multiplex - Google Patents

Fast channel change between logical channels within a tranport multiplex Download PDF

Info

Publication number
WO2009018480A1
WO2009018480A1 PCT/US2008/071819 US2008071819W WO2009018480A1 WO 2009018480 A1 WO2009018480 A1 WO 2009018480A1 US 2008071819 W US2008071819 W US 2008071819W WO 2009018480 A1 WO2009018480 A1 WO 2009018480A1
Authority
WO
WIPO (PCT)
Prior art keywords
channel
data
streamer
tuned
iprivate
Prior art date
Application number
PCT/US2008/071819
Other languages
French (fr)
Inventor
Laurence Oliver Ward
Original Assignee
Sirius Xm Radio Inc.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sirius Xm Radio Inc. filed Critical Sirius Xm Radio Inc.
Priority to EP08796990.3A priority Critical patent/EP2179550B1/en
Priority to CA2695230A priority patent/CA2695230C/en
Publication of WO2009018480A1 publication Critical patent/WO2009018480A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/23424Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for inserting or substituting an advertisement
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/426Internal components of the client ; Characteristics thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
    • H04N21/4383Accessing a communication channel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
    • H04N21/4383Accessing a communication channel
    • H04N21/4384Accessing a communication channel involving operations to reduce the access time, e.g. fast-tuning for reducing channel switching latency
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44004Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44016Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2213/00Indexing scheme relating to selecting arrangements in general and for multiplex systems
    • H04Q2213/13332Broadband, CATV, dynamic bandwidth allocation

Definitions

  • the present invention relates to satellite broadcast communications, and more particularly to systems and methods to facilitate fast channel change between logical channels within a transport multiplex.
  • a system, method and computer program product are provided for fast channel change between logical channels within a transport multiplex. By reducing the amount of time it takes to acquire and display a tuned channel, fast channel change can improve a viewer's experience.
  • a fast channel change system can simultaneously decode channel data for each channel in a transport multiplex, reconstruct all access units for each channel and send them out on their respective channel stream in the order that each access unit completes to a streamer, store and maintain a minimum amount of channel data in a buffer in each streamer, and output channel data from a streamer corresponding to a tuned channel to a media player.
  • data can be input to a de-multiplexer and divided into separate video and audio streams prior to being input to the media player.
  • exemplary embodiments of the present invention can be utilized in various video applications, such as, for example, Sirius Satellite Radio's Backseat TVTM service.
  • Fig. 1 depicts a simplified system diagram of a conventional video player application without fast channel change
  • Fig. 2 depicts the video player application of Fig. 1 augmented with an exemplary fast channel change system according to an exemplary embodiment of the present invention
  • FIG. 3 and 3A illustrate exemplary packets and access units according to an exemplary embodiment of the present invention
  • Fig. 4 illustrates an exemplary key frame parking algorithm according to an exemplary embodiment of the present invention
  • Fig. 5 illustrates an exemplary overall process flow according to an exemplary embodiment of the present invention
  • Fig. 5A illustrates an exemplary overall process flow according to an exemplary embodiment of the present invention
  • Fig. 6 illustrates an exemplary detailed process flow for an initialization of streamer output sub-process according to an exemplary embodiment of the present invention
  • Fig. 7 illustrates an exemplary detailed process flow diagram for a modification of streamer output sub-process according to an exemplary embodiment of the present invention.
  • Fig. 8 illustrates detailed operation of an exemplary transport de-multiplexer according to an exemplary embodiment of the present invention.
  • a system, method and computer program product are provided for fast channel change between logical channels within a transport multiplex.
  • Exemplary embodiments of the present invention can be used, for example, in connection with any broadcast video system, such as, for example, Sirius Satellite Radio's Backseat TVTM service.
  • any broadcast video system such as, for example, Sirius Satellite Radio's Backseat TVTM service.
  • a logical channel is a set of associated video, audio, and related data (such as, for example, closed captioning) to which a viewer can tune via their television or TV-like device.
  • An access unit is the smallest logical unit of data which can be displayed, or played, as the case may be, by the aforementioned devices (such as, for example, a video frame, an audio frame, a datum of closed captioning data, etc.).
  • Packets are the smallest logical units of data which can be conveniently transmitted in and recovered from a digital television signal and contain either whole access units or a piece or pieces of one or more access units.
  • a transport multiplex is a stream of one or more logical channels in which the video, audio, and data access units have been encapsulated into packets (i.e., packetized) and mixed together (i.e., multiplexed) for transmission.
  • An entry point is any place in a stream of data for a
  • display may begin, such as for example, at a key frame in a video clip, such as, for example, an l-frame in an MPEG encoded video signal.
  • Fig. 1 depicts a simplified system diagram of an exemplary video player application without fast channel change.
  • a transport multiplex 105 is fed into a transport de-multiplexer 110.
  • a de-multiplexer will be sometimes referred to herein by the colloquial term "demux.”
  • the transport demux 110 extracts the video, audio, and closed captioning packets which comprise a single channel 115 - the one that is currently tuned to by a user - within the transport multiplex and reconstructs access units from those packets. From there, the channel data 115 is fed into a media player 150, the software component which provides a control interface to the decoder hardware.
  • the channel data 115 is passed into the media player 150 as a bundle of three separate streams (one for each of the video, audio, and closed captioning data) as necessitated by the internals of the decoder.
  • the demux extracts only the channel data for one channel, and feeds only that data to the media player.
  • media player 150 When a user tunes to a new channel, media player 150 is stopped, a new channel stream bundle is passed to the media player, and then the media player is started again. Stopping and starting media player 150 discards any remaining data (from the previously tuned channel) within the player, as the use of such data could result in visible or audible glitches on restart of the media player. There is generally no attempt to do splicing.
  • Fig. 2 depicts an exemplary video player application augmented with a fast channel change system according to an exemplary embodiment of the present invention.
  • the transport demux 210 extracts the video, audio, and closed captioning packets which comprise all of the various channels within the transport multiplex 205.
  • the transport demux can, for example, export a single stream for each channel, shown as Channel 1 , Channel 2 and Channel N in Fig. 2.
  • the transport demux 210 can, for example, reconstruct all access units for the channel and send them out on the channel stream in the order that each access unit completes.
  • Fig. 3 depicts an example of the order in which access units can be reconstructed from packets for a given channel from the transport multiplex according to exemplary embodiments of the present invention.
  • the top portion of the figure shows multiplexed packets and the bottom portion of the figure shows the ordered, reconstructed access units.
  • the order of the reconstructed access units sent on the channel stream by the transport demux is based on when the last piece of each access unit arrives at the transport demux, i.e., the completion order of the access units. This order is necessary for fast channel switching due to the timing relationships between the video, audio, and closed captioning data.
  • Fig. 3A indicates which packets are assigned to which access units in the example of Fig. 3, and the fact that an access unit is only output once all of its component packets have been received.
  • each channel stream can be fed, for example, into a fast channel change object ("FCC Object") 240 where it can be, for example, handled by a streamer 220.
  • FCC Object fast channel change object
  • a streamer 220 can, for example, read data from its input, possibly process the data, and then write the data to its buffered output.
  • the streamer's processing can, for example, be in either of two modes, as next described.
  • a first mode the channel is the one to which a receiver is currently tuned (e.g., Channel 1 in Fig. 2). From that channel's streamer, channel data can be written to the streamer output starting at the first entry point the streamer encounters upon switching to this mode. The channel data can then, for example, be sent into a demux 230 to separate the data into video, audio, and closed captioning data streams (as required by the decoder) and then, for example, be sent to the media player 250. Alternatively, when interoperating with a media player that does not require a separate data stream for audio and video, such as, for example, Windows Media Player 9, the de-multiplexing at demux 230 is not needed.
  • a second mode which can be called, for example, a parking mode
  • the streamer's channel is not the one to which the receiver is currently tuned (e.g., any of Channel 2 through Channel N in Fig. 2).
  • the streamer can, for example, store sufficient data in its internal buffer so as to insure no underflow at the media player in the event of a channel change to that streamer's channel.
  • -8- streamer can, for example, store data beginning at the first entry point the streamer encounters upon switching to this mode.
  • FCC Object 240 operates as to each channel continuously, either in normal mode or in parking mode.
  • media player 250 When switching channels, for example, media player 250 can be stopped, the newly tuned channel's streamer 220 can be placed in normal mode, the previously tuned channel's streamer 220 can be placed in parking mode, and, finally, the media player can be started again.
  • the data path to the media player i.e., from demux 230
  • demux 230 the data path to the media player
  • a channel streamer in parking mode needs to maintain at least a certain amount of stored channel data. That minimum amount can be determined, for example, from buffering period information or coded packet buffer size present in the video data, or from system parameters such as, for example, media player data throughput for each channel.
  • Fig. 4 illustrates how an exemplary parking algorithm can work to maintain the minimum amount of channel data in a given parked streamer according to an exemplary embodiment of the present invention.
  • the arrows in Fig. 4 indicate the entry points for the corresponding channel.
  • An entry point is a key frame, i.e., one which allows the video signal to be displayed, thus a video frame that is not dependent upon earlier or
  • a streamer's data processor can, for example, record the following information: (i) the entry point's starting position in the buffer; (ii) the minimum necessary amount of video data to store after the entry point; and (iii) how much non-key frame video data has been stored since the last entry point.
  • the algorithm seeks to maintain the minimum necessary amount of channel data in the streamer buffer by potentially discarding data stored previous to the entry point, starting at this latest entry point and working backwards to at most the second entry point. If the amount of video data (including both key frames and non-key frames) stored after the entry point (hence the need to keep track of the amount of non-video data stored between entry points) is sufficient to prevent underflow on a channel change, the data stored previous to the entry point is discarded. It is understood that such requisite minimum amount of data is in general channel specific, and thus needs to be determined for each channel.
  • the channel change delay was decreased to three seconds. Additionally, although exemplary embodiments of the present invention need to interoperate with particular media formats by definition, the fast channel change software's structure can be easily modified to handle any media format.
  • the present invention operates independently of how many channels are in a given multiplex, it is completely scalable to as many channels are desired, given a separate streamer with adequate buffering for each channel, and adequate channel capacity in a transport de-multiplexer or set of such transport de-multiplexers.
  • Figs. 5-8 depict exemplary process flow in an exemplary embodiment of the present invention implemented in software, for a video player designed for H.264 format video, and for a transport multiplex containing three logical video channels.
  • exemplary software can be stored, for example, on a digital signal processor running the video.
  • Fig. 5 is an overall process flow diagram for an implementation of an exemplary embodiment of the present invention.
  • Fig. 5A is a more detailed depiction of a particular exemplary implementation.
  • a fast channel change object can, for example, first be created.
  • a clock stream identifier can, for example, be created to handle data from a clock and to synchronize the data.
  • the transport multiplex data can be, for example, sorted into channel streams.
  • each of audio, video and closed captioning streams can be used to select the data and then these streams can be mapped to a channel stream within a transport multiplexer.
  • stream identifiers can be used, for example, as a way to distinguish data, such as audio, video, and close captioning data for each channel, and then at 535 in Fig. 5A, these streams can be, for example, mapped to a single channel stream (which looks like the bottom stream of Fig. 3). By mapping to a channel stream, the effect is to order the data based on completion time.
  • a buffer can store the amount of data needed to prevent underflow. Also at 540, starting the streamer output, can, for example, place a selected channel in normal mode and the other channels in parking mode. As noted above, in normal mode a channel's output can be sent to the media player. After a certain event, such as, for example, reaching the minimum amount of channel data needed in the buffer or a change in the channel, the media player decodes the data and displays the video at 550. If a user desires to change the channel, at 560, the new channel can, for example, be placed in normal mode and the previous channel can be placed in parking mode.
  • the order of the mode changes can be to set the newly selected channel in normal mode and then set the previously selected channel to parking mode, thus leaving a very slight overlap where both channels are in normal mode. This can, for example, prevent glitches in the video and audio.
  • the new channel can, for example, now be displayed at 550.
  • the new channel stream is displayed as long as the user prefers (until the channel is changed or the system is shut off).
  • Fig. 6 is a detailed flow diagram for the initialization of streamer output sub-process shown at 540 in Figs. 5.
  • the stream can start, for example, by determining the number of channels.
  • the channel list can be dynamic, thus allowing for addition and subtraction of channels. Alternate exemplary embodiments could use a static channel list, in which case determining the number of channels might not be necessary.
  • a set of values can, for example, be associated with each channel (such as the value of the channel number).
  • a default or user inputted channel can then be selected to be the initial output to the media player.
  • each channel can, for example, be placed into either parking mode or normal mode. The output of the normal mode stream can then be sent to the media player.
  • Fig. 7 depicts a detailed process flow diagram for the modification of streamer output sub-process illustrated at 560 in Fig. 5.
  • a new channel for example, can be selected by a user.
  • the software can, for example, then locate the channel stream for the newly selected channel.
  • the software can locate the channel stream using a dynamically linked list. Therefore, the channel list can be updated dynamically, allowing for changes in the broadcast lineup.
  • the channel list can be updated dynamically, allowing for changes in the broadcast lineup.
  • a static channel list can also be used, thus making searches for the channel stream in some instances faster. This can be done, for example, by using an array for access to the channel objects (streams) and a hashtable for lookup.
  • the software can set the new channel to normal mode.
  • the old channel can, for example, be set to parking mode.
  • the order of the mode changes here can be important to prevent display glitches.
  • the output of normal mode channel can then, for example, be sent to the media player.
  • Fig. 8 illustrates an exemplary operation of a transport de-multiplexer, such as that shown at 210 in Fig. 2, for example, according to an exemplary embodiment of the present invention.
  • data coming in from the transport multiplex can be separated into channel streams by a number of methods, such as, for example, using stream identifiers to separate the incoming data, and then to map the streams to their appropriate logical channel, ordering the data based on completion time.
  • a clock stream can be added to the transport de-multiplexer.
  • an exemplary output of a transport demux according to exemplary embodiments of the present invention is shown on the bottom section of Fig. 3.
  • Another way to combine the access units would be, for example, to place time stamps on the access units using the clock stream as a method of organizing the data or as an error checking method, or alternatively, for example, to use time stamps which are already embedded in the access units.
  • the following exemplary software source code extracts can be used, in exemplary embodiments of the present invention, to implement an embodiment of the present invention that utilizes an H.264 compliant video player, in a multiplex that has three video channels. It is understood that in different contexts modified source code would be used to conform to various video formats, the number of channels, the constraints of various video chips and video player systems, etc., as may be appropriate, and thus the following code is only one of a multitude of examples of source code that can, for example, be used to implement exemplary embodiments of the present invention.
  • Figs. 5-8 describe an exemplary embodiment created using the following exemplary code, and thus can be useful for analyzing it. It is understood that the following code is by way of illustration, and only provides certain illustrative functionalities.
  • the following exemplary source code excerpts refer to an exemplary implementation of an embodiment of the present invention named "FAST_CHANNEL_CHANGE.”
  • nodeFound ( pFCC_CHANNEL_NODE ) iPRIVATE->m_channelList->find( iPRIVATE->m_channelList, ( pLIST_NODE ) node );
  • ⁇ node ( pFCC_CHANNEL_NODE ) iPRIVATE->m_channel ⁇ st->getNodeBylndex( iPRIVATE->m_channelList, i );
  • ⁇ node ( pFCC_CHANNEL_NODE ) iPRIVATE->m_channelList->getNodeBylndex( iPRIVATE->m_channelList, i );
  • ⁇ iPRIVATE->m_packetBuffer malloc( ( size_t ) ( iSUPERPRIVATE->m_auLength + SPES_SIZE ) );
  • iPRIVATE->m_packetBuffer ! NULL
  • iPRIVATE->m_packetBufferSize iSUPERPRIVATE->m_auLength + SPES_SIZE
  • DBG_PRINTF "Copying %lu bytes to access unit at position %lu within " "(%lu byte) access unit ⁇ n”, *bytes, iPRIVATE->m_currentPosition, iSUPERPRIVATE->m_auLength );
  • DBG_PRINTF ( "Checking an access unit to see if it is " "an I picture. ⁇ n” );
  • INF_PRINTF (Channel %lu synchronized ⁇ n", iPRIVATE->m_channel );
  • INF_PRINTF "Fifo would block on write ⁇ n” ); break; ⁇
  • vbvLevel iPRIVATE->m_accessllnit->bufferSize( iPRIVATE->m_accessUnit );
  • ⁇ node iPRIVATE->m_iFrameList->getNodeBylndex( iPRIVATE->m_iFrameList, ( ULONG ) i );
  • ⁇ bA bytesAvailable - ( ULONG ) ( wPtrN - wPtri );
  • ⁇ bA bytesAvailable - ( ULONG ) ( wPtrN + fifoSize - wPtri );
  • bA2 is the number of video bytes after and // including the l-frame being tested for parking.
  • ⁇ node2 iPRIVATE->m_iFrameList->getNodeBylndex( iPRIVATE->m_iFrameList, ( ULONG ) (
  • ⁇ node2 iPRIVATE->m_iFrameList->getNodeBylndex( iPRIVATE->m_iFrameList, ( ULONG ) (
  • DBG_PRINTF "Channel %lu setting parked l-frame (%lu -> %lu) (%lu). ⁇ n", iPRIVATE->m_channel, numltems, numltems - i, bA2 ); iSUPERPRIVATE->m_fifo->setReadPointer( iSUPERPRIVATE->m_fifo, wPtrN, bA );
  • ⁇ node iPRIVATE->m_iFrameList->getNodeBylndex( iPRIVATE->m_iFrameList, ( ULONG )
  • iPRIVATE->m_neededBytes iPRIVATE->m_readBytes - iPRIVATE->m_bufferlndex; memcpy( &iPRIVATE->m_packetBuffer[iPRIVATE->m_currentPosition],
  • iPRIVATE->m_currentPosition + copyBytes;
  • iPRIVATE->m_bufferlndex + copyBytes;
  • copyBytes ( PACKET_BUFFER_SIZE - iPRIVATE->m_currentPosition ); memcpy( &iPRIVATE->m_packetBuffer[iPRIVATE->m_currentPosition],
  • INF_PRINTF "FCCSetChannel(): channel set to %lu. ⁇ n", iPRIVATE->m_currentChannel return SUCCESS; ⁇
  • STATUS status SUCCESS; pDEVJOINTERFACE input; ULONG copyBytes, auLength;
  • DBG_PRINTF "FCCParse(): Wrote %lu bytes to fifo, stream id %02lx. ⁇ n", writeSize, ( ULONG ) iPRIVATE->m_streamld );
  • ERR_PRINTF "FCCParse(): FCC in undetermined state ⁇ n” ); ASSERT( iPRIVATE->m_syncState ⁇ FCC_NUM_SYNC_STATES ); break; ⁇ ⁇ ⁇
  • STATUS status SUCCESS; ULONG numChannels;
  • ⁇ node ( pFCC_CHANNEL_NODE ) iPRIVATE->m_channelList->getNodeBylndex( iPRIVATE->m_channelList, number );
  • fifoNode ( plO_FIFO_LIST_NODE ) iBASEPRIVATE->m_fifoList->getNodeBylndex( iBASEPRIVATE->m_fifoList, number );
  • ⁇ pDEVJOINTERFACE interface ( pDEVJOINTERFACE ) iPRIVATE->mJoService; if( number ⁇ iPRIVATE->mJoService->numlnterfaces( iPRIVATE->mJoService ) )
  • ⁇ status interface->getEnumeratedMember( interface, FIFOJ3YTES_AVAILABLE, value );

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

A system, method and computer program product are provided for fast channel change between logical channels within a transport multiplex. By reducing the amount of time it takes to acquire and display a tuned channel, fast channel change can improve a viewer's experience. In exemplary embodiments of the present invention, a fast channel change system can simultaneously decode channel data for each channel in a transport multiplex, reconstruct all access units for each channel and send them out on their respective channel stream in the order that each access unit completes to a streamer, store and maintain a minimum amount of channel data in a buffer in each streamer, and output channel data from a streamer corresponding to a tuned channel to a media player.

Description

METHODS AND SYSTEMS FOR FAST CHANNEL CHANGE BETWEEN LOGICAL CHANNELS WITHIN A TRANSPORT MULTIPLEX
CROSS REFERENCE TO RELATED APPLICATIONS
This application claims the benefit of and hereby incorporates by reference U.S. Provisional Patent Application No. 60/962,781 entitled "METHODS AND SYSTEMS FOR FAST CHANNEL CHANGE BETWEEN LOGICAL CHANNELS WITHIN A TRANSPORT MULTIPLEX", filed on July 31 , 2007.
TECHNICAL FIELD
The present invention relates to satellite broadcast communications, and more particularly to systems and methods to facilitate fast channel change between logical channels within a transport multiplex.
BACKGROUND OF THE INVENTION
With the proliferation of video signals, such as, for example, in backseat video channels delivered via satellite to automobiles, it is in the interests of broadcasters and video player providers to enhance, to the extent possible, a user's viewing experience to gain market advantage, create goodwill, and associate a pleasant viewing experience with their services. One way to enhance a viewer's experience is to reduce wait times, such as those often encountered when a user changes channels.
What is thus needed in the art are methods and systems to reduce the amount of time it takes to acquire and display a tuned channel within a transport multiplex.
-2- SUMMARY OF THE INVENTION
A system, method and computer program product are provided for fast channel change between logical channels within a transport multiplex. By reducing the amount of time it takes to acquire and display a tuned channel, fast channel change can improve a viewer's experience. In exemplary embodiments of the present invention, a fast channel change system can simultaneously decode channel data for each channel in a transport multiplex, reconstruct all access units for each channel and send them out on their respective channel stream in the order that each access unit completes to a streamer, store and maintain a minimum amount of channel data in a buffer in each streamer, and output channel data from a streamer corresponding to a tuned channel to a media player. In exemplary embodiments of the present invention data can be input to a de-multiplexer and divided into separate video and audio streams prior to being input to the media player. Exemplary embodiments of the present invention can be utilized in various video applications, such as, for example, Sirius Satellite Radio's Backseat TV™ service.
BRIEF DESCRIPTION OF THE DRAWINGS
Fig. 1 depicts a simplified system diagram of a conventional video player application without fast channel change;
Fig. 2 depicts the video player application of Fig. 1 augmented with an exemplary fast channel change system according to an exemplary embodiment of the present invention;
-3- Figs. 3 and 3A illustrate exemplary packets and access units according to an exemplary embodiment of the present invention;
Fig. 4 illustrates an exemplary key frame parking algorithm according to an exemplary embodiment of the present invention;
Fig. 5 illustrates an exemplary overall process flow according to an exemplary embodiment of the present invention;
Fig. 5A illustrates an exemplary overall process flow according to an exemplary embodiment of the present invention;
Fig. 6 illustrates an exemplary detailed process flow for an initialization of streamer output sub-process according to an exemplary embodiment of the present invention;
Fig. 7 illustrates an exemplary detailed process flow diagram for a modification of streamer output sub-process according to an exemplary embodiment of the present invention; and
Fig. 8 illustrates detailed operation of an exemplary transport de-multiplexer according to an exemplary embodiment of the present invention.
DETAILED DESCRIPTION OF THE INVENTION
-4- A system, method and computer program product are provided for fast channel change between logical channels within a transport multiplex. Exemplary embodiments of the present invention can be used, for example, in connection with any broadcast video system, such as, for example, Sirius Satellite Radio's Backseat TV™ service. By reducing the amount of time required to acquire and display a tuned channel via fast channel change, a viewer's experience can be significantly enhanced. The beneficial effects of such technology increase with the number of channels provided, thus allowing users to flip through many channels and effectively instantaneously see what each channel is offering.
For ease of description of various exemplary embodiments of the present invention, a few definitions will be provided. A logical channel is a set of associated video, audio, and related data (such as, for example, closed captioning) to which a viewer can tune via their television or TV-like device. An access unit is the smallest logical unit of data which can be displayed, or played, as the case may be, by the aforementioned devices (such as, for example, a video frame, an audio frame, a datum of closed captioning data, etc.). Packets are the smallest logical units of data which can be conveniently transmitted in and recovered from a digital television signal and contain either whole access units or a piece or pieces of one or more access units. A transport multiplex is a stream of one or more logical channels in which the video, audio, and data access units have been encapsulated into packets (i.e., packetized) and mixed together (i.e., multiplexed) for transmission. An entry point is any place in a stream of data for a
-5- particular channel where display may begin, such as for example, at a key frame in a video clip, such as, for example, an l-frame in an MPEG encoded video signal.
Fig. 1 depicts a simplified system diagram of an exemplary video player application without fast channel change. With reference thereto, a transport multiplex 105 is fed into a transport de-multiplexer 110. For convenience, a de-multiplexer will be sometimes referred to herein by the colloquial term "demux." Continuing with reference to Fig. 1 , the transport demux 110 extracts the video, audio, and closed captioning packets which comprise a single channel 115 - the one that is currently tuned to by a user - within the transport multiplex and reconstructs access units from those packets. From there, the channel data 115 is fed into a media player 150, the software component which provides a control interface to the decoder hardware. The channel data 115 is passed into the media player 150 as a bundle of three separate streams (one for each of the video, audio, and closed captioning data) as necessitated by the internals of the decoder. Thus, in standard systems, the demux extracts only the channel data for one channel, and feeds only that data to the media player.
When a user tunes to a new channel, media player 150 is stopped, a new channel stream bundle is passed to the media player, and then the media player is started again. Stopping and starting media player 150 discards any remaining data (from the previously tuned channel) within the player, as the use of such data could result in visible or audible glitches on restart of the media player. There is generally no attempt to do splicing.
-6- Fig. 2 depicts an exemplary video player application augmented with a fast channel change system according to an exemplary embodiment of the present invention. In the video player of Fig. 2 the transport demux 210 extracts the video, audio, and closed captioning packets which comprise all of the various channels within the transport multiplex 205. However, instead of extracting each channel's data as a bundle of three separate streams, the transport demux can, for example, export a single stream for each channel, shown as Channel 1 , Channel 2 and Channel N in Fig. 2. Thus, the transport demux 210 can, for example, reconstruct all access units for the channel and send them out on the channel stream in the order that each access unit completes.
Fig. 3 depicts an example of the order in which access units can be reconstructed from packets for a given channel from the transport multiplex according to exemplary embodiments of the present invention. The top portion of the figure shows multiplexed packets and the bottom portion of the figure shows the ordered, reconstructed access units. As noted above, the order of the reconstructed access units sent on the channel stream by the transport demux is based on when the last piece of each access unit arrives at the transport demux, i.e., the completion order of the access units. This order is necessary for fast channel switching due to the timing relationships between the video, audio, and closed captioning data. Fig. 3A indicates which packets are assigned to which access units in the example of Fig. 3, and the fact that an access unit is only output once all of its component packets have been received.
-7- Returning to Fig. 2, each channel stream can be fed, for example, into a fast channel change object ("FCC Object") 240 where it can be, for example, handled by a streamer 220. A streamer 220 can, for example, read data from its input, possibly process the data, and then write the data to its buffered output. In exemplary embodiments according to the present invention, the streamer's processing can, for example, be in either of two modes, as next described.
In a first mode, called a normal mode, the channel is the one to which a receiver is currently tuned (e.g., Channel 1 in Fig. 2). From that channel's streamer, channel data can be written to the streamer output starting at the first entry point the streamer encounters upon switching to this mode. The channel data can then, for example, be sent into a demux 230 to separate the data into video, audio, and closed captioning data streams (as required by the decoder) and then, for example, be sent to the media player 250. Alternatively, when interoperating with a media player that does not require a separate data stream for audio and video, such as, for example, Windows Media Player 9, the de-multiplexing at demux 230 is not needed. In a second mode, which can be called, for example, a parking mode, the streamer's channel is not the one to which the receiver is currently tuned (e.g., any of Channel 2 through Channel N in Fig. 2). In such parking mode channel data is not written to the streamer output, but rather, the streamer can, for example, store sufficient data in its internal buffer so as to insure no underflow at the media player in the event of a channel change to that streamer's channel. In exemplary embodiments of the present invention, in parking mode the
-8- streamer can, for example, store data beginning at the first entry point the streamer encounters upon switching to this mode.
Thus, in exemplary embodiments of the present invention, FCC Object 240 operates as to each channel continuously, either in normal mode or in parking mode.
When switching channels, for example, media player 250 can be stopped, the newly tuned channel's streamer 220 can be placed in normal mode, the previously tuned channel's streamer 220 can be placed in parking mode, and, finally, the media player can be started again. Unlike conventional non-fast channel change devices, the data path to the media player (i.e., from demux 230) remains unbroken.
In order to prevent the decoder from eventually starving - a condition called underflow - after a tune to its channel, a channel streamer in parking mode needs to maintain at least a certain amount of stored channel data. That minimum amount can be determined, for example, from buffering period information or coded packet buffer size present in the video data, or from system parameters such as, for example, media player data throughput for each channel.
Fig. 4 illustrates how an exemplary parking algorithm can work to maintain the minimum amount of channel data in a given parked streamer according to an exemplary embodiment of the present invention. The arrows in Fig. 4 indicate the entry points for the corresponding channel. An entry point is a key frame, i.e., one which allows the video signal to be displayed, thus a video frame that is not dependent upon earlier or
-9- later frames in order to be decoded. In MPEG a key frame is an l-frame, for example. Upon encountering an entry point, for example, a streamer's data processor can, for example, record the following information: (i) the entry point's starting position in the buffer; (ii) the minimum necessary amount of video data to store after the entry point; and (iii) how much non-key frame video data has been stored since the last entry point.
Upon encountering each successive entry point after the second one, inclusive, the algorithm seeks to maintain the minimum necessary amount of channel data in the streamer buffer by potentially discarding data stored previous to the entry point, starting at this latest entry point and working backwards to at most the second entry point. If the amount of video data (including both key frames and non-key frames) stored after the entry point (hence the need to keep track of the amount of non-video data stored between entry points) is sufficient to prevent underflow on a channel change, the data stored previous to the entry point is discarded. It is understood that such requisite minimum amount of data is in general channel specific, and thus needs to be determined for each channel.
Testing performed by the inventor has shown an improved average channel change time with fast channel change over conventional changing of channels without it. For example, in one test run on a multiplex with three video channels, where video was played in H.264 format and was MPEG encoded, a standard channel change involved six seconds before video from the newly changed channel appeared. When a fast channel change according to an exemplary embodiment of the present invention was
-10- implemented in the same system, the channel change delay was decreased to three seconds. Additionally, although exemplary embodiments of the present invention need to interoperate with particular media formats by definition, the fast channel change software's structure can be easily modified to handle any media format.
Because the present invention operates independently of how many channels are in a given multiplex, it is completely scalable to as many channels are desired, given a separate streamer with adequate buffering for each channel, and adequate channel capacity in a transport de-multiplexer or set of such transport de-multiplexers.
Figs. 5-8, next described, depict exemplary process flow in an exemplary embodiment of the present invention implemented in software, for a video player designed for H.264 format video, and for a transport multiplex containing three logical video channels. In exemplary embodiments of the present invention such exemplary software can be stored, for example, on a digital signal processor running the video.
Fig. 5 is an overall process flow diagram for an implementation of an exemplary embodiment of the present invention. Fig. 5A is a more detailed depiction of a particular exemplary implementation. With reference thereto, at 510 a fast channel change object can, for example, first be created. Next at 520, a clock stream identifier can, for example, be created to handle data from a clock and to synchronize the data. At 530 in Fig. 5, the transport multiplex data can be, for example, sorted into channel streams. In the specific exemplary embodiment shown in Fig. 5A, stream identifiers associated with
-1 1 - each of audio, video and closed captioning streams can be used to select the data and then these streams can be mapped to a channel stream within a transport multiplexer. Thus, at 531 in Fig. 5A, stream identifiers can be used, for example, as a way to distinguish data, such as audio, video, and close captioning data for each channel, and then at 535 in Fig. 5A, these streams can be, for example, mapped to a single channel stream (which looks like the bottom stream of Fig. 3). By mapping to a channel stream, the effect is to order the data based on completion time.
At 540, a buffer can store the amount of data needed to prevent underflow. Also at 540, starting the streamer output, can, for example, place a selected channel in normal mode and the other channels in parking mode. As noted above, in normal mode a channel's output can be sent to the media player. After a certain event, such as, for example, reaching the minimum amount of channel data needed in the buffer or a change in the channel, the media player decodes the data and displays the video at 550. If a user desires to change the channel, at 560, the new channel can, for example, be placed in normal mode and the previous channel can be placed in parking mode. In exemplary embodiments of the present invention the order of the mode changes can be to set the newly selected channel in normal mode and then set the previously selected channel to parking mode, thus leaving a very slight overlap where both channels are in normal mode. This can, for example, prevent glitches in the video and audio. After placing the newly selected channel in normal mode and placing the previously selected channel in parking mode, the new channel can, for example, now be displayed at 550. In the
-12- depicted exemplary embodiment, the new channel stream is displayed as long as the user prefers (until the channel is changed or the system is shut off).
Fig. 6 is a detailed flow diagram for the initialization of streamer output sub-process shown at 540 in Figs. 5. At 610 the stream can start, for example, by determining the number of channels. In exemplary embodiments of the present invention, the channel list can be dynamic, thus allowing for addition and subtraction of channels. Alternate exemplary embodiments could use a static channel list, in which case determining the number of channels might not be necessary.
Next at 620, a set of values can, for example, be associated with each channel (such as the value of the channel number). At 630 a default or user inputted channel can then be selected to be the initial output to the media player. Using the value of the channel selected, at 640 each channel can, for example, be placed into either parking mode or normal mode. The output of the normal mode stream can then be sent to the media player.
Fig. 7 depicts a detailed process flow diagram for the modification of streamer output sub-process illustrated at 560 in Fig. 5. At 710 a new channel, for example, can be selected by a user. At 720, the software can, for example, then locate the channel stream for the newly selected channel. In an exemplary embodiment, the software can locate the channel stream using a dynamically linked list. Therefore, the channel list can be updated dynamically, allowing for changes in the broadcast lineup. However, as
-13- noted, a static channel list can also be used, thus making searches for the channel stream in some instances faster. This can be done, for example, by using an array for access to the channel objects (streams) and a hashtable for lookup. Next at 730, the software can set the new channel to normal mode. At 740, the old channel can, for example, be set to parking mode. As noted, the order of the mode changes here can be important to prevent display glitches. The output of normal mode channel can then, for example, be sent to the media player.
Fig. 8 illustrates an exemplary operation of a transport de-multiplexer, such as that shown at 210 in Fig. 2, for example, according to an exemplary embodiment of the present invention. With reference thereto, data coming in from the transport multiplex can be separated into channel streams by a number of methods, such as, for example, using stream identifiers to separate the incoming data, and then to map the streams to their appropriate logical channel, ordering the data based on completion time. In addition, a clock stream can be added to the transport de-multiplexer. As noted, an exemplary output of a transport demux according to exemplary embodiments of the present invention is shown on the bottom section of Fig. 3. Another way to combine the access units would be, for example, to place time stamps on the access units using the clock stream as a method of organizing the data or as an error checking method, or alternatively, for example, to use time stamps which are already embedded in the access units.
-14- Exemplary Source Code
The following exemplary software source code extracts can be used, in exemplary embodiments of the present invention, to implement an embodiment of the present invention that utilizes an H.264 compliant video player, in a multiplex that has three video channels. It is understood that in different contexts modified source code would be used to conform to various video formats, the number of channels, the constraints of various video chips and video player systems, etc., as may be appropriate, and thus the following code is only one of a multitude of examples of source code that can, for example, be used to implement exemplary embodiments of the present invention. Figs. 5-8 describe an exemplary embodiment created using the following exemplary code, and thus can be useful for analyzing it. It is understood that the following code is by way of illustration, and only provides certain illustrative functionalities. The following exemplary source code excerpts refer to an exemplary implementation of an embodiment of the present invention named "FAST_CHANNEL_CHANGE."
-15- ********************************** BEG|N EXEMPLARY CODE *******************************************
// Overall System
/ Create Fast Channel Change Objects fee = getFastChannelChange();
// Add Clock Stream Identifier
INF_PRINTF( "Adding clock SID to demuxΛn" ); demux->addSID( demux, SDTP_CLOCK_SID, FIFOJJNSYNCHRONIZED, SDTP_MAX_PAYLOAD_SIZE ); clocklnput = demux->getSID( demux, SDTP_CLOCK_SID );
// Add Stream Identifiers For Each Channel In The Transport De-multiplexer INF_PRINTF( "Adding SIDs to demuxΛn" ); demux->addSID( demux, 280, FIFO_UNSYNCHRONIZED, SDTP_MAX_PAYLOAD_SIZE ); demux->addSID( demux, 281 , FIFO_UNSYNCHRONIZED, SDTP_MAX_PAYLOAD_SIZE ); demux->addSID( demux, 290, FIFOJJNSYNCHRONIZED, SDTP_MAX_PAYLOAD_SIZE ); demux->addSID( demux, 291 , FIFOJJNSYNCHRONIZED, SDTP_MAX_PAYLOAD_SIZE ); demux->addSID( demux, 310, FIFOJJNSYNCHRONIZED, SDTP_MAX_PAYLOAD_SIZE ); demux->addSID( demux, 31 1 , FIFOJJNSYNCHRONIZED, SDTP_MAX_PAYLOAD_SIZE ); demux->addSID( demux, 256, FIFO_PES, SDTP_MAX_PAYLOAD_SIZE * 1024 ); demux->addSID( demux, 257, FIFO_PES, SDTP_MAX_PAYLOAD_SIZE * 1024 ); demux->addSID( demux, 258, FIFO_PES, SDTP_MAX_PAYLOAD_SIZE * 1024 );
// Map Stream Identifiers To Channel Stream demux->setSIDChannel( demux, 280, 256 ); demux->setSIDChannel( demux, 281 , 256 ); demux->setSIDChannel( demux, 290, 257 ); demux->setSIDChannel( demux, 291 , 257 ); demux->setSIDChannel( demux, 310, 258 ); demux->setSIDChannel( demux, 311 , 258 ); channel 1 = demux->getSID( demux, 256 ); channel2 = demux->getSID( demux, 257 ); channel3 = demux->getSID( demux, 258 );
// Set Initial Channel And Start Stream fcc->setChannel( fee, channels[channellndex] ); fcc->start( fee );
// Display Video player->sendMediaCommand( player, PLAYER_OPEN, FALSE, 1000 ); player->sendMediaCommand( player, PLAYER_PLAY, FALSE, 500 );
// Change Channels And Display Video
-16- fcc->tuneTo( fee, channels[channellndex] ); player->sendMediaCommand( player, PLAYER_OPEN, FALSE, 1000 ); player->sendMediaCommand( player, PLAYER_PLAY, FALSE, 500 );
Il ©METHOD: FCCTuneTo
//
// ©PARAMETERS:
// iPUBLIC : the public interface of the FAST_CHANNEL_CHANGE
// channel : the channel to tune to
//
// ©RETURNS:
// SUCCESS or FAILURE
//
// ©DESCRIPTION:
// This method will change the current channel to the given channel.
//
STATUS FCCTuneTo( pFAST_CHANNEL_CHANGE iPUBLIC, ULONG channel )
{ pFCC_CHANNEL_NODE node, nodeFound; ULONG numChannels; pFIFOBUFFER fifo; pFIFO_PROCESSOR processor; PROCESSOR_PARAMETERS params; ULONG i;
ASSERT( iPUBLIC != NULL );
ASSERT( channel != INVALID_CHANNEL );
DBG_PRINTF( "FCCTuneTo(): enter\n" );
RTM_ASSERT( LOCK_MUTEX( iPRIVATE->m_mutex ) == SUCCESS ); if( iPRIVATE->m_started == FALSE )
{
ERR_PRINTF( "FCCTuneToQ: Can not tune to channel %lu while stoppedΛn", channel
RTM_ASSERT( UNLOCK_MUTEX( iPRIVATE->m_mutex ) == SUCCESS ); return FAILURE;
} if( iPRIVATE->m_currentChannel == INVALID_CHANNEL )
{
ERR_PRINTF( "FCCTuneTo(): No channels on channel listΛn" );
RTM_ASSERT( UNLOCK_MUTEX( iPRIVATE->m_mutex ) == SUCCESS ); return FAILURE; } node = ( pFCC_CHANNEL_NODE ) FCCChannelCreateNode(); ASSERT( node != NULL ); node->m_channel = channel;
-17- nodeFound = ( pFCC_CHANNEL_NODE ) iPRIVATE->m_channelList->find( iPRIVATE->m_channelList, ( pLIST_NODE ) node );
( ( pLIST_NODE ) node )->deleteNode( ( pLIST_NODE ) node ); if( nodeFound == NULL )
{
ERR_PRINTF( "FCCTuneTo(): Channel %lu not found on channel listΛn", node->m_channel );
RTM_ASSERT( UNLOCK_MUTEX( iPRIVATE->m_mutex ) == SUCCESS ); return FAILURE;
} if( channel == iPRIVATE->m_currentChannel )
{
DBG_PRINTF( "FCCTuneTo(): Already tuned to channel %lu.\n", channel );
RTM_ASSERT( UNLOCK_MUTEX( iPRIVATE->m_mutex ) == SUCCESS ); return SUCCESS; } numChannels = iPRIVATE->m_channelList->numNodes( iPRIVATE->m_channelϋst ); for( i = 0; i < numChannels; ++i )
{ node = ( pFCC_CHANNEL_NODE ) iPRIVATE->m_channelϋst->getNodeBylndex( iPRIVATE->m_channelList, i );
ASSERT( node != NULL ); fifo = node->m_streamer->getFifo( node->m_streamer, 0 );
ASSERT( fifo I= NULL ); processor = fifo->getProcessor( fifo );
ASSERT( processor != NULL ); if( node->m_channel == nodeFound->m_channel )
{ params.m_numParameters = 1 ; params.m_parameters[O].m_type = FCC_PARAM_TYPE_MODE; params.m_parameters[O].m_value = FCC_NORMAL_MODE;
RTM_ASSERT( processor->setParameters( processor, &params ) == SUCCESS );
RTM_ASSERT( iBASEPUBLIC->setlnputlnterface( iBASEPUBLIC, ilθ( node->m_streamer ) ) == SUCCESS
} } for( i = 0; i < numChannels; ++i )
{ node = ( pFCC_CHANNEL_NODE ) iPRIVATE->m_channelList->getNodeBylndex( iPRIVATE->m_channelList, i );
ASSERT( node != NULL ); fifo = node->m_streamer->getFifo( node->m_streamer, 0 );
ASSERT( fifo I= NULL );
-18- processor = fifo->getProcessor( fifo ); ASSERT( processor != NULL ); if( node->m_channel == iPRIVATE->m_currentChannel )
{ params.m_numParameters = 1 ; params.m_parameters[O].m_type = FCC_PARAM_TYPE_MODE; params.m_parameters[O].m_value = FCC_PARKING_MODE;
RTM_ASSERT( processor->setParameters( processor, &params ) == SUCCESS ); } } iPRIVATE->m_currentChannel = channel;
RTM_ASSERT( UNLOCK_MUTEX( iPRIVATE->m_mutex ) == SUCCESS ); INF_PRINTF( "FCCTuneTo(): changed channel to %lu.\n", iPRIVATE->m_currentChannel ); return SUCCESS;
// Writing to FIFO in normal mode, discard data from buffer in parking mode
STATUS FCCH264ProcessorWriteToFifo( pFIFO_PROCESSOR iPUBLIC, pUCHAR data, pULONG bytes, BOOL block )
{
STATUS status = SUCCESS;
ASSERT( iPUBLIC != NULL );
ASSERT( data I= NULL );
ASSERT( bytes != 0 ); switch( iSUPERPRIVATE->m_syncState )
{ case PSS_HEADER_BYTES:
RTM_ASSERT( *bytes <= MAX_PES_HEADER_SIZE ); if( ( iSUPERPRIVATE->m_auLength + SPES_SIZE ) > iPRIVATE->m_packetBufferSize )
{ if( iPRIVATE->m_packetBuffer != NULL )
{ free( iPRIVATE->m_packetBuffer );
} iPRIVATE->m_packetBuffer = malloc( ( size_t ) ( iSUPERPRIVATE->m_auLength + SPES_SIZE ) );
ASSERT( iPRIVATE->m_packetBuffer != NULL ); iPRIVATE->m_packetBufferSize = iSUPERPRIVATE->m_auLength + SPES_SIZE;
} memcpy( iPRIVATE->m_packetBuffer, data, ( size_t ) *bytes ); iPRIVATE->m_currentPosition = *bytes; iPRIVATE->m_pesHeaderSize = *bytes;
ASSERT( iPRIVATE->m_pesHeaderSize < MAX_PES_HEADER_SIZE ); break; case PSS_PAYLOAD_BYTES:
{
BOOL iPicturePresent = FALSE; ULONG writeSize; pU8 writePointer = NULL; pLIST_NODE node, node2; ULONG numltems; pU8 wPtr1 , wPtrN; ULONG bytesAvailable, bA, bA2; INT i, j;
DBG_PRINTF( "Copying %lu bytes to access unit at position %lu within " "(%lu byte) access unitΛn", *bytes, iPRIVATE->m_currentPosition, iSUPERPRIVATE->m_auLength );
-19- RTM_ASSERT( ( *bytes + iPRIVATE->m_currentPosition ) <=
( iSUPERPRIVATE->m_auLength + PES_HEADER_SIZE ) ); memcpy( &iPRIVATE->m_packetBuffer[iPRIVATE->m_currentPosition], data, ( size_t ) *bytes ); iPRIVATE->m_currentPosition += *bytes; if( iSUPERPRIVATE->m_neededBytes == 0 )
{ pU8 pesPacketBuffer = &iPRIVATE->m_packetBuffer[iPRIVATE->m_pesHeaderSize];
ULONG pesPacketLength = iSUPERPRIVATE->m_auLength - iPRIVATE->m_pesHeaderSize;
BYTE streamld = iPRIVATE->m_packetBuffer[3];
DBG_PRINTF( "Have a complete access unit (%lu), (%lu), (%02lx) " "(channel = %lu).\n", iPRIVATE->m_currentPosition, iSUPERPRIVATE->m_auLength, ( ULONG ) streamld , iPRIVATE->m_channel);
RTM_ASSERT( iPRIVATE->m_currentPosition ==
( iSUPERPRIVATE->m_auLength + SPES_SIZE ) ); if( streamld == ( U8 ) VIDEO_STREAM_ID )
{
//Check for I-Frame if( iPRIVATE->m_synchronized == FALSE )
{
DBG_PRINTF( "Checking an access unit to see if it is " "an I picture. \n" );
} if( iPRIVATE->m_accessUnit->setData( iPRIVATE->m_accessUnit, pesPacketBuffer, pesPacketLength ) != SUCCESS )
{
ERR_PRINTF( "Could not set data for access unitΛn" ); break;
} if( iPRIVATE->m_accessUnit->islPicture( iPRIVATE->m_accessUnit ) == TRUE )
{
DBG_PRINTF( "Found an l-picture (%ld) (%lx).\n", ( INT ) iPRIVATE->m_channel, ( ULONG ) streamld ); if( iPRIVATE->m_synchronized == FALSE )
{
INF_PRINTF( "Channel %lu synchronizedΛn", iPRIVATE->m_channel );
} iPRIVATE->m_synchronized = TRUE; iSUPERPRIVATE->m_vbvSize = iPRIVATE->m_accessUnit->bufferSize( iPRIVATE->m_accessUnit ); iPicturePresent = TRUE; writePointer = iSUPERPRIVATE->m_fifo->getWritePointer( iSUPERPRIVATE->m_fifo );
ASSERT( writePointer != NULL ); } } if( iPRIVATE->m_synchronized == TRUE )
{ writeSize = iSUPERPRIVATE->m_auLength + SPES_SIZE;
DBG_PRINTF( "Writing access unit to fifoΛn" ); status = iPRIVATE->PESProcessorWriteToFifo( iSUPERPUBLIC, iPRIVATE->m_packetBuffer,
&writeSize, block );
ASSERT( writeSize == ( iSUPERPRIVATE->m_auLength + SPES_SIZE ) ); if( status != SUCCESS )
{
INF_PRINTF( "Fifo would block on writeΛn" ); break; }
// Parking Mode if( ( streamld == ( U8 ) VIDEO_STREAM_ID ) &&
( iPRIVATE->m_mode == FCC_H264_PARKING_MODE ) &&
( iPicturePresent == TRUE ) ) {
-20- ULONG vbvLevel = iPRIVATE->m_accessllnit->bufferSize( iPRIVATE->m_accessUnit ); ULONG fifoSize = iSUPERPRIVATE->m_fifo->getSize( iSUPERPRIVATE->m_fifo ); if( vbvLevel == 0 )
{ vbvLevel = fifoSize;
}
// For every H.264 access unit containing an l-frame, store the relevant data. node = iPRIVATE->m_iFrameList->insertAtTail( iPRIVATE->m_iFrameList ); ASSERT( node != NULL );
( ( plFRAME_NODE ) node )->m_writePointer = writePointer; ( ( plFRAME_NODE ) node )->m_vbvLevel = vbvLevel; ( ( plFRAME_NODE ) node )->m_otherBytes = iPRIVATE->m_otherBytes; iPRIVATE->m_otherBytes = 0; numltems = iPRIVATE->m_iFrameϋst->numNodes( iPRIVATE->m_iFrameList ); bytesAvailable = iSUPERPRIVATE->m_fifo->getBytesAvailable( iSUPERPRIVATE->m_fifo );
// Determine which l-frame meets the current VBV level criteria if all preceeding H.264 frames in the FIFO were discarded.
// Work backwards from the most recent l-frame. if( numltems > 1 )
{ node = iPRIVATE->m_iFrameϋst->getNodeBylndex( iPRIVATE->m_iFrameList, 0 ); wPtri = ( ( plFRAME_NODE ) node )->m_writePointer; for( i = ( INT ) ( numltems - 1 ); i > 0; -i )
{ node = iPRIVATE->m_iFrameList->getNodeBylndex( iPRIVATE->m_iFrameList, ( ULONG ) i ); wPtrN = ( ( plFRAME_NODE ) node )->m_writePointer; ASSERT( wPtri != wPtrN );
// bA is the number of bytes in the FIFO that would be left if all data before the l-frame being tested for parking was discarded. if( wPtrN > wPtri )
{ bA = bytesAvailable - ( ULONG ) ( wPtrN - wPtri );
} else
{ bA = bytesAvailable - ( ULONG ) ( wPtrN + fifoSize - wPtri );
}
// Account for audio and any other bytes (closed captioning). bA2 is the number of video bytes after and // including the l-frame being tested for parking. bA2 = bA; for( j = i; j < ( INT ) ( numltems - 1 ); ++j )
{ node2 = iPRIVATE->m_iFrameList->getNodeBylndex( iPRIVATE->m_iFrameList, ( ULONG ) (
J + I ) );
ASSERT( node2 I= NULL ); bA2 -= ( ( plFRAME_NODE ) node2 )->m_otherBytes;
}
// Account for audio and any other bytes (closed captioning). bA2 = bA; for( j = i; j < ( INT ) ( numltems - 1 ); ++j )
{ node2 = iPRIVATE->m_iFrameList->getNodeBylndex( iPRIVATE->m_iFrameList, ( ULONG ) (
J + I ) );
ASSERT( node2 I= NULL ); bA2 -= ( ( plFRAME_NODE ) node2 )->m_otherBytes;
-21 - } if( bA2 >= ( ( plFRAME_NODE ) node )->m_vbvLevel )
{
DBG_PRINTF( "Channel %lu setting parked l-frame (%lu -> %lu) (%lu).\n", iPRIVATE->m_channel, numltems, numltems - i, bA2 ); iSUPERPRIVATE->m_fifo->setReadPointer( iSUPERPRIVATE->m_fifo, wPtrN, bA );
// Destroy some nodes for( j = i - 1 ; j >= 0; -j )
{ node = iPRIVATE->m_iFrameList->getNodeBylndex( iPRIVATE->m_iFrameList, ( ULONG )
J );
ASSERT( node != NULL ); iPRIVATE->m_iFrameϋst->destroyNode( iPRIVATE->m_iFrameList, node );
} break;
} } } } if( streamld != ( U8 ) VIDEO_STREAM_ID ) // other bytes includes CC data
{ iPRIVATE->m_otherBytes += writeSize;
} } } break;
} default:
ERR_PRINTF( "H264 parser in undetermined stateΛn" );
ASSERT( iSUPERPRIVATE->m_syncState < PSS_NUM_SYNC_STATES ); break;
} return status;
}
// Write bytes into the FIFO - FCCParse while( ( status == SUCCESS ) && ( ( iPRIVATE->m_readBytes > iPRIVATE->m_bufferlndex ) || ( iPRIVATE->m_neededBytes == 0 ) || ( iPRIVATE->m_moreToParse == TRUE ) ) )
{ switch( iPRIVATE->m_syncState )
{ case FCC_FOUR_BYTES: copyBytes = ( iPRIVATE->m_readBytes - iPRIVATE->m_bufferlndex ) >= iPRIVATE->m_neededBytes
? iPRIVATE->m_neededBytes : iPRIVATE->m_readBytes - iPRIVATE->m_bufferlndex; memcpy( &iPRIVATE->m_packetBuffer[iPRIVATE->m_currentPosition],
&iPRIVATE->m_readBuffer[iPRIVATE->m_bufferlndex], ( size_t ) copyBytes ); iPRIVATE->m_currentPosition += copyBytes; iPRIVATE->m_bufferlndex += copyBytes; iPRIVATE->m_neededBytes -= copyBytes; if( iPRIVATE->m_neededBytes == 0 )
{ auLength = ( ULONG ) iPRIVATE->m_packetBuffer[O] « 16; auLength += ( ULONG ) iPRIVATE->m_packetBuffer[1] « 8; auLength += ( ULONG ) iPRIVATE->m_packetBuffer[2]; iPRIVATE->m_neededBytes = auLength - 1 ; iPRIVATE->m_syncState = FCC_OTHER_BYTES;
-22- iPRIVATE->m_streamld = iPRIVATE->m_packetBuffer[3];
DBG_PRINTF( "FCCParse(): AU length = %lu, stream ID = %02lx\n", auLength,( ULONG ) iPRIVATE- >m_streamld );
} break; case FCC_OTHER_BYTES:
{ pFIFOBUFFER fifo; BOOL block; ULONG writeSize; copyBytes = ( iPRIVATE->m_readBytes - iPRIVATE->m_bufferlndex ) >= iPRIVATE->m_neededBytes ? iPRIVATE->m_neededBytes : ( iPRIVATE->m_readBytes - iPRIVATE->m_bufferlndex ); copyBytes = ( PACKET_BUFFER_SIZE - iPRIVATE->m_currentPosition ) >= copyBytes ? copyBytes : ( PACKET_BUFFER_SIZE - iPRIVATE->m_currentPosition ); memcpy( &iPRIVATE->m_packetBuffer[iPRIVATE->m_currentPosition],
&iPRIVATE->m_readBuffer[iPRIVATE->m_bufferlndex], ( size_t ) copyBytes ); iPRIVATE->m_currentPosition += copyBytes; iPRIVATE->m_bufferlndex += copyBytes; iPRIVATE->m_neededBytes -= copyBytes; if( ( iPRIVATE->m_currentPosition == PACKET_BUFFER_SIZE ) || ( iPRIVATE->m_neededBytes == 0 ) )
{ if( iPRIVATE->m_streamld == ( U8 ) VIDEO_STREAM_ID )
{ fifo = iBASEPUBLIC->getFifo( iBASEPUBLIC, 0 );
} else if( iPRIVATE->m_streamld == ( U8 ) AUDIO_STREAM_ID )
{ fifo = iBASEPUBLIC->getFifo( iBASEPUBLIC, 1 );
} else if( iPRIVATE->m_streamld == ( U8 ) CC_STREAM_ID )
{ fifo = iBASEPUBLIC->getFifo( iBASEPUBLIC, 2 );
}
DBG_PRINTF( "FCCParse(): Writing %lu bytes to fifoΛn", iPRIVATE->m_currentPosition ); writeSize = iPRIVATE->m_currentPosition; block = ( input->type( input ) == INTERFACE_CLIENT_DRIVEN ) ? TRUE : FALSE; status = fifo->write( fifo, iPRIVATE->m_packetBuffer, &writeSize, block );
} }
// ©METHOD: FCCNumChannels
//
//
// ©PARAMETERS:
// iPUBLIC : the public interface of the FAST_CHANNEL_CHANGE
//
// ©RETURNS:
// The number of channels on the channel list.
//
// ©DESCRIPTION:
// This method gets the number of channels on the channel list.
-23- ULONG FCCNumChannels( pFAST_CHANNEL_CHANGE iPUBLIC )
{
ULONG numChannels;
ASSERT( iPUBLIC != NULL );
RTM_ASSERT( LOCK_MUTEX( iPRIVATE->m_mutex ) == SUCCESS ); numChannels = iPRIVATE->m_channelList->numNodes( iPRIVATE->m_channelList ); RTM_ASSERT( UNLOCK_MUTEX( iPRIVATE->m_mutex ) == SUCCESS ); return numChannels;
Il ©METHOD: FCCSetChannel
//
// ©PARAMETERS:
// iPUBLIC : the public interface of the FAST_CHANNEL_CHANGE
//
// ©RETURNS:
// SUCCESS or FAILURE
//
// ©DESCRIPTION:
// This method sets the current channel.
//
STATUS FCCSetChannel( pFAST_CHANNEL_CHANGE iPUBLIC, ULONG channel )
{
ASSERT( iPUBLIC != NULL );
ASSERT( channel != INVALID_CHANNEL );
RTM_ASSERT( LOCK_MUTEX( iPRIVATE->m_mutex ) == SUCCESS ); if( iPRIVATE->m_started == TRUE )
{
ERR_PRINTF( "FCCSetChannel(): Can not set current channel while startedΛn" );
RTM_ASSERT( UNLOCK_MUTEX( iPRIVATE->m_mutex ) == SUCCESS ); return FAILURE; } iPRIVATE->m_currentChannel = channel;
RTM_ASSERT( UNLOCK_MUTEX( iPRIVATE->m_mutex ) == SUCCESS );
INF_PRINTF( "FCCSetChannel(): channel set to %lu.\n", iPRIVATE->m_currentChannel return SUCCESS; }
// ©METHOD: FCCCurrentChannel
//
// ©PARAMETERS:
// iPUBLIC : the public interface of the FAST_CHANNEL_CHANGE
//
// ©RETURNS:
-24- // The current channel.
//
// ©DESCRIPTION:
// This method gets the current channel.
ULONG FCCCurrentChannel( pFAST_CHANNEL_CHANGE iPUBLIC )
{
ULONG channel;
ASSERT( iPUBLIC != NULL );
RTM_ASSERT( LOCK_MUTEX( iPRIVATE->m_mutex ) == SUCCESS ); channel = iPRIVATE->m_currentChannel;
RTM_ASSERT( UNLOCK_MUTEX( iPRIVATE->m_mutex ) == SUCCESS ); return channel;
Il ©METHOD: FCCWriteToFifo
//
// ©PARAMETERS:
// iPUBLIC : public interface to the input daemon for the demux streamer
// buffer : buffer of data that daemon has read
// size : size of the buffer
// block : ignored
//
// ©RETURNS:
// SUCCESS
//
// ©DESCRIPTION:
// This method will write PES packets into the appropriate fifo.
//
STATUS FCCWriteToFifo( pDAEMON iPUBLIC, pU8 buffer, pULONG size, BOOL block )
{ pFAST_CHANNEL_CHANGE_PRIVATE fcc; ULONG bytesToWrite = *size;
ULONG readBytes;
ASSERT( iPUBLIC != NULL ); ASSERT( buffer I= NULL ); ASSERT( size I= NULL );
DBG_PRINTF( "FCCWriteToFifo(): Writing %lu bytes to demuxΛn", *size ); fee = ( pFAST_CHANNEL_CHANGE_PRIVATE ) iPROCESSING_DAEMON( iPUBLIC )->m_streamer; fcc->m_readBuffer = iPROCESSING_DAEMON( iPUBLIC )->m_buffer; readBytes = iPROCESSING_DAEMON( iPUBLIC )->m_bytes;
ASSERT( fcc != NULL );
ASSERT( fcc->m_readBuffer != NULL );
ASSERT( readBytes > 0 ); while( bytesToWrite > 0 ) {
-25- if( ( fcc->m_needMoreBytes ) && ( !fcc->m_moreToParse ) )
{ fcc->m_read Bytes = ( readBytes > bytesToWrite ) ? bytesToWrite : readBytes; fcc->m_bufferlndex = 0;
DBG_PRINTF( "Copying %lu bytes into read bufferΛn", fcc->m_read Bytes ); memcpy( fcc->m_readBuffer, buffer, ( size_t ) fcc->m_read Bytes ); buffer += fcc->m_readBytes; bytesToWrite -= fcc->m_readBytes; fcc->m_needMoreBytes = FALSE; }
DBG_PRINTF( "Bytes left to write = %lu.\n", bytesToWrite ); if( FCCParse( ( pFAST_CHANNEL_CHANGE ) fee ) != SUCCESS )
{
// Parse failed so shutdown the fast channel change object. ERR_PRINTF( "Failed to parse access unit...dumping.\n" ); return FAILURE; } }
DBG_PRINTF( "FCCWriteToFifo(): Wrote %lu bytes to demuxΛn", *size ); return SUCCESS; }
Il ©METHOD: FCCParse
//
// ©PARAMETERS:
// iPUBLIC : the public interface for the FAST_CHANNEL_CHANGE interface
//
// ©DESCRIPTION:
// This method provides the write functionality for the FAST_CHANNEL_CHANGE // interface.
//
STATUS FCCParse( pFAST_CHANNEL_CHANGE iPUBLIC )
{
STATUS status = SUCCESS; pDEVJOINTERFACE input; ULONG copyBytes, auLength;
ASSERT( iPUBLIC != NULL ); input = iBASEPUBLIC->getlnputlnterface( iBASEPUBLIC, 0 );
ASSERT( input I= NULL ); if( iPRIVATE->m_readBytes == 0 )
{ return SUCCESS;
} while( ( status == SUCCESS ) &&
( ( iPRIVATE->m_readBytes > iPRIVATE->m_bufferlndex ) || ( iPRIVATE->m_neededBytes ===== 0 > || ( iPRIVATE->m_moreToParse == TRUE ) ) )
-26- switch( iPRIVATE->m_syncState )
{ case FCC_FOUR_BYTES: copyBytes = ( iPRIVATE->m_readBytes - iPRIVATE->m_bufferlndex ) >= iPRIVATE->m_neededBytes
? iPRIVATE->m_neededBytes : iPRIVATE->m_readBytes - iPRIVATE->m_bufferlndex; memcpy( &iPRIVATE->m_packetBuffer[iPRIVATE->m_currentPosition], &iPRIVATE->m_readBuffer[iPRIVATE->m_bufferlndex], ( size_t ) copyBytes ); iPRIVATE->m_currentPosition += copyBytes; iPRIVATE->m_bufferlndex += copyBytes; iPRIVATE->m_neededBytes -= copyBytes; if( iPRIVATE->m_neededBytes == 0 )
{ auLength = ( ULONG ) iPRIVATE->m_packetBuffer[O] « 16; auLength += ( ULONG ) iPRIVATE->m_packetBuffer[1] « 8; auLength += ( ULONG ) iPRIVATE->m_packetBuffer[2]; iPRIVATE->m_neededBytes = auLength - 1 ; iPRIVATE->m_syncState = FCC_OTHER_BYTES; iPRIVATE->m_streamld = iPRIVATE->m_packetBuffer[3]; DBG_PRINTF( "FCCParse(): AU length = %lu, stream ID = %02lx\n", auLength, ( ULONG ) iPRIVATE->m_streamld );
} break; case FCC_OTHER_BYTES:
{ pFIFOBUFFER fifo; BOOL block; ULONG writeSize; copyBytes = ( iPRIVATE->m_readBytes - iPRIVATE->m_bufferlndex ) >= iPRIVATE->m_neededBytes
? iPRIVATE->m_neededBytes : ( iPRIVATE->m_readBytes - iPRIVATE->m_bufferlndex ); copyBytes = ( PACKET_BUFFER_SIZE - iPRIVATE->m_currentPosition ) >= copyBytes
? copyBytes : ( PACKET_BUFFER_SIZE - iPRIVATE->m_currentPosition ); memcpy( &iPRIVATE->m_packetBuffer[iPRIVATE->m_currentPosition], &iPRIVATE->m_readBuffer[iPRIVATE->m_bufferlndex], ( size_t ) copyBytes ); iPRIVATE->m_currentPosition += copyBytes; iPRIVATE->m_bufferlndex += copyBytes; iPRIVATE->m_neededBytes -= copyBytes; if( ( iPRIVATE->m_currentPosition == PACKET_BUFFER_SIZE ) || ( iPRIVATE->m_neededBytes == 0 ) )
{ if( iPRIVATE->m_streamld == ( U8 ) VIDEO_STREAM_ID )
{ fifo = iBASEPUBLIC->getFifo( iBASEPUBLIC, 0 );
} else if( iPRIVATE->m_streamld == ( U8 ) AUDIO_STREAM_ID )
{ fifo = iBASEPUBLIC->getFifo( iBASEPUBLIC, 1 );
} else if( iPRIVATE->m_streamld == ( U8 ) CC_STREAM_ID )
{ fifo = iBASEPUBLIC->getFifo( iBASEPUBLIC, 2 );
} else
{
-27- ERR_PRINTF( "FCCParse(): Unknown PES stream ID (%lu) encountered...dumpingΛn", ( ULONG ) iPRIVATE->m_streamld ); iPRIVATE->m_moreToParse = FALSE; iPRIVATE->m_currentPosition = 0; goto next_state; }
ASSERT( fifo I= NULL );
DBG_PRINTF( "FCCParse(): Writing %lu bytes to fifoΛn", iPRIVATE->m_currentPosition ); writeSize = iPRIVATE->m_currentPosition; block = ( input->type( input ) == INTERFACE_CLIENT_DRIVEN ) ? TRUE : FALSE; status = fifo->write( fifo, iPRIVATE->m_packetBuffer, &writeSize, block ); if( status == SUCCESS )
{
DBG_PRINTF( "FCCParse(): Wrote %lu bytes to fifo, stream id %02lx.\n", writeSize, ( ULONG ) iPRIVATE->m_streamld );
} else if( block I= TRUE )
{
ERR_PRINTF( "FCCParse(): Failed to write %lu bytes to fifo, stream id %02lx.\n", writeSize, ( ULONG ) iPRIVATE->m_streamld ); } if( ( block == TRUE ) && ( status I= SUCCESS ) )
{ iPRIVATE->m_moreToParse = TRUE;
} else
{ iPRIVATE->m_moreToParse = FALSE;
} if( status == SUCCESS )
{ iPRIVATE->m_currentPosition = 0;
} } next_state: if( iPRIVATE->m_neededBytes == 0 )
{ iPRIVATE->m_neededBytes = 4; iPRIVATE->m_syncState = FCC_FOUR_BYTES;
} break;
} default:
{
ERR_PRINTF( "FCCParse(): FCC in undetermined stateΛn" ); ASSERT( iPRIVATE->m_syncState < FCC_NUM_SYNC_STATES ); break; } } }
-28- ASSERT( iPRIVATE->m_bufferlndex <= iPRIVATE->m_readBytes ); // sanity check if( iPRIVATE->m_bufferlndex == iPRIVATE->m_readBytes )
{ iPRIVATE->m_needMoreBytes = TRUE;
} return status; }
Il ©METHOD: FCCGetEnumeratedMember
//
// ©PARAMETERS:
// iPUBLIC : FCC interface passed in as a pBUFFERED_STREAMER
// member : identifies enumerated member to query
// value : quaried falue is passed back here
// number : indicates the number of the component that is to be queried
//
// ©RETURNS:
// SUCCESS or FAILURE
//
// ©DESCRIPTION:
// This method will get input streamer FIFO levels, demux FIFO levels, and
// output interface
// FIFO levels for the fastChannelChange component. If the member to be queried is not
// recognized by this method, them the default handler is called (inherited from demux
// streamer).
//
INT FCCGetEnumeratedMember( pBUFFERED_STREAMER iPUBLIC, ULONG member, pLONG value, ULONG number )
{
STATUS status = SUCCESS; ULONG numChannels;
ASSERT( iPUBLIC != NULL ); ASSERT( value != NULL ); switch( member )
{ case FCC_STREAMER_INPUT_BUFFER_LEVEL:
{ pFCC_CHANNEL_NODE node; pBUFFERED_STREAMER streamer; if( number < iPRIVATE->m_channelϋst->numNodes( iPRIVATE->m_channelϋst ) )
{ node = ( pFCC_CHANNEL_NODE ) iPRIVATE->m_channelList->getNodeBylndex( iPRIVATE->m_channelList, number );
ASSERT( node != NULL ); streamer = node->m_streamer; ASSERT( streamer != NULL );
*value = ( LONG ) streamer->bufferLevel( streamer );
} else
-29- {
ERR_PRINTF( "FCC enumerated member query exceeds channel limitΛn" ); status = FAILURE; } } break; case FCC_STREAMER_DEMUX_BUFFER_LEVEL:
{ plO_FIFO_LIST_NODE fifoNode; pDEVJOI NTERFACE interface; if( number < iBASEPRIVATE->m_fifoList->numNodes( iBASEPRIVATE->m_fifoList ) )
{ fifoNode = ( plO_FIFO_LIST_NODE ) iBASEPRIVATE->m_fifoList->getNodeBylndex( iBASEPRIVATE->m_fifoList, number );
ASSERT( fifoNode != NULL ); interface = ( pDEVJOINTERFACE ) fifoNode->m_ioFifo; status = interface->getEnumeratedMember( interface, FIFO_BYTES_AVAILABLE, value );
} else
{
ERR_PRINTF( "FCC enumerated member query exceeds fifo limitΛn" ); status = FAILURE; } } break; case FCC_STREAMER_OUTPUT_BUFFER_LEVEL:
{ pDEVJOINTERFACE interface = ( pDEVJOINTERFACE ) iPRIVATE->mJoService; if( number < iPRIVATE->mJoService->numlnterfaces( iPRIVATE->mJoService ) )
{ status = interface->getEnumeratedMember( interface, FIFOJ3YTES_AVAILABLE, value );
} else
{
ERR_PRINTF( "FCC enumerated member query exceeds fifo limitΛn" ); status = FAILURE; } } break; default: status = iPRIVATE->defaultGetEnumeratedMember( iBASEPUBLIC, member, value, number ); break; } return status; }
***************************************** C EMNΠD C EVXCEΛMΛDPILA Λ DRVY P CΠOΠDCE *******************************************
-30- While the present invention has been described with reference to certain exemplary embodiments, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted without departing from the scope of the invention. For example, various exemplary embodiments of the present invention may interoperate with, for example, a Windows Media 9 video player, or any other available video player, and thus whether a video stream is maintained as a multiplex of video, audio and closed captioning data, or is separated into three data streams, may be adjusted according to the context. Additionally, many modifications may be made to adapt a particular situation or material to the teachings of the invention without departing from its scope.
-31-

Claims

WHAT IS CLAIMED:
1. A method for fast channel change between logical channels within a transport multiplex, comprising:
receiving a channel selection signal identifying a tuned channel;
simultaneously decoding channel data for each channel in a transport multiplex;
reconstructing all access units for each channel and sending them out to a streamer on their respective channel stream in the order that each access unit completes;
outputting channel data from a streamer corresponding to the tuned channel to a media player; and
storing a minimum amount of channel data in a buffer in each streamer for all non-tuned channels.
2. The method of claim 1 , wherein said minimum amount of channel data for a non- tuned channel is sufficient channel data to prevent underflow of the media player upon a selection of said non-tuned channel.
3. The method of claim 3, wherein said minimum amount of channel data is a function of at least one of buffering information present in the video data, media player throughput and packet size for that channel.
-32-
4. The method of claim 1 , further comprising setting said tuned channel is set to a normal mode and setting all other channels are set to a parking mode.
5. The method of claim 1 , wherein channel data for said tuned channel is written to that channel's streamer output, and channel data for all other channels is written to an internal memory in each of said other channel's streamers.
6. The method of claim 1 , further comprising:
receiving a channel selection signal identifying a newly tuned channel; and
first outputting the stored data from the newly tuned channel's streamer to the media player, and then outputting newly received data from said newly tuned channel's streamer to the media player.
7. The method of claim 4, further comprising:
receiving a channel selection signal identifying a new tuned channel;
setting said newly tuned channel to normal mode;
outputting channel data from a streamer corresponding to the newly tuned channel to the media player; and
setting the previously tuned channel to parking mode.
-33-
8. The method of clam 1 , wherein channel data for the tuned channel is written to the streamer output starting at the first entry point the streamer encounters.
9. The method of clam 1 , wherein channel data for the non-tuned channel is written to an internal streamer buffer starting at the first entry point the streamer encounters.
10. The method of claim 1 , further comprising outputting channel data for the tuned channel to a de-multiplexer prior to sending said data to the media player.
11. A computer program product comprising a computer usable medium having computer readable program code means embodied therein, the computer readable program code means in said computer program product comprising means for causing a computer to:
receive a channel selection signal identifying a tuned channel;
simultaneously decode channel data for each channel in a transport multiplex;
reconstruct all access units for each channel and sending them out to a streamer on their respective channel stream in the order that each access unit completes;
output channel data from a streamer corresponding to the tuned channel to a media player; and
-34- store a minimum amount of channel data in a buffer in each streamer for all non-tuned channels.
12. The computer program product of claim 11 , wherein said minimum amount of channel data for a non-tuned channel is sufficient channel data to prevent underflow of the media player upon a selection of said non-tuned channel.
13. The computer program product of claim 12, wherein said minimum amount of channel data is a function of at least one of buffering information present in the video data, media player throughput and packet size for that channel.
14. The computer program product of claim 11 , further comprising setting said tuned channel is set to a normal mode and setting all other channels are set to a parking mode.
15. The computer program product of claim 11 , wherein channel data for said tuned channel is written to that channel's streamer output, and channel data for all other channels is written to an internal memory in each of said other channels streamers.
16. The computer program product of claim 11 , further comprising:
receiving a channel selection signal identifying a newly tuned channel; and
first outputting the stored data from the newly tuned channel's streamer to the media player, and then outputting newly received data from said newly tuned channel's streamer to the media player.
-35-
17. The computer program product of claim 14, further comprising:
receiving a channel selection signal identifying a newly tuned channel;
setting said newly tuned channel to normal mode;
outputting channel data from a streamer corresponding to the newly tuned channel to the media player; and
setting the previously tuned channel to parking mode.
18. The computer program product of claim 11 , wherein channel data for the tuned channel is written to the streamer output starting at the first entry point the streamer encounters.
19. The computer program product of claim 11 , wherein channel data for the non-tuned channel is written to an internal streamer buffer starting at the first entry point the streamer encounters.
20. The computer program product of claim 11 , further comprising outputting channel data for the tuned channel to a de-multiplexer prior to sending said data to the media player.
21. A system for fast channel change between logical channels within a transport multiplex, comprising: a transport de-multiplexer receiving a transport multiplex and outputting a data stream for each logical channel from a plurality of channels in a transport multiplex;
-36- a set of streamers, being one for each logical channel in said plurality of channels, each said streamer having a streamer buffer and being communicably connected to an output data stream from the transport de-multiplexer; a media player communicably connected to the output of each streamer; and a data processor, wherein in operation the data processor receives a channel selection signal identifying a tuned channel, causes channel data from a streamer corresponding to the tuned channel to be output to a media player; and causes a minimum amount of channel data to be stored in a buffer in each streamer for each of the non-tuned channels.
22. The system of claim 21 , wherein each streamer also has a streamer data processor, and the data processor sends signals to said streamer data processors to cause said channel data from a streamer corresponding to the tuned channel to be output to a media player and to cause said minimum amount of channel data to be stored in a buffer in each streamer for each of the non-tuned channels.
23. The method of claim 1 , wherein said storing a minimum amount of channel data in a buffer in each streamer for all non-tuned channels includes continually maintaining video data for each such channel sufficient to prevent underflow on a channel change.
-37-
24. The method of claim 23, wherein said continually maintaining includes discarding non-needed data from said streamer buffer.
25. The method of claim 23, wherein said continually maintaining includes applying a parking algorithm to the data in the streamer buffer.
26. The method of claim 25, wherein said parking algorithm includes:
keeping track of all video entry points;
starting at a latest entry point and working backwards to at most a second entry point, if the amount of video data stored after the entry point is sufficient to prevent underflow on a channel change, the data stored previous to the entry point is discarded.
27. The method of claim 26, wherein said amount of video data stored includes both key frames and non-key frames.
-38-
PCT/US2008/071819 2007-07-31 2008-07-31 Fast channel change between logical channels within a tranport multiplex WO2009018480A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP08796990.3A EP2179550B1 (en) 2007-07-31 2008-07-31 Fast channel change between logical channels within a tranport multiplex
CA2695230A CA2695230C (en) 2007-07-31 2008-07-31 Fast channel change between logical channels within a transport multiplex

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US96278107P 2007-07-31 2007-07-31
US60/962,781 2007-07-31

Publications (1)

Publication Number Publication Date
WO2009018480A1 true WO2009018480A1 (en) 2009-02-05

Family

ID=40304893

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2008/071819 WO2009018480A1 (en) 2007-07-31 2008-07-31 Fast channel change between logical channels within a tranport multiplex

Country Status (4)

Country Link
US (1) US8793750B2 (en)
EP (1) EP2179550B1 (en)
CA (1) CA2695230C (en)
WO (1) WO2009018480A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8862050B2 (en) * 2010-07-30 2014-10-14 Spatial Digital Systems, Inc. Polarization diversity with portable devices via wavefront muxing techniques
US11546653B2 (en) 2020-06-04 2023-01-03 Realtek Semiconductor Corp. Digital broadcast receiving device and related receiving method
TWI757034B (en) * 2020-06-04 2022-03-01 瑞昱半導體股份有限公司 Digital broadcast receiving device and related receiving method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6490001B1 (en) * 1998-01-12 2002-12-03 Sony Corporation Apparatus and method increasing speed of receiving television broadcasts
US20050094733A1 (en) 2003-10-31 2005-05-05 Daniell Piers J. Fast channel surfing
US20060085828A1 (en) * 2004-10-15 2006-04-20 Vincent Dureau Speeding up channel change

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6591013B1 (en) * 1999-03-22 2003-07-08 Broadcom Corporation Switching between decoded image channels
US20040160974A1 (en) * 2003-02-13 2004-08-19 Read Christopher Jensen Method and system for rapid channel change within a transport stream
US7562375B2 (en) * 2003-10-10 2009-07-14 Microsoft Corporation Fast channel change
US7477653B2 (en) * 2004-12-10 2009-01-13 Microsoft Corporation Accelerated channel change in rate-limited environments

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6490001B1 (en) * 1998-01-12 2002-12-03 Sony Corporation Apparatus and method increasing speed of receiving television broadcasts
US20050094733A1 (en) 2003-10-31 2005-05-05 Daniell Piers J. Fast channel surfing
US20060085828A1 (en) * 2004-10-15 2006-04-20 Vincent Dureau Speeding up channel change

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2179550A4 *

Also Published As

Publication number Publication date
EP2179550A1 (en) 2010-04-28
US20090161025A1 (en) 2009-06-25
EP2179550A4 (en) 2011-02-16
CA2695230C (en) 2016-09-13
EP2179550B1 (en) 2013-10-09
US8793750B2 (en) 2014-07-29
CA2695230A1 (en) 2009-02-05

Similar Documents

Publication Publication Date Title
USRE47054E1 (en) System for digital time shifting and method thereof
US10785529B2 (en) Anticipatory video signal reception and processing
US7675876B2 (en) Transport demultiplexor with bit maskable filter
US6078594A (en) Protocol and procedure for automated channel change in an MPEG-2 compliant datastream
US6026506A (en) Concealing errors in transport stream data
US7310423B2 (en) Processing multiple encrypted transport streams
US6763390B1 (en) Method and system for receiving and framing packetized data
US9832515B2 (en) DTS/PTS backward extrapolation for stream transition events
JP2001069106A (en) Stream multiplexing/demultiplexing device
US20030185238A1 (en) System for maintaining original delivery times in transport packets and method thereof
US20100132007A1 (en) Accelerating channel change time with external picture property markings
US7764863B1 (en) System and method for providing trick modes
CA2695230C (en) Fast channel change between logical channels within a transport multiplex
KR20030026590A (en) Method for stream jump
US6804266B1 (en) Method and apparatus for handling private data from transport stream packets
US6731657B1 (en) Multiformat transport stream demultiplexor
US8184660B2 (en) Transparent methods for altering the video decoder frame-rate in a fixed-frame-rate audio-video multiplex structure
JP4366038B2 (en) Television broadcast processing apparatus and control method for television broadcast processing apparatus
US20090150951A1 (en) Enhanced captioning data for use with multimedia content
US7050436B1 (en) Device and method for processing a stream of data
KR100331826B1 (en) Method for indexing picture of broadcasting and Transmitter-receiver TV program
Anderson et al. Design of an MPEG-2 transport demultiplexor core
KR100708377B1 (en) Decoder for multiple video on receiving digital broadcasting
Chen Digital Video Transport System
KR20050067919A (en) Apparatus for decoding video user data in dtv and for the same

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 08796990

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2695230

Country of ref document: CA

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2008796990

Country of ref document: EP