Embodiment
Fig. 1~Figure 4 shows that of the present invention based on the Karaoke VOD system of unidirectional Cable Network network and the embodiment of player method thereof.
The Karaoke VOD system based on unidirectional Cable Network network of present embodiment comprises cable television digital set-top box, hfc plant, data management dispatch server, data broadcasting server and conditional receiving device as shown in Figure 1.The data management dispatch server is connected with the data broadcasting server by its communication interface, and the data broadcasting server is connected with conditional receiving device by the DVB broadcast card and is connected on the cable television digital set-top box through hfc plant.
The cable television digital set-top box support is based on the One-to-All Broadcast formula and support the application that various two-way passbacks (optional) are realized, the RAM configuration requirement of cable television digital set-top box is low, need not the local program of preserving of hard disk, adopt television set or other-end device as display device, be used for receiving digital television signal.The basic function of cable television digital set-top box is receiving the decode of digital television broadcasting, the tuner module received RF signal also down-converts to intermediate-freuqncy signal, carry out the A/D conversion then and become digital signal, send into demodulation module again and carry out the QAM demodulation, output mpeg transport stream serial or parallel data.Demultiplexing module receives mpeg transport stream, and the PES data of therefrom extracting a program out comprise video PES, audio frequency PES.Comprise a descrambling engine in the demultiplexing module, can carry out descrambling to the data of scrambling in transport stream layer and PES layer.Video PES sends into the video decode module, and the MEPG video data is decoded, and outputs to the PAL/NTSC encoder then, is encoded into anolog TV signals, exports through video output circuit again.Audio frequency PES sends into the audio decoder module, and the mpeg audio data are decoded, and output pcm audio data are to PCM decoder, and the stereo or multichannel simulated audio signal of PCM decoder output is exported through audio output circuit.
The data management dispatch server is used for generation and management and user's the use and the management that program broadcasts of programme information, and its hardware configuration is as follows:
| Minimal configuration | Proposed arrangement |
CPU | PIII 700 | Dominant frequency is high more good more |
Internal memory | 256M | 512M |
Hard disk | 40G (5000 first song) | More than the 120G |
Network | The 10M network interface card | More than the 100M network interface card |
Operating system | Window or LINUX | |
Database | POSTGRES | |
The data management dispatch server comprises following modules: 1) user authority management module, the i.e. user authority management of the editor of music program, audit, broadcast; 2) video frequency program administration module promptly is used for the management of program background sound video file; 3) music program administration module promptly is used for the management of program song audio files and corresponding lyrics file; 4) data broadcasting server administration module promptly is used for the data broadcasting server taken turns and broadcasts configuration management; 5) program scheduler module promptly is used for the lyrics file of program song audio files, correspondence and the index information of video file are generated the broadcast program list according to certain data format; Adopt the song segmentation algorithm simultaneously, each first song audio files of input is cut apart and by the algorithm assigns corresponding bandwidth; Generate the playing programs configuration file and with broadcast items list, program background video stream file, and the song audio files after cutting apart is sent on the data broadcasting server.
The data broadcasting server is used for the program that the data management dispatch server generates is transferred to cable television digital set-top box by broadcast card through hfc plant, and its hardware configuration is as follows:
| Minimal configuration | Proposed arrangement |
CPU | PIII 700 | Dominant frequency is high more good more |
Internal memory | 256M or more than | More than the 512M |
Operating system | Window or LINUX | |
Network | The 10M network interface card | More than the 100M network interface card |
Broadcast card | As MediaPump XL 503 cards | |
The broadcast card of data broadcasting server has DVB data broadcast standard form, support four kinds of transmission meanss of DVB definition: data pipe (Data Pipe), data flow (Data Stream), multi-protocols encapsulation (Multiple ProtocolEncapsulation), data/object carousel (Data/Object Carousel).
The player method based on the Karaoke VOD system of unidirectional Cable Network network of present embodiment comprises the following steps:
1) makes song audio files, lyrics file and video file.
The user preserves after the music program file of different audio data format being converted into the data format of Mp2 or Mp1 by the song tools, supports the audio data format of conversion also to comprise other audio format such as CD, MP3, WMA, WAV, RAW.In addition, also can change, directly use Mp3 and other audio format song; Rhythm according to song, the user can be by manual or automatic mode, rhythm according to song, the lyrics text-converted of input is the lyrics file of lyrics data form of playing Karaoka, thereby guarantees on cable television digital set-top box, to realize that the lyrics demonstration and the playing progress rate of song are complementary; The selecting video file is as the background of song.
2) with song audio files, lyrics file and video file input data management dispatch server, its music program administration module manages song audio files and lyrics file, and the video frequency program administration module manages video file; The program scheduler module generates the broadcast program list with certain data format with the index information of song audio files, lyrics file and video file simultaneously.
The partial data structure of music program concordance list
Music program concordance list identification code 8 is fixed as 0x99
For (I=0; I<programme number; I++)
Frequency 32 units are KHZ
Symbol rate 16 6875K
Modulation system 8 QAM64:0x03 define according to SI
Song number 8 is no more than 1255
FOR (J=0:J<song number; J++)
Program request numbers 16 0~1000, unique identification
Long 8 units of song: second
The length of song title 8* song title
The length 8 of singer's title
The length of singer's title 8* singer title
Song classification 8*4 supports 4 types at most simultaneously
Use rate 16 units: divide
}
}
Types of songs number 8
IP Information On Demand content-length 16
IP Information On Demand content description 8* IP Information On Demand length
Maximum balance limits 8 units: unit is defaulted as 150
3) by the program scheduler module, the song audio files that adopts the song segmentation algorithm that each head is sung is cut apart and by the algorithm assigns corresponding bandwidth, is generated the playing programs configuration file.
4) the data broadcasting server is according to the playing programs profile information, cut apart good each several part song audio files, lyrics file, video file and broadcast program list that all needs wheels are broadcast distribute different program streams, by different transmission rates, the mode that adopts one or more background video streams to combine with a plurality of audio program streams transmits, and audio frequency and background video transmit in same transport stream; The data broadcasting server is encrypted after hfc plant is sent on the cable television digital set-top box by conditional receiving device by several pick information that broadcast card transmits.
5) whether top box of digital machine detection user is authorized to, if be authorized to, then data message is obtained in deciphering.Top box of digital machine obtains and the broadcast program list of buffer memory front end broadcasting, according to the tabulation of the index information display program in the broadcast program list for user inquiring, find background audio stream simultaneously after, background music is play in decoding; After the song that user's program request inquires, cable television digital set-top box is decoded by hardware decoding chip or the software of crossing itself after finding background video stream, plays background video stream program; Search wheel simultaneously and broadcast the program stream of first's voice data of this song audio files, this voice data of buffer memory immediately; Meanwhile, search program stream and the follow-up audio data content of buffer memory that wheel is broadcast other a few part voice datas of this song audio files.
6) behind the voice data of the intact first of buffer memory, set-top box is decoded and is begun audio program and background video program and play by itself hardware decoding chip or software, uses captions that the lyrics data file guarantees reality and accompaniment synchronously; Continue the voice data of other several parts of buffer memory simultaneously, up to buffer memory and play complete first song.In addition, can also in songs playing process, realize time-out, F.F., rewind down function.
7) after the complete first song of broadcast, preengage next song of program request as the user, cable television digital set-top box begins buffer memory in advance, and next has cut apart the voice data of good song audio files; Otherwise show the music program tabulation.
The realization of partitioning algorithm and KSMS user management accounting server is the same.
A kind of Karaoke VOD system provided by the invention based on unidirectional digital transmission system, comprise cable television digital set-top box and hfc plant, also comprise " transmitting apparatus ", be following server or module (each server can be installed in separately independently on the physical server, also can be used as shared one or several physical server of module):
1) data management dispatch server promptly is used for the generation and the management of programme information, and the management of program broadcast;
2) user management accounting server (KSMS) promptly is used for user's's (receiving equipment end) the mandate and the management of charge;
3) data broadcasting server (also being broadcast data server) promptly is used for the program that the data management dispatch server generates is transferred to cable television digital set-top box by DVB data broadcasting card through hfc plant;
One, described data management dispatch server is connected with the data broadcasting server by its communication interface, and the data broadcasting server is connected on the cable television digital set-top box through hfc plant by broadcast card.
Two, the application that realized based on One-to-All Broadcast formula transmission medium (and the two-way net (optional) of supporting to have passback, comprise PSTN, ISDN, ADSL, SADSL, Ethernet, Cable Modem, GSM, bilateral networks such as various 3G, CDMA) of top box of digital machine support of the present invention.The RAM configuration requirement of top box of digital machine is low, need not the local program of preserving of hard disk, adopts television set or other-end device as display device, is used for receiving digital television signal.The data management dispatch server is used to generate and manage the song of Karaoke and the song index information of lyrics data and all broadcasts, and can through the down going channel (Downstream) of unidirectional Cable Network network (HFC) or two-way net data information transfer be arrived cable television digital set-top box by the data broadcasting server.Top box of digital machine obtains the tabulation of song index information display program, and after user's program request song, top box of digital machine is searched and play this song of demonstration by terminal equipments such as television sets.A cover Karaoke VOD system of the present invention comprises the data broadcasting server more than one or one, one of data management dispatch server, one of user management accounting server.Each data broadcasting server is connected with affiliated data management dispatch server respectively.
Three, data management dispatch server of the present invention comprises following modules:
1) user authority management module, the i.e. user authority management of the editor of music program, audit, broadcast;
2) background video stream program module promptly is used for the management of program background sound video stream file;
3) music program administration module promptly is used for the management of program song audio files and corresponding lyrics file;
4) data broadcasting server administration module promptly is used for the data broadcasting server taken turns and broadcasts configuration management;
5) program scheduler module promptly is used for the lyrics file of program song audio files, correspondence and the index information of video file are generated the broadcast program list according to certain data format; Adopt the song segmentation algorithm simultaneously, each first song audio files of input is cut apart, and pressed algorithm preassignment corresponding bandwidth; Generate the playing programs configuration file and with broadcast items list, program background video stream file, and the song audio files after cutting apart is sent on the data broadcasting server.
The data management dispatch server generates the broadcast program list by the index information of song, the lyrics and video file that the program scheduler module need be play each data broadcasting server according to certain data format, so that set-top box can be obtained corresponding data information.In the broadcast program list generative process, partitioning algorithm according to song files, automatically the first song audio files of each that will import is divided into several parts of different sizes, be convenient to the cable television digital set-top box buffered audio data, simultaneously according to every first bandwidth of being distributed of singing, automatically realize the data optimization transmission, make the user wait for that the time of beginning played songs is the shortest.
User management accounting server of the present invention promptly is used for user's's (receiving equipment end) the mandate and the management of charge; (KSMS)
The playing programs profile information that data broadcasting server of the present invention generates according to the data management dispatch server, all needs are taken turns background video stream file, the programme of broadcasting (comprising lyrics data), and cut apart good song each several part audio data file and distributed different program streams, broadcast by continual wheel of different transmission rates, be transferred to top box of digital machine by hfc plant, that transmission is adopted is DVB standard (or ATSC, Japanese ISDB).Video transmits with DVB data broadcasting mode non real-time with document format data with MPEG-2 stream mode real-time Transmission, sound.The broadcast card of data broadcasting server of the present invention has DVB data broadcast standard form, support PES and four kinds of data transfer modes of DVB definition: data pipe (Data Pipe), data flow (Data Stream), multi-protocols encapsulation (Multiple Protocol Encapsulation), data/object carousel (Data/Object Carousel).MPEG-1, MPEG-2 or MPEG-4 standard are adopted in the coding of sound, video frequency program, compression.Broadcast data server of the present invention dynamically receives external information (as charging information, authorization message, for friend's IP Information On Demand etc.) by network, and uses bandwidth reserved to broadcast, and dynamically broadcasts the information that receives.
Whether four, have the right to use for detecting the user, the present invention comprises also and is used for conditional receiving device that the transport stream that the data broadcasting server sends is encrypted that this device is connected with the data broadcasting server, and is connected with cable television digital set-top box through hfc plant.Transport stream with the transmission of data broadcasting server, after conditional receiving device (Irdeto, the Union of Central Vision, Yongxin are with side, Conax, NDS, CA such as Canal+, Nagra) encryption, be transferred to top box of digital machine, whether set-top box detects the user and is authorized to, if be authorized to, then sound, video data are obtained in deciphering.
System also provides the encryption method to source data in addition, and receiving equipment detects the user after be authorized to, and is decrypted with corresponding decipherment algorithm.
Five, for one group of Karaoke program, because each program all comprises corresponding video and sound, " transmitting apparatus " incites somebody to action:
1) each video is all play needed transmission speed sequential delivery by the actual normal decoder of receiving equipment on specific transmission bandwidth.
2) sound data file of each program then all is divided into some segments by certain algorithm, each segment is all broadcast (uninterruptedly sending repeatedly) independently being sent out simultaneously and taking turns on the transmission bandwidth separately, and separately independently transmission bandwidth come out by certain algorithm accurate Calculation, the transmission speed of each segment then is by the decision of different separately transmission bandwidth.Therefore the transmission and being transmitted on the speed of video of sound data file are nonsynchronous, and sound data file is transmitted by non real-time, non-order and discrete mode.
Seven, the player method of described Karaoke VOD system based on unidirectional digital transmission system provided by the invention comprises the following steps:
1) make song audio files, lyrics file and video file, the user makes song by the song tools becomes the song audio files with audio data format; According to the rhythm of song, be lyrics file with Karaoke lyrics data form with the lyrics text-converted of importing; The selecting video stream file is as the background video of song;
Song is made: the user preserves after the music program file of different audio data format being converted into the data format of MP1, MP2 or MPEG2 by the song tools, supports the audio data format of conversion also to comprise other audio format such as CD, MP3, MPEG4, WMA, WAV, Real, RAW.In addition, also can change, directly use and send MP3, MPEG4, Real, WMA and other audio format song.After program receiving apparatus is received the song of these audio formats, but direct decoding is play or the song of these audio formats is converted to the song of MP1, MP2, MPEG2 audio frequency or other audio formats after again decoding play.
The lyrics are made: the user can be by manual or automatic mode, rhythm according to song, the lyrics text-converted of input is the data format of the lyrics of playing Karaoka, thereby guarantees on cable television digital set-top box, to realize that the lyrics demonstration and the playing progress rate of song are complementary.
2) with song audio files, lyrics file and video file input data management dispatch server, its music program administration module manages song audio files and lyrics file, and the video frequency program administration module manages video file; The program scheduler module generates the broadcast program list with certain data format with the index information of song audio files, lyrics file and video file simultaneously;
3) by the program scheduling administration module, the song audio files that adopts the song segmentation algorithm that each head is sung is cut apart and by the algorithm assigns corresponding bandwidth, is generated the playing programs configuration file;
4) the data broadcasting server is according to the playing programs profile information, all needs are taken turns background video stream file, the broadcast program list of broadcasting and cut apart the good different program stream of each several part song audio files distribution, by different transmission rates, be transferred to cable television digital set-top box through hfc plant by broadcast card;
5) top box of digital machine obtains and the broadcast program list of buffer memory front end broadcasting, shows the music program tabulation for user inquiring according to the index information in the broadcast program list, find background audio stream simultaneously after, background music is play in decoding; After the song that user's program request inquires, after cable television digital set-top box finds background video stream, carry out real-time decoding, play background video stream program by itself hardware decoding chip or software; Find simultaneously after wheel broadcasts the program stream of first's voice data of this song audio files, immediately this voice data of buffer memory; Meanwhile, search program stream and the follow-up audio data content of buffer memory that wheel is broadcast other a few part voice datas of this song audio files;
6) behind the voice data of the intact first of buffer memory, set-top box is decoded to audio program and is begun and play by itself hardware decoding chip or software, uses captions that the lyrics data file guarantees reality and accompaniment synchronously; Continue the voice data of other several parts of buffer memory simultaneously, up to buffer memory and play complete first song.
Eight, player method of the present invention also can be done following further improvement: the lyrics file that comprises one or several video flowing, a plurality of audio stream and audio stream correspondence in the described step 4) on each transport stream, video flowing can combine with a plurality of audio streams and corresponding lyrics file, forms a plurality of different Karaoke programs.
The audio-video document separated transmission is characterized in that, for one group of program:
1) shared (or several) video flowing of a plurality of Karaoke sound forms a plurality of Karaoke programs.
2) Karaoke captions and sound are done Synchronous Processing by song rhythm, and captions and video flowing are done dynamic stack on receiving equipment.Captions and video flowing are not done Synchronous Processing.
3) each Karaoke sound can be set a corresponding scope with the corresponding relation of background video stream, at random correspondence or category correspondence.The background video stream of also predeterminable good each Karaoke sound correspondence.
Nine, the data message of data broadcasting server transmission is encrypted after hfc plant is sent on the cable television digital set-top box by conditional receiving device; Whether set-top box detection user is authorized in the described step 5), if be authorized to, then data message is obtained in deciphering.
Player method completing steps 6 of the present invention) play complete first song after, preengage next song of program request according to the user, cable television digital set-top box begins buffer memory in advance, and next has cut apart the voice data of good song audio files.In addition, can also in songs playing process, realize time-out, F.F., rewind down function.。
The data format of the song audio files in the described step 5) is Mp1, Mp2 or Mp3, WMA.The data format of the song audio files of the song tools support input in the described step 1) is CDA, WMA, WAV, RAW, AC3, AVI, MID or DAC.
Ten, cut apart audio file according to following partitioning algorithm in the step 3) of player method of the present invention:
A. the playback rate of setting audio file is PS, the reproduction time of audio file is PT, total transmission bandwidth of audio file is Bw, total audio file file division piece number is that 2 (or polyliths) and every block size are respectively Head, Body, cut apart back Head, the size of the download transmission rate of Body all is Tp, and the size of set-top box buffer memory audio file is CASHE;
B. Theoretical Calculation is according to as follows: the size of audio file is PS*PT, i.e. Head+Body=PS*PT; When the total transmission bandwidth Bw=Tp*2 of audio file, the download time of Head is the shortest; The download time of Head is Head/Tp, and the reproduction time of Head is Head/PS, and the download time of Body is Body/Tp, Head/Tp+Head/PS>=Body/Tp; Big or small CASHE=Head+ (Head/Tp) the * PS of set-top box buffer memory audio file;
C. preestablish the available minimal cache of the whole network user side " Karaoke "; Utilize the program scheduling administration module of data management dispatch server to draw the playback rate PS of this song audio files and the reproduction time length PT of audio file according to automatic identification of song files; The big or small CASHE of reader top box buffer memory audio file finds the solution above-mentioned inequation Head/Tp+Head/PS>=Body/Tp by exhaust algorithm then;
D. calculate: the Tp minimum value that meets the demands, the value of Head, Body, Bw value, the download time of Head;
E. according to result calculated, use redundancy factor suitably to increase Tp and corresponding Bw, cut apart audio file according to result calculated at last and play according to Tp.
11, customization interface and application service
Ben Kala OK VOD system customizes interface and application service for digital TV set-top box provides the multi-user.For example, each member of family can register independent user, has separately interface (as the TV background), function and configuration surroundings, and child can be prevented from watching specific program;
This service pushes user profile, customization interface and application message by datacasting, be the service that customization interface and application are provided of the set-top box that do not possess retransmission function
Can register a plurality of users on the same set-top box, can switch mutually between these users, but can only have a user using at one time; Same user can register on many set-top box, makes things convenient for the user going on business or whilst on tour obtains same service;
A default subscribers all is provided when dispatching from the factory on every set-top box, and this user's unsuppressible-suppression conveniently can normally use in the situation set-top box that does not have the multi-user to customize interface and application service.The application that default subscribers provides is customized by Carrier Requirements when the maker top box by set-top box manufacturer;
The application that provides to set-top box is divided into two kinds, and is public and privately owned, and common application can allow all customization, and privately owned application can only provide to designated user;
User's application data base
This server record storing subscriber information, customization interface and application message and various for the application of downloading,
For www server and user's applying broadcasting server provide data; In time variation is passed to user's applying broadcasting server so that upgrade broadcasted content and service accurately is provided in time.
Can be for the bulletin of down load application
All common application form with webpage in information broadcast provides, and lists the details of each common application, and custom operation step how.
The www service
This server possesses two parts function: allow the user to carry out user's Register Cancel and customized application by Internet; Allow individual or set-top box application developer to upload application is provided;
Permission is obtained user profile, application message, customization application message and various for the application of downloading by the set-top box that possesses retransmission function by Internet.
By the SMS gateway
This service possesses two parts function:
Allow the user to carry out user's Register Cancel, customized application and application user credit volume by SMS;
Regularly announce the user about the information of paying the fees, and use newly-increased or updated information (comprising other value-added service information);
12, KSMS user management accounting server adopts following charge method:
Adopt mode artificial or input automatically that data message (KTV charging information or user are by note, and the fixed line mode will be requesting song information, authorization message or the KTV charging information of other people requesting song) is transferred to KSMS management accounting server.After the process checking is errorless, the KSMS system with these information in certain hour (as 24 hours), every certain interval of time (as 10 minutes), send packets of information (or mail) or by all frequencies by EPG or CA system in the KTV playing programs, the data of intercutting these information flow to the HFC net, after guaranteeing that top box of digital machine receives these packets of information (or mail) or monitors program stream and obtain data, at its FLASH or EEPROM, record requesting song information on charge Smartcard or the CA Smartcard, information such as authorization message or charging information, and when top box of digital machine consumption KTV or various application, make respective handling, thereby reach the purpose of charging.
The charge method of user's program request song:
1, charge in due order, the each program request one first song of user, the program request expense of this song of deduction in set-top box remaining sum record.
1) sends the charging information or the authorization message of certain amount of money to designation number program receiving apparatus or charge Smartcard or CA Smartcard with broadcast mode.
2) the digital program receiving equipment on its FLASH or EEPROM, charge Smartcard or CASmartcard minute book machine remaining sum or by the record following three (or wherein wantonly two records) proofread and produce remaining sum mutually:
A, accumulative total are supplemented volume, b, cumulative consumption volume, c, remaining sum with money.
The accumulative total volume of supplementing with money-cumulative consumption volume=remaining sum
3) in the application that must charge, have unit price information.To on remaining sum, reduce unit price when each receiving terminal uses this application, and change the respective record parameter.
4) to appointed program or program set or be applied in when allowing the arbitrarily used mandate of user for bag in the time range of appointment and authorize, program or application in authorizing when the user uses bag do not go to reduce above remaining sum.
2, establish " the remaining sum upper limit " in the charging method of pay-per-view, it is characterized in that: for avoiding risk, remaining sum is provided with the upper limit, and the behavior of supplementing with money that surpasses the upper limit will be rejected.
3, program receiving apparatus method for addressing.The addressing of designation number program receiving apparatus, the string of available receiving equipment number, CA SmartCard number or its are combined as its address.Use for ease of the user, make this address corresponding with user's telephone number, the user also can use the address of telephone number as program receiving apparatus easily.
4, the method for program transmitting apparatus message loop transmission.In the environment of unilateral network, for preventing receiving device former thereby supplementing with money of missing that sending ending equipment sends or mandate, the note information such as initialization of requesting a song for the friend because of start not etc., transmitting terminal is taked repeatedly to circulate in the certain hour scope and is sent above-mentioned information, after as long as receiving terminal is received primary information, can ignore later duplicate message automatically.
5, flat rate system, the user can be in the monthly payment term of validity any OK a karaoke club Ok of program request song, do not calculate the expense of every first song separately.
6, bag the time be about to expired or remaining sum not for a long time, can be by television short message or SMS notice subscriber payment
The charging method of Karaoke VOD system, NVOD, VOD, the information inquiry that can be applicable to digital transmission system used, stock, mail, recreation, be the various charges that need the application of charging such as friend's requesting song, some program, PPV, IPPV, digital television text-message.
The present invention has following beneficial effect:
(1) under unidirectional digital transmission system environment, need not just can realize user's program request Kara OK songs function at any time by return path;
(2) hardware configuration is few, and connected mode is easy;
(3) song audio files is cut apart and by the algorithm assigns corresponding bandwidth, the data broadcasting server is taken turns broadcast configuration, be convenient to the cable television digital set-top box buffered audio data, make the user wait for that the time of broadcast is the shortest.
(4) background video streams are corresponding with a plurality of OK a karaoke club Ok audio programs, thereby save transmission bandwidth.
(5) provide the charging platform of a practicality for the various application of unidirectional digital transmission system.
Standard declaration:
MP1:MPEG1 Layer-I
MP2:MPEG1 Layer-II
MP3:MPEG1 Layer-III
MP4:MPEG-4 Audio
MPEG1 Video(ISO/IEC 11172-2)
MPEG2 Video(ISO/IEC 13818-2)
MPEG1 Audio(ISO/IEC 11172-3)
MPEG2 Audio(ISO/IEC 13818-3)
MP4-SA:MPEG-4 Structured Audio