CN109068156A - A kind of performance recording, playback method and device - Google Patents
A kind of performance recording, playback method and device Download PDFInfo
- Publication number
- CN109068156A CN109068156A CN201810935310.0A CN201810935310A CN109068156A CN 109068156 A CN109068156 A CN 109068156A CN 201810935310 A CN201810935310 A CN 201810935310A CN 109068156 A CN109068156 A CN 109068156A
- Authority
- CN
- China
- Prior art keywords
- packet
- player
- recorded file
- timestamp information
- timestamp
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
- H04N21/8547—Content authoring involving timestamps for synchronizing content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/236—Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
- H04N21/23605—Creation or processing of packetized elementary streams [PES]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4331—Caching operations, e.g. of an advertisement for later insertion during playback
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/434—Disassembling 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
- H04N21/4343—Extraction or processing of packetized elementary streams [PES]
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Television Signal Processing For Recording (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
This application discloses a kind of performance recording, playback method and devices, to when user plays recorded file, player can control the rate for reading TS packet in recorded file according to timestamp information, so that when user does the movement of switching track, the TS data flow stored in can caching to avoid player is more, the problem for causing the audio data lost more has reached good user experience effect to realize to the effect of sound and video pictures Fast synchronization.A kind of method of program recording provided by the embodiments of the present application, comprising: obtain the programme signal that current channel plays;Recorded file is generated based on the programme signal, wherein includes the timestamp information of each transport stream TS packet in the recorded file.
Description
Technical field
This application involves information technology field more particularly to a kind of performance recordings, playback method and device.
Background technique
When carrying out individual video video recording (Personal video recorder, PVR) recording to TV programme,
The audio/video information of actual program can be all saved in disk, phase can be extracted from the file of disk when playing recorded file
Audio/video information is closed to play out.Player is to keep video playing smooth, the audio-video number in reading file that can be as fast as possible
Video is shown according to stream.If doing the movement of switching track when playing recorded file, such as English audio is switched to
German audio, because to reacquire the packet identifier (Packet Identifier, PID) after switching track, player can be clear
Sky has read in the data flow of caching.Since the rate for reading audio and video data streams from file is very fast, player caching is read in
Data volume is more, causes the audio data lost more, so that the sound time synchronous with video pictures is longer after switching track,
Bring very bad user experience.
Summary of the invention
The embodiment of the present application provides a kind of performance recording, playback method and device, to record text when player plays
When part, player can control the rate for reading TS packet in recorded file according to timestamp information.
A kind of method of program recording provided by the embodiments of the present application, comprising:
Obtain the programme signal that current channel plays;
Recorded file is generated based on the programme signal, wherein including each transport stream TS packet in the recorded file
Timestamp information.
In this way, obtaining the programme signal that current channel plays;Recorded file is generated based on the programme signal,
In, it include the timestamp information of each transport stream TS packet in the recorded file, to broadcast when player plays recorded file
The rate for reading TS packet in recorded file can be controlled according to timestamp information by putting device.
Optionally, described to be based on the programme signal to generate recorded file including: with scheduled rate to the recorded file
In each TS packet addition preset byte timestamp information, wherein the scheduled rate corresponds to the transmission rate of DTV data flow.
Correspondingly, a kind of program broadcasting method provided by the embodiments of the present application, comprising:
Read the timestamp information in recorded file in transport stream TS packet;By in the TS packet timestamp information and broadcasting
The corresponding timestamp information of device is compared, slow to player has been stored in if the corresponding timestamp of the player is smaller
The TS packet deposited is decoded and stops reading the transport stream in recorded file.
In this way, reading the timestamp information in recorded file in transport stream TS packet;By the time in the TS packet
Corresponding with the player timestamp information of stamp information is compared, if the corresponding timestamp of the player is smaller, to having protected
It is decoded there are the TS packet in player caching and stops reading the transport stream in recorded file, when user plays recorded file
, can be more to avoid the TS data flow stored in player caching when doing the movement of switching track, lead to the audio data lost
More problem has reached good user experience to realize to the effect of sound and video pictures Fast synchronization.
Optionally, if the timestamp in the TS packet is smaller, continue to read TS packet from the recorded file to described
In player caching.
In this way, if the timestamp in the TS packet is smaller, continue to read from the recorded file TS packet to
In the player caching, continue to play current recording program for player.
Optionally, the timestamp information timestamp information corresponding with player by the TS packet is compared it
Before include:
Based on the timestamp information in TS packet initial in the recorded file, to be broadcast described in scheduled rate automatic increase generation
The corresponding timestamp information of device is put, wherein the scheduled rate corresponds to the transmission rate of DTV data flow.
Correspondingly, in device side, a kind of performance recording device provided by the embodiments of the present application, comprising:
First unit, for obtaining the programme signal of current channel broadcasting;
Second unit, for generating recorded file based on the programme signal, wherein include each in the recorded file
The timestamp information of transport stream TS packet.
Optionally, the second unit is specifically used for: being added with scheduled rate to each TS packet in the recorded file
The timestamp information of preset byte, wherein the scheduled rate corresponds to the transmission rate of DTV data flow.
Correspondingly, in device side, a kind of program broadcasting apparatus provided by the embodiments of the present application, comprising:
Reading unit, for reading the timestamp information in recorded file in transport stream TS packet;
Decoding unit, for comparing the timestamp information timestamp information corresponding with player in the TS packet
Compared with if the corresponding timestamp of the player is smaller, the TS packet being stored in player caching being decoded and is stopped
Read the transport stream in recorded file.
Optionally, the decoding unit is also used to: if the timestamp in the TS packet is smaller, being continued from the recording text
TS packet is read in part into player caching.
Optionally, the decoding unit is also used to: when the timestamp information in the TS packet is corresponding with player
Between stamp information be compared before, it is automatic with scheduled rate based on the timestamp information in TS packet initial in the recorded file
Increase and generate the corresponding timestamp information of the player, wherein the scheduled rate corresponds to the transmission rate of DTV data flow.
The embodiment of the present application also provides a kind of calculating equipment comprising memory and processor, wherein the memory
For storing program instruction, the processor is for calling the program instruction stored in the memory, according to the program of acquisition
Execute above-mentioned any method provided by the embodiments of the present application.
The embodiment of the present application also provides a kind of computer storage medium, the computer storage medium is stored with computer
Executable instruction, the computer executable instructions are above-mentioned provided by the embodiments of the present application any for executing the computer
Kind method.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment
Attached drawing is briefly introduced, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present application, for ability
For the those of ordinary skill in domain, without creative efforts, it can also be obtained according to these attached drawings others
Attached drawing.
Fig. 1 is a kind of overall procedure schematic diagram of method of program recording provided by the embodiments of the present application;
Fig. 2 is the idiographic flow schematic diagram of recorded file provided by the embodiments of the present application;
Fig. 3 is a kind of overall procedure schematic diagram of program broadcasting method provided by the embodiments of the present application;
Fig. 4 is the idiographic flow schematic diagram provided by the embodiments of the present application for playing recorded file;
Fig. 5 is a kind of structural schematic diagram of performance recording device provided by the embodiments of the present application;
Fig. 6 is a kind of structural schematic diagram of program broadcasting apparatus provided by the embodiments of the present application;
Fig. 7 is a kind of structural schematic diagram for calculating equipment provided by the embodiments of the present application.
Specific embodiment
The embodiment of the present application provides a kind of performance recording, playback method and device, to play recorded file as user
When, player can be controlled according to timestamp information reads transport stream (Transport Stream, TS) number in recorded file
According to the rate of packet (subsequent can abbreviation TS packet), so that when user does the movement of switching track, can be cached to avoid player
The TS data flow of storage is more, the problem for causing the audio data lost more, to realize quick to sound and video pictures
Synchronous effect has reached good user experience effect.
Specific introduction is given below:
What DTV STB received is a section code stream, referred to as TS stream.TS stream is by Packet one by one
(packet) is constituted, and each packet is made of Packet Header (packet header) and Packet Data (bag data).TS stream is
Bit stream format based on Packet, each packet can be 188 bytes (or 204 bytes, in 188 bytes in the prior art
It added the CRC check data of 16 bytes afterwards, extended formatting is the same).
Audio-video signal forms elementary stream after condensing encoder removes redundancy.This elementary stream is simultaneously
It cannot be stored directly or transmit, it is necessary to it is sent into specific packing device, elementary stream is divided into paragraph by certain format, and
Specific mark character is added, is formed packetized elementary stream (PES).PES packet is the unfixed sound of length, video data packet, then
Audio-video PES packet and auxiliary data are sent into transmission subsystem, one and another length is divided into be fixed as 188 bytes
Small data packets, and be multiplexed to form single TS stream by time multiplex, TS stream reaches receiving end after transmission and carries out
Decoding plays.
The embodiment of the present application according to current condition to being improved on code stream storage organization, when due to increasing in TS packet
Between the length stabbed it is related with the storage size of recorded program, program duration, the embodiment of the present application is original 188 byte
Code flow structure be changed to the code flow structures of such as 192 bytes, the timestamp letter of 4 bytes is added before each 188 byte
Breath;But timestamp length is not limited to 4 bytes, and with the increase of memory space and program duration, timestamp length can also be with
Increase.
The rate of data injection player caching is controlled according to this timestamp information, so that after the operation such as switching track,
It realizes to the effect of sound and video pictures Fast synchronization, has reached good user experience effect.
That is, the embodiment of the present application is in order to make audio-visual synchronization chronergy reach best, it is ensured that on decoder
It is correctly synchronized between relevant primary flow, the buffer area for needing to control one effective player of offer by code rate is (i.e. slow
Deposit) management strategy, prevent that there is a situation where overflows and underflow, and the broadcasting of video code flow to be caused picture occur due to there is buffer area
Caton or video code flow play too fast situation, and (wherein, the overflow may result in the Caton;The underflow may
Cause video playing too fast), therefore the embodiment of the present application increases the timestamp of 4 bytes in TS packet, and uses system clock
The rate rise time of frequency 90KHZ stabs.
A kind of performance recording provided by the embodiments of the present application, playback method, comprising: record the method for program and play program
Method;
First be record program, with set-top box or have the TV of recording function come obtain current channel broadcasting DTV
Program (Digital TV, DTV), the programme signal got are made of many a transport streams, and each transport stream is by multiple TS
Packet is constituted;It is to the timestamp information for increasing such as 4 bytes before TS packet each in the programme signal got, then original
TS packet with 188 bytes is changed to the TS packet of 192 bytes, since the rate of DTV broadcast code flow is 90KHZ, increases timestamp letter
The rate of breath for example can be 90KHZ;Recorded file corresponding with current channel is arrived in TS packet storage with 192 bytes
In.
After having recorded program, subsequent is to play recorded file, literary recording when player reads recorded file for the first time
The timestamp information of transport stream is arranged to player in part, such as the timestamp in recorded file in first TS packet can be set
It sets to player, player is according to the time stamp setting value with the rate automatic increase of identical 90KHZ;
Player will be believed from the timestamp inside the timestamp information and player in the TS packet read in recorded file
Breath is compared:
If the timestamp information in TS packet is smaller, illustrate player to the decoding speed ratio recorded file of recorded file
The rate of the transport stream of middle addition is slow, and therefore, player continues from reading transport stream in recorded file and is added in caching, after
It is continuous that recorded file is played out;
If the timestamp inside player is smaller, illustrate that player is very fast to the solution bit rate of recorded file, for control
The solution bit rate of player processed, player will continue to be decoded the transport stream in current cache, will not continue to read and record
Code stream in file is into caching.
Wherein, player can remove the time in TS packet when from reading TS packet in recorded file and being added in caching
Stab information.
A kind of recording provided by the embodiments of the present application, playing device, comprising: record device and playing device;Record device
It can be set-top box or have the TV of recording function, when carrying out PVR recording to TV programme, currently playing program can be believed
Breath is all stored in a disk, and the programme information saved in disk is a section transport stream;Playing recorded program
When information, the read module of player can read transport stream from disk, and decoder module is decoded the transport stream in caching
And play (decoding is well-known technique, and digital signal is reduced into the process of coding front signal form).
In the device side for recording program, such as in set-top box or there is the television of recording function, referring to Fig. 1, the application is real
A kind of method of program recording of example offer is provided, comprising:
S101, the programme signal that current channel plays is obtained;
For example, can with set-top box or have the TV of recording function come obtain current channel broadcasting programme signal;
Optionally, the channel is television channel;The programme signal includes audio signal and/or vision signal;It is described
Programme signal further includes the relevant code stream information of channel, for example including channel designation, broadcast time etc..That is, the application
The technical solution that embodiment provides can be adapted for the recording of the program of television channel, play, also can be applied to other types
Channel program recording, play.It include audio and view in the TS packet of generation in the embodiment of the present application by taking television channel as an example
Frequency evidence and program related data, the program related data, for example including programm name, broadcast time etc..But the application
The technical solution that embodiment provides is not limited to this, and can be adjusted according to practical application.
S102, recorded file is generated based on the programme signal, wherein include each transport stream TS in the recorded file
The timestamp information of packet.
For example, with set-top box or there can be the TV of recording function to record programme signal, generate and the channel
Corresponding recorded file;
Include multiple transport stream TS packets in the recorded file, includes timestamp information in every TS packet, each TS packet
Length is fixed, and is all made of packet header and bag data;Audio data and video data and program related data are located at not
In same TS packet.For example, to the timestamp for increasing by 4 bytes before every TS packet, i.e., the original TS packet with 188 bytes
It is changed to the TS packet of 192 bytes;
A kind of detailed process of recorded file provided by the embodiments of the present application is as shown in Figure 2, comprising:
The first step, program of televising;
Second step records the digital television programs information that current channel plays;
Third step gives the timestamp for increasing by 4 bytes using every TS packet that programme information generates to believe according to the rate of 90KHZ
Breath;
The TS packet storage with 192 bytes of increase timestamp information is arrived record corresponding with current channel by the 4th step
In file processed.
Correspondingly, in player side, referring to Fig. 3, a kind of program broadcasting method provided by the embodiments of the present application, comprising:
Timestamp information in S201, reading recorded file in transport stream TS packet;
S202, the timestamp information timestamp information corresponding with player in the TS packet is compared, if described
The corresponding timestamp of player is smaller, then is decoded to the TS packet being stored in player caching and stops reading and record text
Transport stream in part.
Optionally, if the timestamp in the TS packet is smaller, continue to read TS packet from the recorded file to described
In player caching.
Optionally, the timestamp information timestamp information corresponding with player by the TS packet is compared it
Before include:
Based on the timestamp information in TS packet initial in the recorded file, to be broadcast described in scheduled rate automatic increase generation
The corresponding timestamp information of device is put, wherein the scheduled rate corresponds to the transmission rate of DTV data flow.
For example, since the rate of broadcast code flow in DTV is 90KHZ, the default growth of the timestamp in every TS packet
The timestamp that rate is also configured as in 90KHZ, such as first TS packet is 00 00 0011, then the timestamp in second TS packet
It is 00 00 00 27, and so on.
When player plays recorded file, the timestamp information that TS packet is first read from recorded file is arranged to broadcasting
Device is synchronized with the timestamp information of player automatic increase;Wherein, the recorded file is the program played using channel
What signal obtained;
Rate inside player is also configured as identical 90KHZ, player according to the timestamp information of the synchronization,
Start automatic increase with the rate of 90KHZ;
The timestamp information timestamp corresponding with player of TS packet in recorded file that player is read is compared
Compared with:
If the timestamp of TS packet is smaller in the recorded file that player is read, continuation is read from the recorded file
TS packet is into player caching;If the corresponding timestamp information of player is smaller, continue to have been saved in player caching
In TS packet be decoded, will not continue to read recorded file in TS packet;Wherein, the TS being stored in player caching
It include the timestamp information newly increased.
That is, control of the player by timestamp information, constantly by TS packet in the recorded file read
Timestamp information and the corresponding timestamp information of player are compared, according to comparison result decision be to continue with read TS packet to delay
In depositing, or temporarily TS packet is not read be to continue with into caching and the TS packet cached is decoded, to effectively control
The speed of buffer cache data and the data volume of caching provide a kind of effective cache management strategy, prevent due to going out
There is a situation where overflow and underflows to lead to that picture Caton occurs in the broadcasting of video code flow or video code flow played for existing buffer area
Fast situation.
A kind of detailed process playing recorded file provided by the embodiments of the present application is as shown in Figure 4, comprising:
The first step, start play recorded file when, from recorded file read transport stream first timestamp, if read
Take less than, just read second, and so on;
Second step, the time stamp setting read from recorded file to player;
Third step, player are according to time stamp setting value according to the rate automatic increase of 90KHZ;
If the timestamp that the 4th step, player read transport stream in recorded file is smaller than player internal time stamp,
Player continues to flow in caching from reading transmission in recorded file;It is recorded if player internal time stamp is read than player
The timestamp of transport stream is small in file, then player continues to be decoded the transport stream in caching.When passing through increased in this way
Between stamp control the rate that player reads TS packet in recorded file so that player will not read excessive TS packet, when with
The movement of switching track is done at family when playing recorded file, be not in due to disposing audio number excessive in player caching
According to leading to audio data and video data synchronization time longer problem.
Correspondingly, apply for a kind of performance recording device that embodiment provides referring to Fig. 5 in the device side for recording program, packet
It includes:
First unit 11, for obtaining the programme signal of current channel broadcasting;
Second unit 12, for generating recorded file based on the programme signal, wherein include every in the recorded file
The timestamp information of a transport stream TS packet.
Optionally, the second unit 12 is specifically used for: being added with scheduled rate to each TS packet in the recorded file
Add the timestamp information of preset byte, wherein the scheduled rate corresponds to the transmission rate of DTV data flow.
Correspondingly, in the device side for playing program, referring to Fig. 6, a kind of program broadcasting apparatus provided by the embodiments of the present application,
Include:
Reading unit 21, for reading the timestamp information in recorded file in transport stream TS packet;
Decoding unit 22, for comparing the timestamp information timestamp information corresponding with player in the TS packet
Compared with if the corresponding timestamp of the player is smaller, the TS packet being stored in player caching being decoded and is stopped
Read the transport stream in recorded file.
Optionally, the decoding unit 22 is also used to: if the timestamp in the TS packet is smaller, being continued from the recording
TS packet is read in file into player caching.
Optionally, the decoding unit 22 is also used to: the timestamp information in the TS packet is corresponding with player
Before timestamp information is compared, based on the timestamp information in TS packet initial in the recorded file, certainly with scheduled rate
Dynamic increase generates the corresponding timestamp information of the player, wherein the scheduled rate corresponds to the transmission rate of DTV data flow.
Correspondingly, in device side, referring to Fig. 7, a kind of calculating equipment provided by the embodiments of the present application, comprising: memory 610
With processor 600;
Wherein, when the calculating equipment is for when recording program, processor 600 to be held for reading the program in memory 610
The following process of row:
Obtain the programme signal that current channel plays;
Recorded file is generated based on the programme signal, wherein including each transport stream TS packet in the recorded file
Timestamp information.
Optionally, described to be based on the programme signal to generate recorded file including: with scheduled rate to the recorded file
In each TS packet addition preset byte timestamp information, wherein the scheduled rate corresponds to the transmission rate of DTV data flow.
When the calculating equipment is for when playing program, processor 600 to be used to read the program in memory 610, under execution
Column process:
Read the timestamp information in recorded file in transport stream TS packet;By in the TS packet timestamp information and broadcasting
The corresponding timestamp information of device is compared, slow to player has been stored in if the corresponding timestamp of the player is smaller
The TS packet deposited is decoded and stops reading the transport stream in recorded file.
Optionally, if the timestamp in the TS packet is smaller, the continuation of processor 600 reads TS from the recorded file
It wraps in the player caching.
Optionally, the timestamp information timestamp information corresponding with player by the TS packet is compared it
Before include:
Based on the timestamp information in TS packet initial in the recorded file, to be broadcast described in scheduled rate automatic increase generation
The corresponding timestamp information of device is put, wherein the scheduled rate corresponds to the transmission rate of DTV data flow.
Wherein, in Fig. 7, bus architecture may include the bus and bridge of any number of interconnection, specifically by processor 600
The various circuits for the memory that the one or more processors and memory 610 of representative represent link together.Bus architecture is also
Various other circuits of such as peripheral equipment, voltage-stablizer and management circuit or the like can be linked together, these are all
It is it is known in the art, therefore, it will not be further described herein.Bus interface provides interface.
Calculating equipment provided by the embodiments of the present application is specifically as follows desktop computer, portable computer, intelligent hand
Machine, smart television, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) etc..The calculating is set
Standby may include central processing unit (Center Processing Unit, CPU), memory, input-output apparatus etc., input
Equipment may include keyboard, mouse, touch screen etc., and output equipment may include display equipment, such as liquid crystal display (Liquid
Crystal Display, LCD), cathode-ray tube (Cathode Ray Tube, CRT) etc..
For different user equipmenies, optionally, user interface 620, which can be external to be inscribed, needs connecing for equipment
Mouthful, the equipment of connection includes but is not limited to keypad, display, loudspeaker, microphone, control stick etc..
Processor 600, which is responsible for management bus architecture and common processing, memory 610, can store processor 600 and is holding
Used data when row operation.
Optionally, processor 600 can be CPU (centre buries device), ASIC (Application Specific
Integrated Circuit, specific integrated circuit), (Field-Programmable Gate Array, scene can compile FPGA
Journey gate array) or CPLD (Complex Programmable Logic Device, Complex Programmable Logic Devices).
Memory 610 may include read-only memory (ROM) and random access memory (RAM), and provide to processor
The program instruction and data stored in memory.In the embodiment of the present application, memory can be used for storing the embodiment of the present application
The program of any the method provided.
Processor is by the program instruction for calling memory to store, and processor is for executing sheet according to the program instruction of acquisition
Apply for any the method that embodiment provides.
The embodiment of the present application provides a kind of computer storage medium, above-mentioned provided by the embodiments of the present application for being stored as
Computer program instructions used in device, it includes the programs for executing above-mentioned either method provided by the embodiments of the present application.
The computer storage medium can be any usable medium or data storage device that computer can access, packet
Include but be not limited to magnetic storage (such as floppy disk, hard disk, tape, magneto-optic disk (MO) etc.), optical memory (such as CD, DVD,
BD, HVD etc.) and semiconductor memory (such as it is ROM, EPROM, EEPROM, nonvolatile memory (NAND FLASH), solid
State hard disk (SSD)) etc..
In conclusion in the embodiment of the present application, to when user plays recorded file, player can be according to timestamp
Information reads the rate of TS packet in recorded file to control, so that when user does the movement of switching track, it can be to avoid broadcasting
The TS data flow stored in device caching is more, the problem for causing the audio data lost more, to realize to sound and video
The effect of picture Fast synchronization has reached good user experience effect.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more,
The shape for the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.)
Formula.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Obviously, those skilled in the art can carry out various modification and variations without departing from the essence of the application to the application
Mind and range.In this way, if these modifications and variations of the application belong to the range of the claim of this application and its equivalent technologies
Within, then the application is also intended to include these modifications and variations.
Claims (12)
1. a kind of method of program recording, which is characterized in that this method comprises:
Obtain the programme signal that current channel plays;
Recorded file is generated based on the programme signal, wherein includes the time of each transport stream TS packet in the recorded file
Stab information.
2. the method according to claim 1, wherein described generate recorded file packet based on the programme signal
It includes: the timestamp information with scheduled rate to each TS packet addition preset byte in the recorded file, wherein described default
Rate corresponds to the transmission rate of DTV data flow.
3. a kind of program broadcasting method, which is characterized in that this method comprises:
Read the timestamp information in recorded file in transport stream TS packet;
Timestamp information timestamp information corresponding with player in the TS packet is compared, if the player is corresponding
Timestamp it is smaller, then to be stored in player caching in TS packet be decoded and stop reading recorded file in transmission
Stream.
4. according to the method described in claim 3, it is characterized in that, continuing if the timestamp in the TS packet is smaller from institute
It states and reads TS packet in recorded file into player caching.
5. according to claim 3 or 4 the methods, which is characterized in that the timestamp information and broadcasting by the TS packet
The corresponding timestamp information of device is compared includes: before
Based on the timestamp information in TS packet initial in the recorded file, the player is generated with scheduled rate automatic increase
Corresponding timestamp information, wherein the scheduled rate corresponds to the transmission rate of DTV data flow.
6. a kind of performance recording device characterized by comprising
First unit, for obtaining the programme signal of current channel broadcasting;
Second unit, for generating recorded file based on the programme signal, wherein include each transmission in the recorded file
Flow the timestamp information of TS packet.
7. device according to claim 6, which is characterized in that the second unit is specifically used for: with scheduled rate to institute
The timestamp information for stating each TS packet addition preset byte in recorded file, wherein the scheduled rate corresponds to DTV data flow
Transmission rate.
8. a kind of program broadcasting apparatus characterized by comprising
Reading unit, for reading the timestamp information in recorded file in transport stream TS packet;
Decoding unit, for the timestamp information timestamp information corresponding with player in the TS packet to be compared, if
The corresponding timestamp of the player is smaller, then is decoded to the TS packet being stored in player caching and stops reading and record
Transport stream in file processed.
9. device according to claim 8, which is characterized in that the decoding unit is also used to: if in the TS packet when
Between stab it is smaller, then continue from the recorded file read TS packet to the player cache in.
10. device according to claim 8 or claim 9, which is characterized in that the decoding unit is also used to:
Before being compared the timestamp information timestamp information corresponding with player in the TS packet, it is based on the record
Timestamp information in file processed in initial TS packet generates the corresponding timestamp letter of the player with scheduled rate automatic increase
Breath, wherein the scheduled rate corresponds to the transmission rate of DTV data flow.
11. a kind of calculating equipment characterized by comprising
Memory, for storing program instruction;
Processor requires 1 to 5 according to the program execution benefit of acquisition for calling the program instruction stored in the memory
Described in any item methods.
12. a kind of computer storage medium, which is characterized in that the computer storage medium is stored with the executable finger of computer
It enables, the computer executable instructions are for making the computer perform claim require 1 to 5 described in any item methods.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810935310.0A CN109068156A (en) | 2018-08-16 | 2018-08-16 | A kind of performance recording, playback method and device |
PCT/CN2019/100827 WO2020035036A1 (en) | 2018-08-16 | 2019-08-15 | Program recording and playback method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810935310.0A CN109068156A (en) | 2018-08-16 | 2018-08-16 | A kind of performance recording, playback method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109068156A true CN109068156A (en) | 2018-12-21 |
Family
ID=64687121
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810935310.0A Pending CN109068156A (en) | 2018-08-16 | 2018-08-16 | A kind of performance recording, playback method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109068156A (en) |
WO (1) | WO2020035036A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020035036A1 (en) * | 2018-08-16 | 2020-02-20 | 青岛海信传媒网络技术有限公司 | Program recording and playback method and device |
CN111131868A (en) * | 2019-12-27 | 2020-05-08 | 国微集团(深圳)有限公司 | Video recording method and device based on player |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006067158A (en) * | 2004-08-26 | 2006-03-09 | Sony Corp | Data processor, data processing method, and data transmission/reception system |
US20070223536A1 (en) * | 2006-03-24 | 2007-09-27 | Toshiba America Information Systems, Inc. | Stream reproducing method and device |
CN101207805A (en) * | 2006-12-20 | 2008-06-25 | 北京汉辰科技有限公司 | Method and system for transmitting flow media by P2P set-top box technique |
CN101986705A (en) * | 2009-07-28 | 2011-03-16 | 晨星软件研发(深圳)有限公司 | Packet sequence restoring controller and method thereof |
CN102868680A (en) * | 2006-11-14 | 2013-01-09 | 株式会社东芝 | Broadcast transport stream distribution system, broadcast transport stream distribution apparatus and distribution method for use in the system |
CN103686333A (en) * | 2013-12-19 | 2014-03-26 | 深圳市九洲电器有限公司 | Audio video protecting method and audio video terminal |
CN103795589A (en) * | 2013-12-26 | 2014-05-14 | 国家广播电影电视总局广播科学研究院 | Channel damage testing method of radio and television transmission distribution network |
CN104216959A (en) * | 2014-08-21 | 2014-12-17 | 浙江宇视科技有限公司 | TS (transport stream) file positioning method and device |
CN107770599A (en) * | 2017-10-27 | 2018-03-06 | 海信电子科技(深圳)有限公司 | A kind of player method, device and the storage medium of the audio frequency and video of recording |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109068156A (en) * | 2018-08-16 | 2018-12-21 | 青岛海信传媒网络技术有限公司 | A kind of performance recording, playback method and device |
-
2018
- 2018-08-16 CN CN201810935310.0A patent/CN109068156A/en active Pending
-
2019
- 2019-08-15 WO PCT/CN2019/100827 patent/WO2020035036A1/en active Application Filing
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006067158A (en) * | 2004-08-26 | 2006-03-09 | Sony Corp | Data processor, data processing method, and data transmission/reception system |
US20070223536A1 (en) * | 2006-03-24 | 2007-09-27 | Toshiba America Information Systems, Inc. | Stream reproducing method and device |
CN102868680A (en) * | 2006-11-14 | 2013-01-09 | 株式会社东芝 | Broadcast transport stream distribution system, broadcast transport stream distribution apparatus and distribution method for use in the system |
CN101207805A (en) * | 2006-12-20 | 2008-06-25 | 北京汉辰科技有限公司 | Method and system for transmitting flow media by P2P set-top box technique |
CN101986705A (en) * | 2009-07-28 | 2011-03-16 | 晨星软件研发(深圳)有限公司 | Packet sequence restoring controller and method thereof |
CN103686333A (en) * | 2013-12-19 | 2014-03-26 | 深圳市九洲电器有限公司 | Audio video protecting method and audio video terminal |
CN103795589A (en) * | 2013-12-26 | 2014-05-14 | 国家广播电影电视总局广播科学研究院 | Channel damage testing method of radio and television transmission distribution network |
CN104216959A (en) * | 2014-08-21 | 2014-12-17 | 浙江宇视科技有限公司 | TS (transport stream) file positioning method and device |
CN107770599A (en) * | 2017-10-27 | 2018-03-06 | 海信电子科技(深圳)有限公司 | A kind of player method, device and the storage medium of the audio frequency and video of recording |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020035036A1 (en) * | 2018-08-16 | 2020-02-20 | 青岛海信传媒网络技术有限公司 | Program recording and playback method and device |
CN111131868A (en) * | 2019-12-27 | 2020-05-08 | 国微集团(深圳)有限公司 | Video recording method and device based on player |
Also Published As
Publication number | Publication date |
---|---|
WO2020035036A1 (en) | 2020-02-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8107786B2 (en) | Systems and methods to modify playout or playback | |
US20080063387A1 (en) | Data Processor | |
CN103024603B (en) | A kind of for solving playing network video time the device and method that pauses in short-term | |
US11722754B2 (en) | Content synchronization using micro-seeking | |
CN101715046B (en) | Electronic apparatus, content reproduction method | |
CN101232611B (en) | Image process apparatus and method thereof | |
US9324365B2 (en) | Multi-language buffering during media playback | |
CN105141973A (en) | Multi-segment media file mosaicing method and system | |
KR100490403B1 (en) | Method for controlling buffering of audio stream and apparatus thereof | |
CN109068156A (en) | A kind of performance recording, playback method and device | |
US6654901B1 (en) | Method of reading multimedia information, an apparatus for reading multimedia information, a storage medium drive device, a transfer medium, an information stream, and a electron device | |
CN107770599A (en) | A kind of player method, device and the storage medium of the audio frequency and video of recording | |
US20220256215A1 (en) | Systems and methods for adaptive output | |
US10306298B2 (en) | Image processing apparatus and control method thereof | |
EP3000235B1 (en) | Data stream processing apparatus | |
CN111131868B (en) | Video recording method and device based on player | |
US10531132B2 (en) | Methods and techniques for reducing latency in changing channels in a digital video environment | |
JP2008153955A (en) | Video recording and reproducing device, and its method for special reproduction | |
JP2009194851A (en) | Image recording and reproducing apparatus | |
JP2009017380A (en) | Recording/reproduction control circuit | |
TWI630603B (en) | Method for accelerated restitution of audio content and associated device | |
JP4861221B2 (en) | RECORDING DEVICE, RECORDING METHOD, VIDEO RECORDING / REPRODUCING DEVICE, AND RECORDING FILE PROCESSING METHOD THEREOF | |
JP2007151140A (en) | Recording and reproducing apparatus | |
JP2010183336A (en) | Information processing apparatus and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181221 |
|
RJ01 | Rejection of invention patent application after publication |