CN109729318A - Video data playback process method, apparatus, computer equipment and storage medium - Google Patents

Video data playback process method, apparatus, computer equipment and storage medium Download PDF

Info

Publication number
CN109729318A
CN109729318A CN201910011469.8A CN201910011469A CN109729318A CN 109729318 A CN109729318 A CN 109729318A CN 201910011469 A CN201910011469 A CN 201910011469A CN 109729318 A CN109729318 A CN 109729318A
Authority
CN
China
Prior art keywords
video data
request
playback
rtp
video
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.)
Granted
Application number
CN201910011469.8A
Other languages
Chinese (zh)
Other versions
CN109729318B (en
Inventor
罗永�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Infinova Ltd
Original Assignee
Shenzhen Infinova Ltd
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 Shenzhen Infinova Ltd filed Critical Shenzhen Infinova Ltd
Priority to CN201910011469.8A priority Critical patent/CN109729318B/en
Publication of CN109729318A publication Critical patent/CN109729318A/en
Application granted granted Critical
Publication of CN109729318B publication Critical patent/CN109729318B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

This application involves a kind of video data playback process method, apparatus, computer equipment and storage mediums, wherein this method comprises: the request of video data playback process is obtained, including playback duration information in the request of video data playback process;RTSP playback request is sent according to playback duration information and receives the decoded information returned, and according to the decoded information initializing decoder of return;It sends RTSP playing request and receives the RTP data flow returned, and parse the extended field in RTP data flow and be expanded the parsing result of field;Judge whether the coding mode of RTP data flow changes according to the parsing result of extended field;If the coding mode of RTP data flow changes, new RTSP playback request is initiated using the temporal information in the parsing result of extended field as new request play time.The present invention realizes the data readback for solving the problems, such as the mixing of various video format, to guarantee the continuity of entire replayed section, improves the convenience that user uses.

Description

Video data playback process method, apparatus, computer equipment and storage medium
Technical field
The present invention relates to video data processing technology fields, more particularly to a kind of video data playback process method, dress It sets, computer equipment and storage medium.
Background technique
Currently, video monitoring is the important technical of review on management of modern cities, video monitoring camera is that video monitoring is answered Key equipment in, monitor camera generally have SD card store function, for head end video data are locally stored. In a set of perfect monitoring application system, video camera can connect special storage server, for storing HD video data, SD Block the meaning being locally stored to be, when storage server failure, power-off, transmission channel Network Abnormal, it is as view Frequency according to storage alternate channel;Or in some small application systems, for cost consideration, without special storage server, The then key means as video data recording are locally stored in the SD card of front-end camera;For some merits or critical event, The playback of data that SD card would generally directly be transferred, serves the management of modern city.
With the development of chip technology, in the conventional technology, mainstream video camera all supports H264, H265 Video coding type Absolute coding, and open and freely configure use to user, user can arbitrarily more by management platform software or privately owned collocation channel Change the Video coding type of video camera;After the video code model of video camera changes, the video record that is stored in SD card Format will also change, and the data mixing of various video format will be stored so as to cause SD card;Different video formats Decoding corresponds to different decoding processes, and the video data of parsing H265 is removed with the decoding library of H264, will lead to decoding failure, depending on Frequency can not normally decode display;It, can only be just if user requests the time segment limit played to include various video formatted data First section video data is often played, when encountering different video formatted data, then decoding can be abnormal, leads to replayed section failure below.
Summary of the invention
Based on this, it is necessary to which in view of the above technical problems, providing one kind may be implemented mixed video type coding data company Video data playback process method, apparatus, computer equipment and the storage medium of continuous playback.
A kind of video data playback process method, which comprises
The request of video data playback process is obtained, includes playback duration information in the video data playback process request;
RTSP playback request is sent according to the playback duration information, receives the decoded information of return, and return according to described The decoded information initializing decoder returned;
RTSP playing request is sent, receives the RTP data flow of return, and parse the extended field in the RTP data flow The parsing result for the field that is expanded;
Judge whether the coding mode of the RTP data flow changes according to the parsing result of the extended field;
If the coding mode of the RTP data flow changes, by the time in the parsing result of the extended field Information initiates new RTSP playback request as new request play time.
The step of being stored in one of the embodiments, the method also includes video data acquiring:
Acquire video data;
Header information is added to collected video data and is locally stored to obtain video data, the head Information includes: type of coding, frame per second and video time information.
The step of the method also includes video data assemblings in one of the embodiments:
Obtain the request of video data playback process;
The URL parsed in the video data playback process request obtains playback duration information;
From be locally stored it is middle obtain corresponding with playback duration information video data, and pass through SDP agreement time Multiple corresponding decoded information;
It reads Video data and encapsulates RTP data packet, and RTP data are obtained by RTP package to the video data Stream.
It is described in one of the embodiments, that the step of RTP data flow is obtained by RTP package to the video data Suddenly include:
When the type of coding for detecting the video data changes, insertion contains only head among delta data section The RTP packet of information;
RTP data flow is obtained to the header information addition extended field of the RTP packet;The extended field includes: C word Section, T field and NTP time;
Wherein, the C field is used to indicate the type of coding variation of video data, and the T field is for indicating view Frequency terminates according to playback request, and the NTP time represents the time point of this paragraph format video data outage.
It is expanded the parsing of field parsing the extended field in the RTP data flow in one of the embodiments, As a result after the step of further include:
Judge T field in the extended field whether set;If then stopping taking stream;
If otherwise judge C field in the extended field whether set;If then stopping decoding;
If otherwise obtaining the NTP time in the extended field as break period point;
New RTSP playback request is initiated using the break period point as new request play time.
The step of being sent in one of the embodiments, the method also includes video data:
Judge whether the type of coding of video data changes;
It is inserted into band stream end mark NALU frame if the type of coding of the video data changes, and sends stream knot Beam frame;
If the video data type of coding there is no variation if send RTP data flow.
The step of being decoded in one of the embodiments, the method also includes video data readback:
Receive the video data;
Judge whether to receive the stream end frame;
If then destroying current decoding parametric and waiting new decoding parametric;
If being otherwise decoded broadcasting to the video data received.
A kind of video data playback process device, described device include:
Module is obtained, the acquisition module is requested for obtaining video data playback process, at the video data playback It include playback duration information in reason request;
Initialization module, the initialization module are used to send RTSP playback request according to the playback duration information, connect The decoded information returned is received, and according to the decoded information initializing decoder of the return;
Parsing module, the parsing module receive the RTP data flow of return, and parse for sending RTSP playing request Extended field in the RTP data flow is expanded the parsing result of field;
Judgment module, the judgment module are used to judge the RTP data flow according to the parsing result of the extended field Coding mode whether change;
Request module, if coding mode of the request module for the RTP data flow changes, by the expansion The temporal information opened up in the parsing result of field initiates new RTSP playback request as new request play time.
A kind of computer equipment can be run on a memory and on a processor including memory, processor and storage The step of computer program, the processor realizes above-mentioned any one method when executing the computer program.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The step of above-mentioned any one method is realized when row.
Above-mentioned video data playback process method, apparatus, computer equipment and storage medium are returned by obtaining video data Processing request is put, includes playback duration information in the video data playback process request;It is sent out according to the playback duration information RTSP playback request is sent to receive the decoded information returned, and according to the decoded information initializing decoder of the return;It sends RTSP playing request receives the RTP data flow returned, and parses the extended field in the RTP data flow and be expanded field Parsing result;Judge whether the coding mode of the RTP data flow changes according to the parsing result of the extended field;If The coding mode of the RTP data flow changes, then using the temporal information in the parsing result of the extended field as new Request play time initiate new RTSP playback request.The present invention realizes the data readback for solving the mixing of various video format Problem improves the convenience that user uses to guarantee the continuity of entire replayed section.
Detailed description of the invention
Fig. 1 is the application scenario diagram of video data playback process method in one embodiment;
Fig. 2 is the flow diagram of video data playback process method in one embodiment;
The flow diagram for the step of Fig. 3 is video data acquiring storage in one embodiment;
The flow diagram for the step of Fig. 4 is video data assembling in one embodiment;
Fig. 5 is that process the step of obtaining RTP data flow by RTP package to video data in one embodiment is shown It is intended to;
Fig. 6 is that extended field in one embodiment in parsing RTP data flow is expanded the parsing result of field Flow diagram after step;
Fig. 7 is the flow diagram for the step of video data are sent in one embodiment;
The flow diagram for the step of Fig. 8 is video data readback decoding in one embodiment;
Fig. 9 is that RTSP plays back signaling control figure in one embodiment;
Figure 10 is RTP in one embodiment and the schematic diagram of extension;
Figure 11 is the schematic diagram that insertion represents the null frame that stream terminates in one embodiment;
Figure 12 is the flow chart that process is locally stored in video acquisition in one embodiment;
Figure 13 is the flow chart that video data assembles transmission process in one embodiment;
Figure 14 is the flow chart of playback request and Auto-reconnect process in one embodiment
Figure 15 is the flow chart of playback decoding display process in one embodiment;
Figure 16 is the structural block diagram of video data playback process device in one embodiment;
Figure 17 is the structural block diagram of video data playback process device in another embodiment;
Figure 18 is the structural block diagram of video data playback process device in further embodiment;
Figure 19 is the structural block diagram of video data playback process device in another embodiment;
Figure 20 is the structural block diagram of video data playback process device in another embodiment;
Figure 21 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and It is not used in restriction the application.
Video data playback process method provided by the embodiment of the present invention may be used on front-end camera as shown in Figure 1 In playback system.The front-end camera playback system includes: that video acquisition module, SD card memory module, transmission module, data connect Receive module, playback management module and decoding display module.This method mainly solves, and there are hybrid coding categorical datas in video recording The problem for causing decoding abnormal.Front-end camera playback system is as shown in Figure 1, the method proposed through the invention can make data It completely can smoothly play back, the quick disconnection and reconnection mechanism when being related to data format variation can break rapidly when data format changes Connection is opened, and re-establishes new connection, ensure that the continuity of broadcasting.
In one embodiment, it as shown in Fig. 2, providing a kind of video data playback process method, applies in this way It is illustrated for front-end camera playback system in Fig. 1, this method comprises:
Step 202, the request of video data playback process is obtained, includes that playback duration is believed in the request of video data playback process Breath;
Step 204, RTSP playback request is sent according to playback duration information, receives the decoded information of return, and according to returning The decoded information initializing decoder returned;
Step 206, RTSP playing request is sent, receives the RTP data flow of return, and parse the extension in RTP data flow Field is expanded the parsing result of field;
Step 208, judge whether the coding mode of RTP data flow changes according to the parsing result of extended field;
Step 210, if the coding mode of RTP data flow changes, by the time in the parsing result of extended field Information initiates new RTSP playback request as new request play time.
Specifically, with reference to Figure 12-15, which includes: to be adopted by video acquisition module The stream that process, the transmission module that process, the transmission module of collection data assemble video data send video data Journey, data reception module carry out the process of data parsing, playback management module and carry out playback and automatic weight according to parsing result Even process and decoding display module are used to play back the process of decoding display.
Firstly, video acquisition module acquire video data, and to video data increase header information, record type of coding, The information such as frame per second, video time.Video transmission module reads SD card memory module data, by video data by RTP package, and RTP head is extended, the time on the wall of Video data is increased.
In a specific embodiment, it after the variation of detection video record type of coding, is inserted among delta data section The new RTP packet for containing only information, this RTP header information are extended, increase field C for indicate video recording encode class Type variation increases T field for indicating that entire playback request terminates, and the NTP time in extended field represents this paragraph format view The ending of frequency evidence, at the beginning of this is the time point interrupted namely format video data.
Data content is added in transmission module in the RTP packet being newly inserted into, and insertion band stream end mark NALU frame, value is according to before The coded format of camera data is held, specifically, in conjunction with RFC standard, H264 value 11, H265 value is 37.
After data reception module detects the NALU frame with stream end mark, the NTP temporal information in RTP extension header is parsed, Parsing C field changes to obtain with the presence or absence of video code model, the playback management module of proactive notification client when variation, and NTP temporal information is passed into playback management module.
Playback management module receives the notification message of data reception module, and asks according to the NTP time of transmitting as new Play time is sought, initiates new RTSP request rapidly, RTSP interactive process can interact decoded information again, continue to complete subsequent Playback guarantees the continuity played.
If data reception module parses RTP extension T field when being 1, the end that entirely plays back is represented, notifies playback management Module sends the teardown message of RTSP, stops entire replayed section.
In the present embodiment, by obtaining the request of video data playback process, include in the request of video data playback process Playback duration information;RTSP playback request is sent according to playback duration information and receives the decoded information returned, and according to return Decoded information initializing decoder;It sends RTSP playing request and receives the RTP data flow returned, and parse in RTP data flow Extended field is expanded the parsing result of field;The coding mode of RTP data flow is judged according to the parsing result of extended field Whether change;If the coding mode of RTP data flow changes, by the temporal information in the parsing result of extended field New RTSP playback request is initiated as new request play time.The present embodiment, which realizes, solves the mixing of various video format Data readback problem improves the convenience that user uses to guarantee the continuity of entire replayed section.
In one embodiment, a kind of video data playback process method is provided, as shown in figure 3, method in this method Further include the steps that video data acquiring stores:
Step 302, video data is acquired;
Step 304, header information is added to collected video data and is locally stored to obtain video data, Header information includes: type of coding, frame per second and video time information.
Specifically, with reference to Figure 12, firstly, video acquisition module acquires video data by camera.Video data is sealed Dress, the information such as storage time and coded format, and the video data after encapsulation is locally stored in SD card.
In the present embodiment, the acquisition to video data is realized, and is increased accordingly in collected video data The information such as type of coding and video time, the process for subsequent realization video playback and reconnection have carried out data preparation.
In one embodiment, a kind of video data playback process method is provided, as shown in figure 4, also wrapping in this method The step of including video data assembling:
Step 402, the request of video data playback process is obtained;
Step 404, the URL in the request of parsing video data playback process obtains playback duration information;
Step 406, from be locally stored it is middle obtain corresponding with playback duration information video data, and pass through The corresponding decoded information of SDP Protocol answers;
Step 408, it reads Video data and encapsulates RTP data packet, and RTP is obtained by RTP package to video data Data flow.
In one embodiment, with reference to Fig. 5, wherein obtaining the step of RTP data flow by RTP package to video data Suddenly include:
Step 502, when detect video data type of coding change when, among delta data section insertion containing only There is the RTP packet of information;
Step 504, RTP data flow is obtained to the header information addition extended field of RTP packet;Extended field includes: C word Section, T field and NTP time;
Wherein, C field is used to indicate the type of coding variation of video data, and T field is for indicating that video data returns Putting request terminates, and the NTP time represents the time point of this paragraph format video data outage.
In one embodiment, with reference to Fig. 6, the extended field in parsing RTP data flow is expanded the parsing of field As a result after the step of further include:
Step 602, judge T field in extended field whether set;If so then execute step 604, if otherwise executing step Rapid 606;
Step 604, stop taking stream;
Step 606, judge C field in extended field whether set;If so then execute step 608, if otherwise executing step Rapid 610;
Step 608, stop decoding;
Step 610, the NTP time in extended field is obtained as break period point, is asked break period point as new Play time is asked to initiate new RTSP playback request.
Specifically, with reference to Figure 13,14, in the present embodiment, the signaling using RTSP agreement as playback is controlled, and is based on Playback signaling control process such as Fig. 9 of RTSP, related command include: in detail
Option order, the RTSP command type that request equipment is supported, in return information will comprising Describe, Setup, play, teardown etc..
Describe order, the media description information of request equipment, SDP (session description Protocol) be used to describe media information, server end will by SDP Protocol answers video decoded information, comprising type of coding, The information relevant to decoding such as frame per second, sps, pps.
Setup order, the foundation and port negotiation of transmission channel.
Play order, video playback request.
Teardown order, video playback stop.
In the present embodiment, asking for playback is controlled by carrying the request time of playback in the URL of RTSP interaction signaling Range is sought, user can request corresponding video playback data according to the playback duration section of request, and the URL of playback request is expressed as Following example, wherein range is followed by being to need the video time segment limit that plays:
Rtsp: //admin:admin@10.82.16.29:554/ch1/stream1? method=playback? range =20181119T143244.300Z-20181119T184023.300Z.
In the present embodiment, it is transmitted using Real-time Transport Protocol, and Real-time Transport Protocol is extended, so that playback client can be with Quick response plays back the variation of video data format, and specific extended method is as shown in Figure 10.
When changing for video data format, it need to temporarily disconnect and currently connect and re-establish new connection, with Adapt to the decoded needs of different video formatted data;For this purpose, introducing RTP extension function as informing mechanism, it is ensured that playback is not It can really be interrupted, ensure the effect of playback.As shown in Figure 10, it introduces RTP and extends function, wherein extension bits X sets 1;When NTP Between stamp be absolute UTC time, clock time on itself wall of recording a video;The variation of C field references video data format;T field references Entire playback terminates;Padding is filling content, no practical significance.
In video data format variation, video sending end is inserted into new RTP data packet, and by C field set, data are connect It receives module and parses RTP extended field, can be with quick obtaining video format variable condition in data transfer layer, and notify playback management Module sends the teardown message of RTSP, temporarily ceases current playback.
In the present embodiment, RTSP agreement is used for transmission signaling, and Real-time Transport Protocol is used for transmission data flow, based on SDP agreement come Interactive video decoded information.The present embodiment transmits the temporal information of playback request using the signaling of RTSP agreement, passes through detection The video format of Video data changes, when variation can proactive notification play back client, so that current playback is temporarily interrupted, after interruption Quick reconnection is enabled to ensure the continuous of entire replayed section, the playback for realizing solution various video format blended data is asked Topic.
In one embodiment, a kind of video data playback process method is provided, as shown in fig. 7, this method further includes The step of video data are sent:
Step 702, judge whether the type of coding of video data changes;If so then execute step 704, if not Then follow the steps 706;
Step 704, insertion band stream end mark NALU frame, and send stream end frame;
Step 706, RTP data flow is sent.
Specifically, with reference to 13, in the present embodiment, in the data segment of video code model variation, pass through insertion band stream The NALU frame of end mark, to be split to data, so that decoder can be with quick response data variation.
For video data decoding module, when encountering different video formatted data, if data flow is not interrupted, continue to adopt The decoded information of SDP Protocol answers decodes before, will lead to decoding entanglement, and playback picture is abnormal;For decoder module, it is necessary to Stop current decoding immediately, and reinitializes decoder by new parameter.
For this purpose, processed in NALU unit of the data plane the present embodiment to H264 or H265 video record data again. Specifically, with reference to Figure 11, when data encoding type changes, it is inserted into the NALU frame with stream end mark.Wherein, end of Stream frame is empty data frame, only header information, and data content is sky;Type is according to RFC standard value, H264 value 11, H265 values are 37;Video data decoding module can stop rapidly current data solution when receiving the NALU frame that stream terminates Code waits the subsequent new Connecting quantity quickly established, can maintain the continuity of picture.
In the present embodiment, by processing to playback Video data, the NALU of the end mark containing stream is inserted into data Unit carries out data transmission in conjunction with RTP, and is extended to RTP, can be switched fast the decoding display of different-format video, energy Adapt to the continuous playback of mixed video type coding data.
In one embodiment, a kind of video data playback process method is provided, as shown in figure 8, this method further includes The step of video data readback decodes:
Step 802, video data are received;
Step 804, judge whether to receive stream end frame;If so then execute step 806,808 are thened follow the steps if not;
Step 806, it destroys current decoding parametric and waits new decoding parametric;
Step 808, broadcasting is decoded to the video data received.
Specifically, with reference to Figure 15, playing module is decoded in the present embodiment and receives H264/H265 video data, judgement is It is no to receive stream end frame, it is decoded display if not receiving stream end frame, if having received stream end frame destroys current solution Code waits new parameter.
In the present embodiment, the parsing and playback for realizing the video data to the mixing of various video format, guarantee whole The continuity of a replayed section improves the satisfaction that user uses.
It should be understood that although each step in the flow chart of Fig. 2-15 is successively shown according to the instruction of arrow, It is these steps is not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps There is no stringent sequences to limit for rapid execution, these steps can execute in other order.Moreover, in Fig. 2-15 at least A part of step may include that perhaps these sub-steps of multiple stages or stage are not necessarily in same a period of time to multiple sub-steps Quarter executes completion, but can execute at different times, the execution in these sub-steps or stage be sequentially also not necessarily according to Secondary progress, but in turn or can replace at least part of the sub-step or stage of other steps or other steps Ground executes.
In one embodiment, as shown in figure 16, a kind of video data playback process device 1600, the device packet are provided It includes:
Module 1601 is obtained, for obtaining the request of video data playback process, includes in the request of video data playback process Playback duration information;
Initialization module 1602 receives the decoding letter of return for sending RTSP playback request according to playback duration information Breath, and according to the decoded information initializing decoder of return;
Parsing module 1603 receives the RTP data flow of return, and parse RTP data flow for sending RTSP playing request In extended field be expanded the parsing result of field;
Judgment module 1604, the coding mode for judging the RTP data flow for the parsing result according to extended field are It is no to change;
Request module 1605, if the coding mode for RTP data flow changes, by the parsing result of extended field In temporal information initiate new RTSP playback request as new request play time.
In one embodiment, as shown in figure 17, a kind of video data playback process device 1600 is provided, the device is also It is used for including acquisition memory module 1606: acquisition video data;Header information is added to collected video data and carries out this Ground stores to obtain video data, and header information includes: type of coding, frame per second and video time information.
In one embodiment, as shown in figure 18, a kind of video data playback process device 1600 is provided, the device is also It is used for including data assembling module 1607: obtaining the request of video data playback process;It parses in the request of video data playback process URL obtain playback duration information;From be locally stored it is middle obtain corresponding with playback duration information video data, and pass through The corresponding decoded information of SDP Protocol answers;It reads Video data and encapsulates RTP data packet, and video data are sealed by RTP Packet obtains RTP data flow.
In one embodiment, which is also used to: when the coding class for detecting video data When type changes, insertion contains only the RTP packet of information among delta data section;To the header information addition extension word of RTP packet Section obtains RTP data flow;Extended field includes: C field, T field and NTP time;Wherein, C field is for indicating video recording view The type of coding of frequency evidence changes, and for T field for indicating that video data playback request terminates, the NTP time represents the record of this paragraph format The time point interrupted as video data.
In one embodiment, which is also used to: judge T field in extended field whether set;If It is that stopping takes stream;If otherwise judge C field in extended field whether set;If then stopping decoding;Expand if otherwise obtaining The NTP time in field is opened up as break period point;New RTSP is initiated using break period point as new request play time Playback request.
In one embodiment, as shown in figure 19, a kind of video data playback process device 1600 is provided, the device is also It is used for including data transmission blocks 1608: judging whether the type of coding of video data changes;If video number According to type of coding change, be inserted into band stream end mark NALU frame, and send stream end frame;If the volume of video data There is no variations then to send RTP data flow for code type.
In one embodiment, as shown in figure 20, a kind of video data playback process device 1600 is provided, the device is also It is used for including decoding playing module 1609: receiving video data;Judge whether to receive stream end frame;Work as if then destroying Preceding decoding parametric simultaneously waits new decoding parametric;If otherwise docking the video data received is decoded broadcasting.
Specific restriction about video data playback process device may refer to above for video data playback process The restriction of method, details are not described herein.
In one embodiment, a kind of computer equipment is provided, internal structure chart can be as shown in figure 21.The calculating Machine equipment includes processor, memory and the network interface connected by system bus.Wherein, the processing of the computer equipment Device is for providing calculating and control ability.The memory of the computer equipment includes non-volatile memory medium, built-in storage.It should Non-volatile memory medium is stored with operating system, computer program and database.The built-in storage is non-volatile memories Jie The operation of operating system and computer program in matter provides environment.The network interface of the computer equipment is used for and external end End passes through network connection communication.To realize a kind of video data playback process method when the computer program is executed by processor.
It will be understood by those skilled in the art that structure shown in Figure 21, only part relevant to application scheme The block diagram of structure, does not constitute the restriction for the computer equipment being applied thereon to application scheme, and specific computer is set Standby may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory And the computer program that can be run on a processor, processor are realized when executing computer program in above each embodiment of the method The step of.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated The step in above each embodiment of the method is realized when machine program is executed by processor.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is specified to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of video data playback process method, which comprises
The request of video data playback process is obtained, includes playback duration information in the video data playback process request;
RTSP playback request is sent according to the playback duration information, receives the decoded information of return, and according to the return Decoded information initializing decoder;
RTSP playing request is sent, receives the RTP data flow of return, and the extended field parsed in the RTP data flow obtains The parsing result of extended field;
Judge whether the coding mode of the RTP data flow changes according to the parsing result of the extended field;
If the coding mode of the RTP data flow changes, by the temporal information in the parsing result of the extended field New RTSP playback request is initiated as new request play time.
2. video data playback process method according to claim 1, which is characterized in that the method also includes video counts The step of according to acquisition storage:
Acquire video data;
Header information is added to collected video data and is locally stored to obtain video data, the header information It include: type of coding, frame per second and video time information.
3. video data playback process method according to claim 2, which is characterized in that the method also includes video recordings to regard The step of frequency data assembling:
Obtain the request of video data playback process;
The URL parsed in the video data playback process request obtains playback duration information;
From be locally stored it is middle obtain corresponding with playback duration information video data, and pass through SDP Protocol answers pair The decoded information answered;
It reads Video data and encapsulates RTP data packet, and RTP data flow is obtained by RTP package to the video data.
4. video data playback process method according to claim 3, which is characterized in that described to the video number Include: according to the step of obtaining RTP data flow by RTP package
When the type of coding for detecting the video data changes, insertion contains only information among delta data section RTP packet;
RTP data flow is obtained to the header information addition extended field of the RTP packet;The extended field includes: C field, T word Section and NTP time;
Wherein, the C field is used to indicate the type of coding variation of video data, and the T field is for indicating video counts Terminate according to playback request, the NTP time represents the time point of this paragraph format video data outage.
5. video data playback process method according to claim 4, which is characterized in that parsing the RTP data flow In extended field be expanded field parsing result the step of after further include:
Judge T field in the extended field whether set;If then stopping taking stream;
If otherwise judge C field in the extended field whether set;If then stopping decoding;
If otherwise obtaining the NTP time in the extended field as break period point;
New RTSP playback request is initiated using the break period point as new request play time.
6. video data playback process method according to claim 1-5, which is characterized in that the method is also wrapped Include the step of video data are sent:
Judge whether the type of coding of video data changes;
Band stream end mark NALU frame is inserted into if the type of coding of the video data changes, and send stream to terminate Frame;
If the video data type of coding there is no variation if send RTP data flow.
7. video data playback process method according to claim 6, which is characterized in that the method also includes video recordings to regard The step of frequency data readback decodes:
Receive the video data;
Judge whether to receive the stream end frame;
If then destroying current decoding parametric and waiting new decoding parametric;
If being otherwise decoded broadcasting to the video data received.
8. a kind of video data playback process device, which is characterized in that described device includes:
Module is obtained, the acquisition module is asked for obtaining the request of video data playback process, the video data playback process It include playback duration information in asking;
Initialization module, the initialization module are used to send RTSP playback request according to the playback duration information, and reception is returned The decoded information returned, and according to the decoded information initializing decoder of the return;
Parsing module, the parsing module receive the RTP data flow of return, and described in parsing for sending RTSP playing request Extended field in RTP data flow is expanded the parsing result of field;
Judgment module, the judgment module are used to judge according to the parsing result of the extended field volume of the RTP data flow Whether code mode changes;
Request module, if coding mode of the request module for the RTP data flow changes, by the extension word Temporal information in the parsing result of section initiates new RTSP playback request as new request play time.
9. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that the processor realizes any one of claims 1 to 7 institute when executing the computer program The step of stating method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 7 is realized when being executed by processor.
CN201910011469.8A 2019-01-07 2019-01-07 Video data playback processing method, video data playback processing device, computer equipment and storage medium Active CN109729318B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910011469.8A CN109729318B (en) 2019-01-07 2019-01-07 Video data playback processing method, video data playback processing device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910011469.8A CN109729318B (en) 2019-01-07 2019-01-07 Video data playback processing method, video data playback processing device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109729318A true CN109729318A (en) 2019-05-07
CN109729318B CN109729318B (en) 2021-01-08

Family

ID=66299631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910011469.8A Active CN109729318B (en) 2019-01-07 2019-01-07 Video data playback processing method, video data playback processing device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109729318B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112423135A (en) * 2020-09-18 2021-02-26 苏宁云计算有限公司 Information processing method and device for video playback, computer equipment and storage medium
CN112422514A (en) * 2020-10-26 2021-02-26 深圳Tcl新技术有限公司 Multimedia data transmission method and device, intelligent household equipment and storage medium
CN113099149A (en) * 2021-04-02 2021-07-09 杭州海康威视数字技术股份有限公司 Data processing method, system and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020163908A1 (en) * 2001-05-07 2002-11-07 Ari Lakaniemi Apparatus, and associated method, for synchronizing operation of codecs operable pursuant to a communicaton session
CN1949876A (en) * 2006-11-21 2007-04-18 华为技术有限公司 Method and system for supporting media data of multi-coding formats
CN102075769A (en) * 2011-01-10 2011-05-25 苏州博联科技有限公司 Method for optimizing video QoS of video wireless transmission monitoring system
CN102394993A (en) * 2011-11-02 2012-03-28 上海市共进通信技术有限公司 Method for automatically adjusting and improving RTP (Realtime Transport Protocol) flow quality based on voice coding in VoIP (Voice over Internet Portocol) network
US20140115117A1 (en) * 2011-06-08 2014-04-24 Mark G. Fiedler Webcasting method and apparatus
CN107358160A (en) * 2017-06-08 2017-11-17 小草数语(北京)科技有限公司 Terminal monitoring method for processing video frequency, monitor terminal and server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020163908A1 (en) * 2001-05-07 2002-11-07 Ari Lakaniemi Apparatus, and associated method, for synchronizing operation of codecs operable pursuant to a communicaton session
CN1949876A (en) * 2006-11-21 2007-04-18 华为技术有限公司 Method and system for supporting media data of multi-coding formats
CN102075769A (en) * 2011-01-10 2011-05-25 苏州博联科技有限公司 Method for optimizing video QoS of video wireless transmission monitoring system
US20140115117A1 (en) * 2011-06-08 2014-04-24 Mark G. Fiedler Webcasting method and apparatus
CN102394993A (en) * 2011-11-02 2012-03-28 上海市共进通信技术有限公司 Method for automatically adjusting and improving RTP (Realtime Transport Protocol) flow quality based on voice coding in VoIP (Voice over Internet Portocol) network
CN107358160A (en) * 2017-06-08 2017-11-17 小草数语(北京)科技有限公司 Terminal monitoring method for processing video frequency, monitor terminal and server

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112423135A (en) * 2020-09-18 2021-02-26 苏宁云计算有限公司 Information processing method and device for video playback, computer equipment and storage medium
CN112423135B (en) * 2020-09-18 2023-06-30 苏宁云计算有限公司 Information processing method, apparatus, computer device and storage medium for video playback
CN112422514A (en) * 2020-10-26 2021-02-26 深圳Tcl新技术有限公司 Multimedia data transmission method and device, intelligent household equipment and storage medium
CN113099149A (en) * 2021-04-02 2021-07-09 杭州海康威视数字技术股份有限公司 Data processing method, system and storage medium
CN113099149B (en) * 2021-04-02 2022-08-05 杭州海康威视数字技术股份有限公司 Data processing method, system and storage medium

Also Published As

Publication number Publication date
CN109729318B (en) 2021-01-08

Similar Documents

Publication Publication Date Title
US10951857B2 (en) Method and system for video recording
CN102291580B (en) Video transmission method based on Android system
CN109729318A (en) Video data playback process method, apparatus, computer equipment and storage medium
CN102263959B (en) Direct broadcast transfer method and system
CN112752115B (en) Live broadcast data transmission method, device, equipment and medium
US20100058409A1 (en) Audio and video testing methodology
US11563992B2 (en) Video playback quality detection method and apparatus
CN102833585B (en) System and method for transmitting ubiquitous terminal video
US20080292281A1 (en) Process for placing a multimedia object in memory, data structure and associated terminal
CN103607587B (en) Debugging method and system for video terminal
CN112565224B (en) Video processing method and device
CN109982053A (en) Audio and video playing method, computer installation and computer readable storage medium
CN108574877A (en) Live broadcasting method, Zhu Boduan, viewer end, equipment, system and storage medium
CN113316013B (en) Video screen projection method and system
JP2013157820A (en) Generation device, playback device, generation method, playback method, data structure, control program, and recording medium
US8879641B2 (en) Storage of advanced video coding (AVC) parameter sets in AVC file format
CN113938470A (en) Method and device for playing RTSP data source by browser and streaming media server
CN108810575B (en) Method and device for sending target video
CN108012085B (en) Multimedia information processing method, server and storage medium
CN105657448B (en) A kind of retransmission method, the apparatus and system of encoded video stream
US20160173551A1 (en) System and method for session mobility for adaptive bitrate streaming
CN108235082A (en) A kind of vehicle-mounted audio and video projection system and method
US10171545B2 (en) System for transferring real-time audio/video stream
CN112135163A (en) Video playing starting method and device
CN114760486A (en) Live broadcasting method, device, equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant