CN104994390A - Embedded video processor, embedded video processing system and embedded video processor construction method - Google Patents
Embedded video processor, embedded video processing system and embedded video processor construction method Download PDFInfo
- Publication number
- CN104994390A CN104994390A CN201510372238.1A CN201510372238A CN104994390A CN 104994390 A CN104994390 A CN 104994390A CN 201510372238 A CN201510372238 A CN 201510372238A CN 104994390 A CN104994390 A CN 104994390A
- Authority
- CN
- China
- Prior art keywords
- video
- ffmpeg
- embedded
- codec
- embedded 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
- H04N21/8166—Monomedia components thereof involving executable data, e.g. software
- H04N21/8193—Monomedia components thereof involving executable data, e.g. software dedicated tools, e.g. video decoder software or IPMP tool
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The application discloses an embedded video processor, an embedded video processing system and an embedded video processor construction method. The construction method comprises the following steps: redefining a hardware codec with a target description way to obtain a customized video codec; and registering the customized video codec into FFmepg (Fast Forward Mpeg) with an encoder registration tool to obtain the embedded video processor. Through the application, a process of organically integrating the hardware codec into the FFmpeg is finished, so that the hardware codec integrated into the FFmpeg can acquire video data transmitted by the FFmepg and perform hardware encoding processing on the video data when the FFmepg receive the video data. When the hardware codec is used for performing video encoding, operation resources inside the hardware codec are mainly consumed, so that CPU (Central Processing Unit) operation resource consumption caused by video data encoding processing is lowered.
Description
Technical field
The present invention relates to multi-media processing technical field, particularly a kind of embedded video processor, system and construction method.
Background technology
Current, when carrying out the exploitation of video items in embedded-development environment, FFmpeg (FFmpeg, i.e. Fast Forward Mpeg) can be adopted original coding video data, to realize the compression to video data.
Existing FFmpeg, when to coding video data, needs to utilize the calculation resources of CPU to encode.But, due in embedded-development environment, the calculation resources of CPU is very limited, so, FFmpeg is when carrying out the video data encoding process that need consume a large amount of budget resources, most CPU calculation resources in embedded-development environment can be taken, thus have impact on the performance of other functional modules in embedded-development environment.
Can find out in sum, when carrying out the coded treatment of video data in embedded-development environment, how reducing the CPU calculation resources consumption caused due to video data encoding process is current problem demanding prompt solution.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of embedded video processor, system and construction method, when achieving the coded treatment carrying out video data in embedded-development environment, reduce the object that the CPU calculation resources that causes due to video data encoding process consumes.Its concrete scheme is as follows:
A construction method for embedded video processor, comprising:
Utilize goal description mode, hardware compression device is redefined, obtain self-defining Video Codec; Wherein, described goal description mode is, the describing mode consistent with the description of FFmpeg to codec;
Utilize encoder registration tool, described self-defining Video Codec is registered in described FFmpeg, to obtain described embedded video processor;
Wherein, described the process that described self-defining Video Codec is registered in described FFmpeg to be comprised, described self-defining Video Codec is added in the Video Codec chain of described FFmpeg.
Preferably, describedly utilize goal description mode, redefine hardware compression device, the process obtaining self-defining Video Codec comprises:
Utilize described goal description mode, VPU hardware compression device is redefined, obtain described self-defining Video Codec.
Preferably, describedly utilize encoder registration tool, the process that described self-defining Video Codec is registered in described FFmpeg comprised:
Utilize REGISTER_ENCDEC (X, x) function, described self-defining Video Codec is registered in described FFmpeg.
The invention also discloses a kind of embedded video processor, by utilizing described construction method to build, being applied to embedded video treatment system, comprising:
For obtaining the FFmpeg of the video data that video collector collects;
For obtaining the described video data that described FFmpeg sends, hardware encoding process being carried out to described video data, obtains corresponding video codeword data stream, and described video codeword data stream is sent to the hardware compression device of described FFmpeg.
Preferably, described video collector is the video collector of building based on V4L2 framework.
Preferably, described hardware compression device is VPU hardware compression device.
Preferably, the video format of described video codeword data stream is H.264 form.
The invention also discloses a kind of embedded video treatment system, comprise described embedded video processor, also comprise:
For generating the client of Streaming Media request;
For obtaining the described video codeword data stream that described FFmpeg sends, and after the described Streaming Media request receiving the transmission of described client, described video codeword data stream is sent to the FFserver of described client.
Preferably, described client is VLC client.
Preferably, described system also comprises:
For obtaining and storing the data buffer of described video codeword data stream that described FFserver sends.
In the present invention, by redefining hardware compression device, obtain self-defining Video Codec, make the describing mode of this Video Codec be consistent with the describing mode of FFmpeg to codec, this has laid crucial basis for follow-up being added to by self-defining Video Codec in the Video Codec chain of FFmpeg; Then encoder registration tool is utilized, above-mentioned self-defining Video Codec is registered in FFmpeg, also add in the Video Codec chain of FFmpeg by self-defining Video Codec, this completes process hardware compression device being organically integrated into FFmpeg.Like this, when FFmpeg receives video data, the hardware compression device being integrated into FFmpeg just can obtain the video data of FFmpeg transmission, then hardware encoding process is carried out to this video data, due to hardware compression device when carrying out Video coding, main consumption be the calculation resources of hardware compression device inside, thus reduce the CPU calculation resources consumption because video data encoding process causes.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
The construction method flow chart of Fig. 1 a kind of embedded video processor disclosed in the embodiment of the present invention;
Fig. 2 is a kind of embedded video processor structure schematic diagram disclosed in the embodiment of the present invention;
Fig. 3 is a kind of embedded video treatment system structural representation disclosed in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of construction method of embedded video processor, shown in Figure 1, the method comprises:
Step S101: utilize goal description mode, redefines hardware compression device, obtains self-defining Video Codec; Wherein, goal description mode is, the describing mode consistent with the description of FFmpeg to codec.
Concrete, above-mentionedly utilize goal description mode, hardware compression device is redefined, the process obtaining self-defining Video Codec can comprise, utilize goal description mode, to VPU hardware compression device (VPU, i.e. Video Processing Unit, video processing unit) redefine, obtain self-defining Video Codec.
Step S102: utilize encoder registration tool, is registered in FFmpeg by self-defining Video Codec, to obtain embedded video processor; Wherein, the process that self-defining Video Codec is registered in FFmpeg is comprised, self-defining Video Codec is added in the Video Codec chain of FFmpeg.
Concrete, above-mentionedly utilize encoder registration tool, the process be registered to by self-defining Video Codec in FFmpeg can comprise, utilize REGISTER_ENCDEC (X, x) function, self-defining Video Codec is registered in FFmpeg, that is to say and self-defining Video Codec is added in the Video Codec chain of FFmpeg, thus complete process hardware compression device being organically integrated into FFmpeg.
In the embodiment of the present invention, by redefining hardware compression device, obtain self-defining Video Codec, make the describing mode of this Video Codec be consistent with the describing mode of FFmpeg to codec, this has laid crucial basis for follow-up being added to by self-defining Video Codec in the Video Codec chain of FFmpeg; Then encoder registration tool is utilized, above-mentioned self-defining Video Codec is registered in FFmpeg, also add in the Video Codec chain of FFmpeg by self-defining Video Codec, this completes process hardware compression device being organically integrated into FFmpeg.Like this, when FFmpeg receives video data, the hardware compression device being integrated into FFmpeg just can obtain the video data of FFmpeg transmission, then hardware encoding process is carried out to this video data, due to hardware compression device when carrying out Video coding, main consumption be the calculation resources of hardware compression device inside, thus reduce the CPU calculation resources consumption because video data encoding process causes.
The embodiment of the invention also discloses a kind of embedded video processor, this processor is undertaken building by the construction method in a upper embodiment, and be applied to embedded video treatment system, shown in Figure 2, this processor comprises:
For obtaining the FFmpeg11 of the video data that video collector collects;
For obtaining the video data that FFmpeg11 sends, hardware encoding process being carried out to video data, obtains corresponding video codeword data stream, and video codeword data stream being sent to the hardware compression device 12 of FFmpeg11.
Wherein, preferred video collector is the video collector of building based on V4L2 framework (V4L2, i.e. Video 4Linux 2), can realize the collection to video data, and V4L2 is a kind of programming framework being applied to linux system.In addition, preferred hardware compression device 12 is VPU hardware compression device, and wherein, video data encoding can be become the bit stream data of H.246 form by VPU hardware compression device, and is H.264 a kind of compression of digital video form that can realize high compression.Accordingly, the video format of above-mentioned video codeword data stream is H.264 form.
In the embodiment of the present invention, when FFmpeg11 receives video data, the hardware compression device 12 being integrated into FFmpeg11 just can obtain the video data of FFmpeg11 transmission, then hardware encoding process is carried out to this video data, due to hardware compression device 12 when carrying out Video coding, main consumption be the calculation resources of hardware compression device 12 inside, thus reduce the CPU calculation resources consumption because video data encoding process causes.
The embodiment of the invention also discloses a kind of embedded video treatment system, shown in Figure 3, this system comprises:
For obtaining the FFmpeg11 of the video data that video collector collects;
For obtaining the video data that FFmpeg11 sends, hardware encoding process being carried out to video data, obtains corresponding video codeword data stream, and video codeword data stream being sent to the hardware compression device 12 of FFmpeg11;
For generating the client 13 of Streaming Media request;
For obtaining the video codeword data stream that FFmpeg11 sends, and after the Streaming Media request receiving client 13 transmission, video codeword data stream is sent to the FFserver14 of client 13.
Wherein, FFserver14 is that one can respond in streaming media request, and video codeword data stream is sent to the server of client 13.
In the present embodiment, preferred video collector is the video collector of building based on V4L2 framework, can realize the collection to video data.In addition, preferred hardware compression device 12 is VPU hardware compression device, and wherein, video data encoding can be become the bit stream data of H.246 form by VPU hardware compression device.Accordingly, the video format of above-mentioned video codeword data stream is H.264 form.
Preferred client 13 is VLC client (VLC, i.e. Video Lan Client, VideoLAN Client), VLC client can send Streaming Media request to FFserver14, as RTSP asks (RTSP, i.e. Real Time Streaming Protocol, real time streaming transport protocol), to obtain the video codeword data stream that FFserver14 returns.
Said system can also comprise, for obtaining and storing the data buffer of video codeword data stream that FFserver14 sends.Preserve a cache file in this data buffer, realize the storage to video codeword data stream by this cache file.Under normal circumstances, if client 13 does not initiate Streaming Media request to FFserver14, FFserver14 can be cached to the video codeword data stream that FFmpeg11 sends in above-mentioned cache file.
In the embodiment of the present invention, when FFmpeg receives video data, the hardware compression device being integrated into FFmpeg just can obtain the video data of FFmpeg transmission, then hardware encoding process is carried out to this video data, due to hardware compression device when carrying out Video coding, main consumption be the calculation resources of hardware compression device inside, thus reduce the CPU calculation resources consumption because video data encoding process causes.
Finally, also it should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Above a kind of embedded video processor provided by the present invention, system and construction method are described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (10)
1. a construction method for embedded video processor, is characterized in that, comprising:
Utilize goal description mode, hardware compression device is redefined, obtain self-defining Video Codec; Wherein, described goal description mode is, the describing mode consistent with the description of FFmpeg to codec;
Utilize encoder registration tool, described self-defining Video Codec is registered in described FFmpeg, to obtain described embedded video processor;
Wherein, described the process that described self-defining Video Codec is registered in described FFmpeg to be comprised, described self-defining Video Codec is added in the Video Codec chain of described FFmpeg.
2. the construction method of embedded video processor according to claim 1, is characterized in that, describedly utilizes goal description mode, and redefine hardware compression device, the process obtaining self-defining Video Codec comprises:
Utilize described goal description mode, VPU hardware compression device is redefined, obtain described self-defining Video Codec.
3. the construction method of embedded video processor according to claim 2, is characterized in that, describedly utilizes encoder registration tool, the process that described self-defining Video Codec is registered in described FFmpeg is comprised:
Utilize REGISTER_ENCDEC (X, x) function, described self-defining Video Codec is registered in described FFmpeg.
4. an embedded video processor, is characterized in that, by utilizing the construction method as described in any one of claims 1 to 3 to build, being applied to embedded video treatment system, comprising:
For obtaining the FFmpeg of the video data that video collector collects;
For obtaining the described video data that described FFmpeg sends, hardware encoding process being carried out to described video data, obtains corresponding video codeword data stream, and described video codeword data stream is sent to the hardware compression device of described FFmpeg.
5. embedded video processor according to claim 4, is characterized in that, described video collector is the video collector of building based on V4L2 framework.
6. embedded video processor according to claim 5, is characterized in that, described hardware compression device is VPU hardware compression device.
7. embedded video processor according to claim 6, is characterized in that, the video format of described video codeword data stream is H.264 form.
8. an embedded video treatment system, is characterized in that, comprises the embedded video processor as described in any one of claim 4 to 7, also comprises:
For generating the client of Streaming Media request;
For obtaining the described video codeword data stream that described FFmpeg sends, and after the described Streaming Media request receiving the transmission of described client, described video codeword data stream is sent to the FFserver of described client.
9. embedded video treatment system according to claim 8, is characterized in that, described client is VLC client.
10. embedded video treatment system according to claim 9, is characterized in that, also comprise:
For obtaining and storing the data buffer of described video codeword data stream that described FFserver sends.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510372238.1A CN104994390A (en) | 2015-06-30 | 2015-06-30 | Embedded video processor, embedded video processing system and embedded video processor construction method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510372238.1A CN104994390A (en) | 2015-06-30 | 2015-06-30 | Embedded video processor, embedded video processing system and embedded video processor construction method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104994390A true CN104994390A (en) | 2015-10-21 |
Family
ID=54306132
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510372238.1A Pending CN104994390A (en) | 2015-06-30 | 2015-06-30 | Embedded video processor, embedded video processing system and embedded video processor construction method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104994390A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106804003A (en) * | 2017-03-09 | 2017-06-06 | 广州四三九九信息科技有限公司 | Video editing method and device based on ffmpeg |
CN109274973A (en) * | 2018-09-26 | 2019-01-25 | 江苏航天大为科技股份有限公司 | Fast video coding/decoding method on embedded-type ARM platform |
CN116828243A (en) * | 2023-06-05 | 2023-09-29 | 启朔(深圳)科技有限公司 | Hardware encoding and decoding method, mobile terminal, computer device and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101098483A (en) * | 2007-07-19 | 2008-01-02 | 上海交通大学 | Video cluster transcoding system using image group structure as parallel processing element |
CN102098513A (en) * | 2010-12-20 | 2011-06-15 | 北京交通大学 | Real-time transmission method of wireless video |
-
2015
- 2015-06-30 CN CN201510372238.1A patent/CN104994390A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101098483A (en) * | 2007-07-19 | 2008-01-02 | 上海交通大学 | Video cluster transcoding system using image group structure as parallel processing element |
CN102098513A (en) * | 2010-12-20 | 2011-06-15 | 北京交通大学 | Real-time transmission method of wireless video |
Non-Patent Citations (1)
Title |
---|
缐晓林等: "基于iMX27的网络音视频通信的实现", 《电子产品世界》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106804003A (en) * | 2017-03-09 | 2017-06-06 | 广州四三九九信息科技有限公司 | Video editing method and device based on ffmpeg |
CN109274973A (en) * | 2018-09-26 | 2019-01-25 | 江苏航天大为科技股份有限公司 | Fast video coding/decoding method on embedded-type ARM platform |
CN116828243A (en) * | 2023-06-05 | 2023-09-29 | 启朔(深圳)科技有限公司 | Hardware encoding and decoding method, mobile terminal, computer device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102513867B1 (en) | Point cloud geometry compression | |
CN104168439B (en) | A kind of method for video coding and device | |
TWI667914B (en) | Picture data encoding and decoding method and apparatus | |
CN104994390A (en) | Embedded video processor, embedded video processing system and embedded video processor construction method | |
CN101751440A (en) | Data compression/decompression method and device thereof | |
CN102625082A (en) | Video monitoring system | |
CN102802024A (en) | Transcoding method and transcoding system realized in server | |
TW201939948A (en) | Split gain shape vector coding | |
CN110704213A (en) | Virtual and real efficient real-time interaction method and system for digital twin data | |
JP5241743B2 (en) | Dual-stage intra-prediction video encoding system and method | |
CN104980764A (en) | Parallel coding/decoding method, device and system based on complexity balance | |
CN115225881A (en) | Data transmission method, device, equipment and storage medium | |
CN102223537B (en) | Multi-view distributed video coding-decoding system and method based on compressed sensing | |
CN105530313A (en) | Context sensing service migrating method based on OSGi pervasive cloud environment | |
Aurangzeb et al. | Analysis of binary image coding methods for outdoor applications of wireless vision sensor networks | |
CN105791866A (en) | Video coding intermediate data obtaining method, device and system | |
CN101651814A (en) | Embedded video server based on ARM framework and DSP framework | |
CN104320644A (en) | Method, system and device of encoding and decoding depth information | |
CN204291257U (en) | For the encoding device of 3D HD video | |
CN203025771U (en) | E-government system with remote real-time event processing capacity | |
CN101646086B (en) | Method and device of preamble reference modelling of 4*4 block conversion coefficient indication | |
WO2023131126A1 (en) | Method, apparatus, and medium for point cloud coding | |
CN104935785A (en) | Hadoop based distributed video big data prospect detection and motion tracking method | |
Guo et al. | Embedded frame compression for energy-efficient computer vision systems | |
CN105430414A (en) | Inter-frame prediction decoding method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20151021 |
|
RJ01 | Rejection of invention patent application after publication |