CN107241323A - Spell frame method and equipment - Google Patents
Spell frame method and equipment Download PDFInfo
- Publication number
- CN107241323A CN107241323A CN201710402439.0A CN201710402439A CN107241323A CN 107241323 A CN107241323 A CN 107241323A CN 201710402439 A CN201710402439 A CN 201710402439A CN 107241323 A CN107241323 A CN 107241323A
- Authority
- CN
- China
- Prior art keywords
- frame
- packet
- data
- length
- heads
- 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
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/75—Media network packet handling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/01—Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
- H04N7/0127—Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level by changing the field or frame frequency of the incoming video signal, e.g. frame rate converter
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
Frame method and equipment are spelled it is an object of the invention to provide one kind, the present invention directly ignores these privately owned heads, packing standard fully according to national standard H264 removes conversed analysis code stream, to realize the spelling frame for analyzing and processing all camera bit stream data bags for following national standard H264 standards.Project is docked present invention can apply to distributed imaging system and the safety monitoring platform based on H264 national standards, the web camera code stream of each different vendor is disposed using the compatible processing of the present invention, the spelling frame to the H264 GB code stream packets containing the privately owned packet header of different vendor is realized, includes the spelling frame of the above-mentioned code stream for spelling frame, the spelling frame of PS stream packets, the spelling frame of ES stream packets, the spelling frame of the old video camera block encoding video camera of comparison and audio frequency and video mixed transport of rtp streaming packet.Here, the spelling frame of relatively older video camera block encoding video camera refers to that the code stream transmitted after older generation's video camera block encoding spells frame processing.
Description
Technical field
The present invention relates to computer realm, more particularly to a kind of spelling frame method and equipment.
Background technology
Frame analysis storehouse in the market, only supports the frame analysis of the H264 code streams comprising respective privately owned packet header, does not support
Or the spelling frame of H264 national standards (GB28181) code stream not comprising privately owned packet header is supported in part;The old of block encoding is not supported to take the photograph
As the frame of head is analyzed.The privately owned head that existing frame analysis Cooley is added with manufacturer spells frame to parse packet, and such storehouse is only fitted
Code stream for respective manufacturer's encapsulation process, it is impossible to all-embracing.
The content of the invention
Frame method and equipment are spelled it is an object of the present invention to provide one kind, the spelling of existing H264 national standards code stream is can solve the problem that
The problem of frame scheme can not be compatible.
According to an aspect of the invention, there is provided a kind of spell frame method, this method includes:
Receive the raw data packets packed based on H264 national standards;
Judge whether there are RTP heads in the raw data packets,
If so, the RTP heads removed in the raw data packets obtain the first packet, scan in first packet
PS packet header, the PS packet header removed in first packet obtains the second packet, and ES bags are taken out from second packet
Head, frame length, program category and frame type are gone out according to the ES header parsers;
The ES packet header removed in the H264 frame heads of second packet obtains the 3rd packet, according in the 3rd packet
H264 frame heads record frame data original position;
According to the original position of the frame length, program category, frame type and frame data, spelled based on the 3rd packet
Gather out complete data frame.
Further, in above-mentioned spelling frame method, judge whether have after RTP in the raw data packets, in addition to:
If nothing, the PS packet header in the raw data packets is scanned, the PS packet header in the raw data packets is removed and obtains the
Four packets, ES packet header is taken out from the 4th packet, frame length, program category and frame are gone out according to the ES header parsers
Type;
The ES packet header removed in the H264 frame heads of the 4th packet obtains the 5th packet, according in the 5th packet
H264 frame heads record frame data original position;
According to it is described go out frame length, program category, frame type and frame data original position, pieced together based on the 5th packet
Go out complete data frame.
Further, in above-mentioned spelling frame method, the program category includes Voice & Video.
Further, in above-mentioned spelling frame method, the frame type includes I types and p-type frame.
Further, in above-mentioned spelling frame method, according to the starting of the frame length, program category, frame type and frame data
Position, complete data frame is pieced together out based on the 3rd packet, including:
Judge whether the data in the 3rd packet parse the total length of program data enough,
If so, the total length of the program data parsed is recorded as to wait data length, judge in the 3rd packet
Whether the length of program data is more than the wait data length,
If so, according to the original position of the frame length, program category, frame type and frame data, based on the described 3rd number
Complete data frame is pieced together out according to bag.
According to another aspect of the present invention, a kind of spelling frame equipment is additionally provided, the equipment includes:
Reception device, for receiving the raw data packets packed based on H264 national standards;
Judgment means, for judging whether there are RTP heads in the raw data packets, if so, removing the raw data packets
In RTP heads obtain the first packet, scan the PS packet header in first packet, remove the PS in first packet
Packet header obtains the second packet, and ES packet header is taken out from second packet, and frame length, section are gone out according to the ES header parsers
Mesh type and frame type;The ES packet header removed in the H264 frame heads of second packet obtains the 3rd packet, according to the 3rd
H264 frame heads in packet record the original position of frame data;According to the frame length, program category, frame type and frame data
Original position, complete data frame is pieced together out based on the 3rd packet.
Further, in above-mentioned spelling frame equipment, the judgment means are additionally operable to judge whether have in the raw data packets
After RTP, if nothing, the PS packet header in the raw data packets is scanned, the PS packet header removed in the raw data packets is obtained
4th packet, takes out ES packet header from the 4th packet, according to the ES header parsers go out frame length, program category and
Frame type;The ES packet header removed in the H264 frame heads of the 4th packet obtains the 5th packet, according in the 5th packet
H264 frame heads record frame data original position;According to it is described go out frame length, program category, frame type and frame data starting
Position, complete data frame is pieced together out based on the 5th packet.
Further, in above-mentioned spelling frame equipment, the program category includes Voice & Video.
Further, in above-mentioned spelling frame equipment, the frame type includes I types and p-type frame.
Further, in above-mentioned spelling frame equipment, the judgment means are additionally operable to judge whether is data in the 3rd packet
The total length of program data is parsed enough, if so, the total length of the program data parsed is recorded as to wait data length,
Judge whether the length of program data in the 3rd packet is more than the wait data length, if so, according to the frame length,
The original position of program category, frame type and frame data, complete data frame is pieced together out based on the 3rd packet.
According to the another side of the present invention, a kind of equipment based on calculating is also provided, including:
Processor;And
It is arranged to store the memory of computer executable instructions, the executable instruction makes the place when executed
Manage device:
Receive the raw data packets packed based on H264 national standards;
Judge whether there are RTP heads in the raw data packets,
If so, the RTP heads removed in the raw data packets obtain the first packet, scan in first packet
PS packet header
If so, the PS packet header removed in first packet obtains the second packet, taken from second packet
Go out ES packet header, frame length, program category and frame type are gone out according to the ES header parsers;
The ES packet header removed in the H264 frame heads of second packet obtains the 3rd packet, according in the 3rd packet
H264 frame heads record frame data original position;
According to the original position of the frame length, program category, frame type and frame data, spelled based on the 3rd packet
Gather out complete data frame.
Compared with prior art, the present invention directly ignores these privately owned heads, and the packing standard fully according to national standard H264 is gone
Conversed analysis code stream, to realize the spelling frame for analyzing and processing all camera bit stream data bags for following national standard H264 standards.This hair
It is bright can be applied to distributed imaging system and the safety monitoring platform based on H264 national standards dock project, can be simultaneous using the present invention
Hold the web camera code stream that each different vendor is disposed in processing, realize to the H264 GB codes containing the privately owned packet header of different vendor
The spelling frame of stream packets, including rtp streaming packet spell frame, PS stream packets to spell frame, the spelling frame of ES stream packets, comparison old
The spelling frame for spelling frame and the above-mentioned code stream of audio frequency and video mixed transport of video camera block encoding video camera.Here, relatively older shooting
The spelling frame of machine block encoding video camera refers to that the code stream transmitted after older generation's video camera block encoding spells frame processing.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, of the invention is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 shows the flow chart of the spelling frame method of one embodiment of the invention.
Same or analogous reference represents same or analogous part in accompanying drawing.
Embodiment
The present invention is described in further detail below in conjunction with the accompanying drawings.
In one typical configuration of the application, terminal, the equipment of service network and trusted party include one or more
Processor (CPU), input/output interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moved
State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, magnetic disk storage or other magnetic storage apparatus or
Any other non-transmission medium, the information that can be accessed by a computing device available for storage.Defined according to herein, computer
Computer-readable recording medium does not include the data-signal and carrier wave of non-temporary computer readable media (transitory media), such as modulation.
The present invention provides a kind of spelling frame method, and this method includes:
Step S1, receives the raw data packets packed based on H264 national standards;
Step S2, judges whether there are RTP heads in the raw data packets,
If so, step S3, removes the RTP heads in the raw data packets and obtain the first packet, first number is scanned
According to the PS packet header in bag, here, receiving raw data packets removes RTP heads, scanning PS header packet informations cache useful data;
Step S4, the PS packet header removed in first packet obtains the second packet, from second packet
ES packet header is taken out, frame length, program category and frame type are gone out according to the ES header parsers;Here, taking the data scanning of caching
ES header parsers go out frame length, and weed out hash, record program category and frame type;
Step S5, the ES packet header removed in the H264 frame heads of second packet obtains the 3rd packet, according to the 3rd
H264 frame heads in packet record the original position of frame data;Here, scanning H264 frame heads, reject ES packet header and useless number
According to the original position of record frame data;
Step S6, according to the original position of the frame length, program category, frame type and frame data, based on the described 3rd
Packet pieces together out complete data frame.Here, can be according to the startings of the frame length, program category, frame type and frame data
Position, the relevant information of the 3rd data, which are pieced together out, removes the related caching of this frame after complete frame and copy.
H264, is dynamic by ITU-T Video Coding Experts Groups (VCEG) and ISO/IEC while being also MPEG-4 Part X
The high compression number that the joint video team (JVT, Joint Video Team) that state motion picture expert group version (MPEG) is constituted jointly is proposed
Word Video Codec standard.
Here, the present invention directly ignores these privately owned heads, the packing standard fully according to national standard H264 removes conversed analysis code
Stream, to realize the spelling frame for analyzing and processing all camera bit stream data bags for following national standard H264 standards.Present invention can apply to
Distributed imaging system docks project with the safety monitoring platform based on H264 national standards, is disposed using the compatible processing of the present invention
The web camera code stream of each different vendor, is realized to the H264 GB code stream packets containing the privately owned packet header of different vendor
Frame is spelled, includes spelling frame, spelling frame, the spelling frame of ES stream packets, the old video camera piecemeal of comparison of PS stream packets of rtp streaming packet
Encode the spelling frame for spelling frame and the above-mentioned code stream of audio frequency and video mixed transport of video camera.Here, relatively older video camera block encoding
The spelling frame of video camera refers to that the code stream transmitted after older generation's video camera block encoding spells frame processing.
In the spelling frame method of one embodiment of the invention, step S2 judges whether there are RTP heads in the raw data packets
Afterwards, in addition to:
If nothing, step S7 scans the PS packet header in the raw data packets,
Step S8, the PS packet header removed in the raw data packets obtains the 4th packet, from the 4th packet
ES packet header is taken out, frame length, program category and frame type are gone out according to the ES header parsers;
Step S9, the ES packet header removed in the H264 frame heads of the 4th packet obtains the 5th packet, according to the 5th
H264 frame heads in packet record the original position of frame data;
Step S10, according to it is described go out frame length, program category, frame type and frame data original position, based on the 5th number
Complete data frame is pieced together out according to bag.
Here, the present embodiment can realize the spelling frame of PS stream packets.
In the spelling frame method of one embodiment of the invention, the program category includes Voice & Video.
In the spelling frame method of one embodiment of the invention, the frame type includes I types and p-type frame.Here, I type frames represent to close
Key frame, it can be understood as the complete reservation of this frame picture;This frame data is only needed to during decoding can just complete (because comprising complete
Whole picture).What p-type frame was represented is difference of this frame with a key frame (or P frames) before, is needed during decoding slow before
The picture deposited is superimposed with the difference of this frame definition, generates final picture.(namely difference frame, P frames do not have complete picture data,
Only with the data of the picture difference of former frame).
In the spelling frame method of one embodiment of the invention, step S6, according to the frame length, program category, frame type and frame
The original position of data, complete data frame is pieced together out based on the 3rd packet, including:
Judge whether the data in the 3rd packet parse the total length of program data enough,
If so, the total length of the program data parsed is recorded as to wait data length, judge in the 3rd packet
Whether the length of program data is more than the wait data length,
If so, according to the original position of the frame length, program category, frame type and frame data, based on the described 3rd number
Complete data frame is pieced together out according to bag.
Here, the present embodiment can accurately realize spelling frame.
As shown in figure 1, comprising the following steps in a specific Application Example of the invention:
Whether judge thread is starting state,
If so, receiving stream packet packaging goes the rtp handling processes for obtaining pure ps streams;
Read the effective bit stream data of PS buffer areas;
Whether record waits pending data,
If it is not, judge 000001E (C) 0 whether is found in PS cache flows,
If so, judge whether to find E0,
If finding, nearest pre-output frame is recorded for video;If not finding, nearest pre-output frame is recorded for audio;
Judge whether data parse program data total length enough,
If so, parsing the data length of the program bag and being recorded as waiting data length, valid frame data length is parsed;
Judge whether PS data lengths are more than or equal to the wait length of record;
If so, read a frame data from PS data buffer areas (copies available frame count according to length from the frame start position of record
Degree);
Whether judge pre-output frame is frame of video,
If so, output video frame, and it is unknown to record pre-output frame;If it is not, output audio frame (is jumped during no audio demand
To downstream);
Change state is non-camp state, waits length to be changed to 0, valid frame data length is designated as 0;
Move the data of the valid data length waited before ps data buffer areas.
According to another aspect of the present invention, a kind of spelling frame equipment is additionally provided, the equipment includes:
Reception device, for receiving the raw data packets packed based on H264 national standards;
Judgment means, for judging whether there are RTP heads in the raw data packets, if so, removing the raw data packets
In RTP heads obtain the first packet, scan the PS packet header in first packet, remove the PS in first packet
Packet header obtains the second packet, and ES packet header is taken out from second packet, and frame length, section are gone out according to the ES header parsers
Mesh type and frame type;The ES packet header removed in the H264 frame heads of second packet obtains the 3rd packet, according to the 3rd
H264 frame heads in packet record the original position of frame data;According to the frame length, program category, frame type and frame data
Original position, complete data frame is pieced together out based on the 3rd packet.
In the spelling frame equipment of one embodiment of the invention, the judgment means, be additionally operable to judge be in the raw data packets
It is no to have after RTP, if nothing, the PS packet header in the raw data packets is scanned, the PS packet header in the raw data packets is removed
The 4th packet is obtained, ES packet header is taken out from the 4th packet, frame length, program class are gone out according to the ES header parsers
Type and frame type;The ES packet header removed in the H264 frame heads of the 4th packet obtains the 5th packet, according to the 5th data
H264 frame heads in bag record the original position of frame data;According to it is described go out frame length, program category, frame type and frame data
Original position, complete data frame is pieced together out based on the 5th packet.
In the spelling frame equipment of one embodiment of the invention, the program category includes Voice & Video.
In the spelling frame equipment of one embodiment of the invention, the frame type includes I types and p-type frame.
In the spelling frame equipment of one embodiment of the invention, the judgment means are additionally operable to judge the data in the 3rd packet
Whether the total length of program data is parsed enough, if so, the total length of the program data parsed is recorded as to wait pending data
Length, judges whether the length of the program data in the 3rd packet is more than the wait data length, if so, according to the frame
Length, program category, the original position of frame type and frame data, complete data frame is pieced together out based on the 3rd packet.
According to the another side of the present invention, a kind of equipment based on calculating is also provided, including:
Processor;And
It is arranged to store the memory of computer executable instructions, the executable instruction makes the place when executed
Manage device:
Receive the raw data packets packed based on H264 national standards;
Judge whether there are RTP heads in the raw data packets,
If so, the RTP heads removed in the raw data packets obtain the first packet, scan in first packet
PS packet header
If so, the PS packet header removed in first packet obtains the second packet, taken from second packet
Go out ES packet header, frame length, program category and frame type are gone out according to the ES header parsers;
The ES packet header removed in the H264 frame heads of second packet obtains the 3rd packet, according in the 3rd packet
H264 frame heads record frame data original position;
According to the original position of the frame length, program category, frame type and frame data, spelled based on the 3rd packet
Gather out complete data frame.
The other detailed contents for spelling frame equipment and each embodiment of equipment based on calculating of the present invention, for details, reference can be made to spelling frame
The corresponding part of each embodiment of method, here, repeating no more.
In summary, the present invention directly ignores these privately owned heads, and the packing standard fully according to national standard H264 goes reverse point
Code stream is analysed, to realize the spelling frame for analyzing and processing all camera bit stream data bags for following national standard H264 standards.The present invention can be answered
Project is docked for distributed imaging system and the safety monitoring platform based on H264 national standards, using the compatible processing of the present invention
The web camera code stream of each different vendor is disposed, is realized to the H264 national standard bit stream datas containing the privately owned packet header of different vendor
The spelling frame of bag, includes spelling frame, spelling frame, the spelling frame of ES stream packets, the old video camera of comparison of PS stream packets of rtp streaming packet
The spelling frame for spelling frame and the above-mentioned code stream of audio frequency and video mixed transport of block encoding video camera.Here, relatively older video camera piecemeal
The spelling frame of coding video camera refers to that the code stream transmitted after older generation's video camera block encoding spells frame processing.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the application to the application
God and scope.So, if these modifications and variations of the application belong to the scope of the application claim and its equivalent technologies
Within, then the application is also intended to comprising including these changes and modification.
It should be noted that the present invention can be carried out in the assembly of software and/or software and hardware, for example, can adopt
Realized with application specific integrated circuit (ASIC), general purpose computer or any other similar hardware device.In one embodiment
In, software program of the invention can realize steps described above or function by computing device.Similarly, it is of the invention
Software program (including related data structure) can be stored in computer readable recording medium storing program for performing, for example, RAM memory,
Magnetically or optically driver or floppy disc and similar devices.In addition, some steps or function of the present invention can employ hardware to realize, example
Such as, as coordinating with processor so as to performing the circuit of each step or function.
In addition, the part of the present invention can be applied to computer program product, such as computer program instructions, when its quilt
When computer is performed, by the operation of the computer, the method according to the invention and/or technical scheme can be called or provided.
And the programmed instruction of the method for the present invention is called, it is possibly stored in fixed or moveable recording medium, and/or pass through
Broadcast or the data flow in other signal bearing medias and be transmitted, and/or be stored according to described program instruction operation
In the working storage of computer equipment.Here, including a device according to one embodiment of present invention, the device includes using
In the memory and processor for execute program instructions of storage computer program instructions, wherein, when the computer program refers to
When order is by the computing device, method and/or skill of the plant running based on foregoing multiple embodiments according to the present invention are triggered
Art scheme.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie
In the case of without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter
From the point of view of which point, embodiment all should be regarded as exemplary, and be nonrestrictive, the scope of the present invention is by appended power
Profit is required rather than described above is limited, it is intended that all in the implication and scope of the equivalency of claim by falling
Change is included in the present invention.Any reference in claim should not be considered as to the claim involved by limitation.This
Outside, it is clear that the word of " comprising " one is not excluded for other units or step, and odd number is not excluded for plural number.That is stated in device claim is multiple
Unit or device can also be realized by a unit or device by software or hardware.The first, the second grade word is used for table
Show title, and be not offered as any specific order.
Claims (11)
1. one kind spells frame method, wherein, this method includes:
Receive the raw data packets packed based on H264 national standards;
Judge whether there are RTP heads in the raw data packets,
If so, the RTP heads removed in the raw data packets obtain the first packet, the PS bags in first packet are scanned
Head, the PS packet header removed in first packet obtains the second packet, and ES packet header, root are taken out from second packet
Go out frame length, program category and frame type according to the ES header parsers;
The ES packet header removed in the H264 frame heads of second packet obtains the 3rd packet, according in the 3rd packet
H264 frame heads record the original position of frame data;
According to the original position of the frame length, program category, frame type and frame data, pieced together out based on the 3rd packet
Complete data frame.
2. according to the method described in claim 1, wherein, judge whether have after RTP in the raw data packets, also wrap
Include:
If nothing, the PS packet header in the raw data packets is scanned,
The PS packet header removed in the raw data packets obtains the 4th packet, and ES packet header is taken out from the 4th packet,
Frame length, program category and frame type are gone out according to the ES header parsers;
The ES packet header removed in the H264 frame heads of the 4th packet obtains the 5th packet, according in the 5th packet
H264 frame heads record the original position of frame data;
According to it is described go out frame length, program category, frame type and frame data original position, pieced together out based on the 5th packet
Entire data frame.
3. according to the method described in claim 1, wherein, the program category include Voice & Video.
4. according to the method described in claim 1, wherein, the frame type include I types and p-type frame.
5. according to the method described in claim 1, wherein, according to the frame length, program category, frame type and frame data rise
Beginning position, complete data frame is pieced together out based on the 3rd packet, including:
Judge whether the data in the 3rd packet parse the total length of program data enough,
If so, the total length of the program data parsed is recorded as to wait data length, the program in the 3rd packet is judged
Whether the length of data is more than the wait data length,
If so, according to the original position of the frame length, program category, frame type and frame data, based on the 3rd packet
Piece together out complete data frame.
6. one kind spells frame equipment, wherein, the equipment includes:
Reception device, for receiving the raw data packets packed based on H264 national standards;
Judgment means, for judging whether there are RTP heads in the raw data packets, if so, removing in the raw data packets
RTP obtain the first packet, scan the PS packet header in first packet, remove the PS packet header in first packet
The second packet is obtained, ES packet header is taken out from second packet, frame length, program class are gone out according to the ES header parsers
Type and frame type;The ES packet header removed in the H264 frame heads of second packet obtains the 3rd packet, according to the 3rd data
H264 frame heads in bag record the original position of frame data;According to rising for the frame length, program category, frame type and frame data
Beginning position, complete data frame is pieced together out based on the 3rd packet.
7. equipment according to claim 6, wherein, the judgment means, be additionally operable to judge be in the raw data packets
It is no to have after RTP, if nothing, the PS packet header in the raw data packets is scanned, the PS packet header in the raw data packets is removed
The 4th packet is obtained, ES packet header is taken out from the 4th packet, frame length, program class are gone out according to the ES header parsers
Type and frame type;The ES packet header removed in the H264 frame heads of the 4th packet obtains the 5th packet, according to the 5th data
H264 frame heads in bag record the original position of frame data;According to it is described go out frame length, program category, frame type and frame data
Original position, complete data frame is pieced together out based on the 5th packet.
8. equipment according to claim 6, wherein, the program category includes Voice & Video.
9. equipment according to claim 6, wherein, the frame type includes I types and p-type frame.
10. equipment according to claim 6, wherein, the judgment means are additionally operable to judge the data in the 3rd packet
Whether the total length of program data is parsed enough, if so, the total length of the program data parsed is recorded as to wait pending data
Length, judges whether the length of the program data in the 3rd packet is more than the wait data length, if so, according to the frame
Length, program category, the original position of frame type and frame data, complete data frame is pieced together out based on the 3rd packet.
11. a kind of equipment based on calculating, wherein, including:
Processor;And
It is arranged to store the memory of computer executable instructions, the executable instruction makes the processing when executed
Device:
Receive the raw data packets packed based on H264 national standards;
Judge whether there are RTP heads in the raw data packets,
If so, the RTP heads removed in the raw data packets obtain the first packet, the PS bags in first packet are scanned
Head,
The PS packet header removed in first packet obtains the second packet, and ES packet header is taken out from second packet,
Frame length, program category and frame type are gone out according to the ES header parsers;
The ES packet header removed in the H264 frame heads of second packet obtains the 3rd packet, according in the 3rd packet
H264 frame heads record the original position of frame data;
According to the original position of the frame length, program category, frame type and frame data, pieced together out based on the 3rd packet
Complete data frame.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710402439.0A CN107241323A (en) | 2017-06-01 | 2017-06-01 | Spell frame method and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710402439.0A CN107241323A (en) | 2017-06-01 | 2017-06-01 | Spell frame method and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107241323A true CN107241323A (en) | 2017-10-10 |
Family
ID=59984831
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710402439.0A Pending CN107241323A (en) | 2017-06-01 | 2017-06-01 | Spell frame method and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107241323A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109089153A (en) * | 2018-08-31 | 2018-12-25 | 平安科技(深圳)有限公司 | PS data stream method, apparatus, computer equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070009044A1 (en) * | 2004-08-24 | 2007-01-11 | Alexandros Tourapis | Method and apparatus for decoding hybrid intra-inter coded blocks |
US20100008420A1 (en) * | 2007-02-27 | 2010-01-14 | Huawei Technologies Co., Ltd. | Method and decoder for realizing random access in compressed code stream using multi-reference images |
CN104243920A (en) * | 2014-09-04 | 2014-12-24 | 浙江宇视科技有限公司 | Image stitching method and device based on basic stream video data packaging |
CN104869338A (en) * | 2015-05-18 | 2015-08-26 | 浙江宇视科技有限公司 | Audio and video file storage and retrieval method |
-
2017
- 2017-06-01 CN CN201710402439.0A patent/CN107241323A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070009044A1 (en) * | 2004-08-24 | 2007-01-11 | Alexandros Tourapis | Method and apparatus for decoding hybrid intra-inter coded blocks |
US20100008420A1 (en) * | 2007-02-27 | 2010-01-14 | Huawei Technologies Co., Ltd. | Method and decoder for realizing random access in compressed code stream using multi-reference images |
CN104243920A (en) * | 2014-09-04 | 2014-12-24 | 浙江宇视科技有限公司 | Image stitching method and device based on basic stream video data packaging |
CN104869338A (en) * | 2015-05-18 | 2015-08-26 | 浙江宇视科技有限公司 | Audio and video file storage and retrieval method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109089153A (en) * | 2018-08-31 | 2018-12-25 | 平安科技(深圳)有限公司 | PS data stream method, apparatus, computer equipment and storage medium |
CN109089153B (en) * | 2018-08-31 | 2022-08-19 | 平安科技(深圳)有限公司 | PS data stream decoding method, device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210092364A1 (en) | Image prediction method and device | |
KR102406887B1 (en) | Method, device, and computer program for generating timed media data | |
US20230421794A1 (en) | Description of image composition with hevc still image file format | |
RU2511595C2 (en) | Image signal decoding apparatus, image signal decoding method, image signal encoding apparatus, image encoding method and programme | |
US9262419B2 (en) | Syntax-aware manipulation of media files in a container format | |
CN1264120A (en) | Digital recording and replaying device | |
WO2011083626A1 (en) | Image processing device, information recording medium, image processing method, and program | |
JP5587779B2 (en) | Apparatus and method for storing and reading a file having a media data container and a metadata container | |
US11223856B2 (en) | Method for processing streaming media data and server for processing streaming media | |
JP4846002B2 (en) | File transfer system and file transfer method | |
JP2011142585A (en) | Image processing device, information recording medium, image processing method, and program | |
US7430361B2 (en) | Process and device for decoding MPEG pictures and for displaying them in rewind mode, video driver circuit and decoder box incorporating such a device | |
US20130251333A1 (en) | Transcoding a video stream to facilitate accurate display | |
EP2941001A1 (en) | Video management | |
CN114339408A (en) | Video decoding method | |
US20070291852A1 (en) | Moving picture reproducing apparatus | |
CN107241323A (en) | Spell frame method and equipment | |
US8243824B2 (en) | Information processing apparatus and method | |
KR20160023777A (en) | Picture referencing control for video decoding using a graphics processor | |
WO2022148650A1 (en) | Method, device, and computer program for encapsulating timed media content data in a single track of encapsulated media content data | |
CN109743627B (en) | Playing method of digital movie package based on AVS + video coding | |
US8270497B2 (en) | Complementing bitstream error and decoding | |
US20080285657A1 (en) | Method and apparatus for determining whether adjacent macroblocks are located in the same slice | |
KR101251830B1 (en) | Video data processing apparatus and video data processing method | |
US20220329841A1 (en) | Method for encoding audio and video data, and electronic device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171010 |