CN106534857A - Code stream transmission method and camera based on USB - Google Patents
Code stream transmission method and camera based on USB Download PDFInfo
- Publication number
- CN106534857A CN106534857A CN201610950574.4A CN201610950574A CN106534857A CN 106534857 A CN106534857 A CN 106534857A CN 201610950574 A CN201610950574 A CN 201610950574A CN 106534857 A CN106534857 A CN 106534857A
- Authority
- CN
- China
- Prior art keywords
- code stream
- way
- usb
- stream
- data
- 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
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N19/157—Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/42—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
- H04N19/423—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/42—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
- H04N19/436—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation using parallelised computational arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/70—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The invention provides a code stream transmission method and a camera based on USB. The code stream transmission method comprises the following steps: obtaining a target image to be processed and an image processing control command, compressing and packaging the target image into at least two code streams according to the image processing control command, wherein each code stream is compressed and packaged according to a resolution and a compression standard; transmitting the at least two streams to the opposite end device through at least two drive devices, wherein the drive devices and the code streams have one-to-one correspondence. The code stream transmission method and the camera based on USB provided by the invention can avoid the problems that the video quality of the remote transmission is not clear enough, and the video screen is not smooth enough because the video decoding time is too long, therefore, the user experience is improved.
Description
Technical field
The invention belongs to the communications field, more particularly to a kind of code stream transmission method and the video camera based on USB.
Background technology
With the development of technology, video camera, USB (universal serial bus) (Universal Serial Bus, letter are based especially on
Claim USB) video camera application it is more and more extensive, much apply monitoring security protection on.Code stream refers to video file in the unit interval
The data traffic for inside using, is also code check, is most important part, the resolution of code stream in image quality control in Video coding
Size determine camera video coding image definition.
Video camera based on USB is by transmitting the code stream of certain resolution to Video coding, and the video after coding is entered
Row transmission.The video camera for being currently based on USB can only once transmit a kind of resolution code stream, however, in actual applications, be based on
What the video of the video camera of USB had needs remote transmission, and what is had needs local transmission, due to remote transmission need code stream point
Resolution is higher than the resolution of the code stream of local transmission needs, and only transmits a kind of code stream of resolution, frequently can lead to long-range
The video image quality of transmission is not clear enough, the Capture Program Time of local transmission is long and cause video pictures not smooth enough so that
Consumer's Experience is poor.
The content of the invention
In view of this, it is necessary to for a kind of above-mentioned code stream of resolution of transmission, cause video image quality not clear enough or
It is not smooth enough, Consumer's Experience poor, there is provided a kind of code stream transmission method and the video camera based on USB.
Embodiment of the present invention first aspect provides a kind of code stream transmission method, including:
Pending target image and image procossing control command are obtained, wherein, described image processing controls order bag
The resolution and compression standard of at least two compression of images are included, the resolution is corresponded with the compression standard;
The target image is compressed and is encapsulated as at least two-way code stream according to described image processing controls order, wherein,
Compress and encapsulate according to a kind of resolution and a kind of compression standard per code stream described all the way and form;
Will at least described in two-way, code stream be transferred to opposite equip. by least two driving equipments respectively;Wherein, the drive
Dynamic equipment is corresponded with the code stream.
Further, it is described will at least described in two-way, code stream be transferred to opposite equip. by least two driving equipments respectively
Before, also include:
At least code stream described in two-way is respectively stored in at least two relief areas, wherein, the relief area and the code stream
Correspond;
Opposite equip. will be transferred to by least two driving equipments respectively by code stream at least described in two-way, including:
The code stream of relief area described at least two is will be stored in, institute is transferred to by driving equipment described at least two respectively
State opposite equip.;Wherein, the opposite equip. is corresponded with the relief area.
Further, the driving equipment includes:USB (universal serial bus) video capture device or character type equipment.
Further, it is described code stream to be transferred to opposite end by least two driving equipments respectively and set at least described in two-way
It is standby, including:
Will at least described in two-way, code stream be transferred to opposite equip. from USB interface by least two driving equipments respectively.
Further, it is described the target image to be compressed according to described image processing controls order and be encapsulated as at least two
Road code stream, including:
Compression of images is carried out according to the resolution and compression standard of described image compression, at least two paths of data stream is generated;
Each circuit-switched data stream at least two paths of data stream is packaged respectively, at least two-way code stream is generated;Wherein, often
The code stream is formed by the data stream all the way all the way.
Embodiment of the present invention second aspect provides a kind of video camera based on USB, including:At data acquisition module, image
Reason module and data processing module;
The data acquisition module, for obtaining pending target image and image procossing control command, wherein, institute
Stating image procossing control command includes the resolution and compression standard of at least two compression of images, the resolution and the compression
Standard is corresponded;
Described image processing module, for the target image being compressed and being encapsulated according to described image processing controls order
It is at least two-way code stream, wherein, compress and encapsulate according to a kind of resolution and a kind of compression standard per code stream described all the way and form;
The data processing module, for code stream being transferred to by least two driving equipments respectively at least described in two-way
Opposite equip.;Wherein, the driving equipment is corresponded with the code stream.
Code stream transmission method and the video camera based on USB that the present invention is provided, by obtain pending target image with
And image procossing control command, target image is compressed and is encapsulated as at least two-way code stream according to image procossing control command, will
At least two-way code stream is transferred to opposite equip. by least two driving equipments respectively, can provide simultaneously and transmit at least two-way
The compressed bit stream of different resolution, is embodied as remote transmission and local transmission provides the compressed bit stream of different resolution, can keep away
The video image quality for exempting from remote transmission is not clear enough, the Capture Program Time of local transmission is long and cause video pictures not smooth enough
Problem, meet the application demands such as remote transmission and local transmission, improve Consumer's Experience.
Description of the drawings
Fig. 1 is code stream transmission method provided in an embodiment of the present invention;
Fig. 2 is the structural representation of the video camera based on USB that the embodiment of the present invention one is provided;
Fig. 3 is the structural representation of the video camera based on USB that the embodiment of the present invention two is provided;
Fig. 4 is the structural representation of the video camera based on USB that the embodiment of the present invention three is provided.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, it is below in conjunction with drawings and Examples, right
The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, and
It is not used in the restriction present invention.
Fig. 1 is code stream transmission method provided in an embodiment of the present invention.As shown in figure 1, the code stream transmission method is applied to base
In the video camera of USB (universal serial bus) (Universal Serial Bus, abbreviation USB), the executive agent of the code stream transmission method
It is the video camera based on USB, the code stream transmission method is comprised the following steps:
S101:Obtain pending target image and image procossing control command.
Wherein, image procossing control command includes the resolution and compression standard of at least two compression of images, resolution with
Compression standard is corresponded.
The embodiment of the present invention can be obtained from the video camera based on USB at local pending target image and image
Reason control command, it is also possible to long-range pending mesh is obtained from the opposite equip. being connected by USB with the video camera based on USB
Logo image and image procossing control command, control command include the resolution and compression standard of at least two compression of images,
A kind of compression of images includes a kind of resolution and a compression standard.Specifically, can be USB in video camera based on USB
Process chip obtains local pending target image and image procossing control command, or the video camera based on USB
In USB process chips by USB interface receive opposite equip. send pending target image and image procossing control
Order.The embodiment of the present invention is by obtaining pending target image and image procossing control command, it may be determined that required
The resolution and compression standard of the image are processed in the image and transmitting procedure of transmission.
S102:Target image is compressed according to image procossing control command and be encapsulated as at least two-way code stream.
Wherein, compress and encapsulate according to a kind of resolution and a kind of compression standard per code stream all the way and form.
The embodiment of the present invention is motor rest compression of images using technology according to the resolution and compression standard of compression of images
Technology (Motion Joint Photographic Experts Group, abbreviation MJPEG) and H.264 compression of digital video lattice
Formula carries out compression of images and is encapsulated as at least two-way code stream, and the resolution and compression standard adopted per code stream all the way is different;Need
To illustrate that MJPEG is a kind of video code model, H.264 it is that International Organization for Standardization and International Telecommunication Union propose jointly
A kind of new-generation digital video compression format, realize principle and process and existing using what H.264 MJPEG carried out compression of images
Have in technology using MJPEG with H.264 carry out compression of images realize principle as process, embodiment of the present invention here is not entered
Row is repeated.The embodiment of the present invention is by compressing target image according to image procossing control command and being encapsulated as at least two-way code
Stream, can produce the compressed bit stream of at least two-way different resolution simultaneously, meet the demand of different application.
S103:At least two-way code stream is transferred to into opposite equip. by least two driving equipments respectively.
Wherein, driving equipment is corresponded with code stream.
The multichannel code stream that S102 is generated by the embodiment of the present invention is transferred to opposite equip. by multiple driving equipments, wherein,
Opposite equip. is transferred to by a driving equipment per code stream all the way, opposite equip. is connect by USB with the video camera based on USB
The equipment such as the computer of mouth connection.The embodiment of the present invention can adopt the communication protocol that video camera is supported with opposite equip. to carry out
Transmission, such as, can at least two-way code stream will be set by least two drivings respectively using universal serial bus communications agreement
Standby to be transferred to opposite equip., embodiment of the present invention here is not defined and repeats.Specifically, can be shooting based on USB
USB process chips in machine at least will be transferred to opposite equip. by least two driving equipments by two-way code stream respectively, such as, with
As a example by two-way code stream and two driving equipments, two-way code stream is respectively labeled as into first via code stream and the second road code stream, by two
Driving equipment is respectively labeled as the first driving equipment and the second driving equipment, and first via code stream is passed through first by USB process chips
Driving equipment is transferred to opposite equip., while second code stream is transferred to opposite equip. by the second driving equipment.It is of the invention real
Example is applied by least opposite equip. will be transferred to by least two driving equipments respectively by two-way code stream, can be provided simultaneously and be passed
The compressed bit stream of few two-way different resolution is transported to, the compressed code of different resolution can be provided for remote transmission and local transmission
Stream, can avoid the video image quality of remote transmission not clear enough, the Capture Program Time of local transmission is long and video is drawn
Not smooth enough the problem in face, meets the application demands such as remote transmission and local transmission, improves Consumer's Experience.
In further embodiment, at least opposite end will be transferred to by least two driving equipments respectively by two-way code stream
Before equipment, also include:At least two-way code stream is respectively stored in at least two relief areas, wherein, relief area is with code stream one by one
Correspondence.
At least two-way code stream is transferred to into opposite equip. by least two driving equipments respectively, including:Will be stored in
The code stream of few two relief areas, is transferred to opposite equip. by least two driving equipments respectively;Wherein, opposite equip. and buffering
Area corresponds.
The embodiment of the present invention can be provided and the one-to-one multiple buffering area of code stream, and multiple bit streams are set to opposite end
It is standby first to obtain respectively and store in corresponding relief area per code stream all the way, centralized stores and process are carried out to code stream before,
When corresponding relief area is all stored Deng the code stream of composograph picture opposite equip. is transferred to by driving equipment respectively.
For example, by taking two-way code stream, two relief areas and two driving equipments as an example, two-way code stream is respectively labeled as
Two relief areas are respectively labeled as first buffering area and second buffering area by first via code stream and the second road code stream, and two are driven
Dynamic equipment is respectively labeled as the first driving equipment and the second driving equipment, and first via code stream is stored in first by the embodiment of the present invention
Relief area, while the second code stream is stored in second buffering area, waits the first via code stream of composograph picture to be stored entirely in
During one relief area, the first code stream in first buffering area is all transferred to by opposite equip. by the first driving equipment, in the same manner, etc.
When second road code stream of composograph picture is stored entirely in second buffering area, by the second driving equipment by second buffering area
The second code stream be all transferred to opposite equip..
Specifically, can be that USB process chips in video camera based on USB provide one-to-one with code stream multiple slow
Rush area.The embodiment of the present invention by least at least two relief area one-to-one with code stream will be respectively stored in by two-way code stream,
Simultaneous transmission at least two-way code stream is realized, while improving Consumer's Experience, at least two-way code stream at least two is respectively stored in into
Relief area is focused on, and is effectively mitigated the pressure that driving equipment processes compressed bit stream, and then is improved the video camera based on USB
At least efficiency of transmission of two-way code stream.
In further embodiment, driving equipment includes:USB (universal serial bus) video capture device or character type set
It is standby.In the embodiment of the present invention, at least two driving equipments can all be USB (universal serial bus) Video Capture (USB video
Device class, abbreviation UVC) equipment, it is also possible to all it is character type (Teletypes, abbreviation TTY) equipment, it is also possible to part
Be UVC equipment, be partly TTY equipment, wherein, UVC equipment be support UVC consensus standards webcam driver equipment, TTY equipment
It is the character type driving equipment processed in units of single character, UVC equipment and TTY equipment both equipment are all standards
Computer drives equipment, by both device transmissions at least two-way code stream be easy to the opposite equip.s such as computer recognize.Specifically
, by taking two-way code stream, two relief areas and two driving equipments as an example, two-way code stream is respectively labeled as into first via code stream and
Two relief areas are respectively labeled as first buffering area and second buffering area by two road code streams, and two driving equipments are distinguished labelling
For the first driving equipment and the second driving equipment, the first driving equipment and the second driving equipment can be regarded for USB (universal serial bus)
Frequency capture device, also can be character type equipment, it is also possible to which the first driving equipment is USB (universal serial bus) video capture device,
Second driving equipment is character type equipment.
For example, with the first driving equipment as USB (universal serial bus) video capture device, the second driving equipment is character
As a example by type equipment, two driving equipments are realized by software in USB process chips:One is UVC equipment, and one sets for TTY
It is standby.The control command of UVC equipment and TTY equipment is transmitted to into picture processing chip by UART, will be obtained at least from FPGA
Two-way code stream is saved in the different relief area of USB process chips, wherein the first via bit stream of first buffering area is set to UVC
It is standby, TTY equipment is given by the second road bit stream of second buffering area.
In further embodiment, at least opposite end will be transferred to by least two driving equipments respectively by two-way code stream
Equipment, including:At least two-way code stream is transferred to into opposite equip. from USB interface by least two driving equipments respectively.
Specifically, the embodiment of the present invention can be that USB process chips in the video camera based on USB will at least two-way code stream
Opposite equip. is transferred to from USB interface by least two driving equipments respectively.The embodiment of the present invention will by USB process chips
At least two-way code stream is transferred to opposite equip. by least two driving equipments respectively, can provide different points of at least two-way simultaneously
The compressed bit stream of resolution, can provide the compressed bit stream of different resolution for remote transmission and local transmission, can avoid long-range
The video image quality of transmission is not clear enough, the Capture Program Time of local transmission is long and cause that video pictures are not smooth enough to ask
Topic, meets the application demands such as remote transmission and local transmission, improves Consumer's Experience.
In further embodiment, target image is compressed according to image procossing control command and be encapsulated as at least two
Road code stream, including:Compression of images is carried out according to the resolution and compression standard of compression of images, at least two paths of data stream is generated;Will
Each circuit-switched data stream at least in two paths of data stream is packaged respectively, generates at least two-way code stream;Wherein, per code stream all the way by
Data stream is formed all the way.The embodiment of the present invention is moved quiet according to the resolution and compression standard of compression of images using technology
Only Image Compression (Motion Joint Photographic Experts Group, abbreviation MJPEG) and H.264 numeral
Video compression format carries out compression of images, generates at least two paths of data stream, then by each way at least two paths of data stream
It is packaged according to stream, generates at least two-way code stream, each of which road code stream is formed by data stream all the way, per code stream all the way
Using resolution and compression standard it is different;It should be noted that MJPEG is a kind of video code model, H.264 it is international
A kind of new-generation digital video compression format that standardization body and International Telecommunication Union propose jointly, using MJPEG H.264
Carry out the realization original for realizing in principle and process and prior art using MJPEG and H.264 carrying out compression of images of compression of images
As process, embodiment of the present invention here is not repeated reason.
Specifically, can be picture processing chip in video camera based on USB according to image procossing control command by mesh
Logo image is compressed, and generates at least two paths of data stream, realizes MJPEG and H.264 compress.Picture processing chip is by universal asynchronous receipts
Send out transmitter (Universal Asynchronous Receiver/Transmitter, abbreviation UART) interface USB process
The image procossing control command of chip, controls the data output of different resolution and different compression standards.Picture processing chip leads to
Cross at least two paths of data stream that flash memory control (NAND Flash Controller, abbreviation NANDC) interface will be generated
It is sent to field programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) to be packaged, wherein
NANDC provides storage controller interface connection sheet outer nand memory, so as to complete the access of data flow;Wherein, image procossing
At least two paths of data stream for generating is sent to the step that implements of FPGA by chip NANDC interfaces:By taking two-way code stream as an example,
Two-way code stream being respectively labeled as into the first code stream and the second code stream, USB control commands being obtained from UART interface, image resolution is set
Rate and Standard of image compression, generate two-way code stream;By NANDC interfaces, FPGA buffer states are inquired about, if empty send the
Code stream otherwise waits FPGA buffer states for sky always to FPGA all the way;By NANDC interfaces, first via code stream knot is sent
Beam order is to FPGA;By NANDC interfaces, buffer state is inquired about, if the empty second road code stream that sends is to FPGA, otherwise one
It is straight to wait FPGA buffer states for sky;By NANDC interfaces, send the second road code stream and terminate order to FPGA.It can be base
Field programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) in the video camera of USB is right
At least two paths of data stream that picture processing chip is generated is packaged conversion, by each circuit-switched data stream at least two paths of data stream
Be packaged, generate at least two-way code stream, then by encapsulation transition after at least two-way code stream pass through first in first out (First In
First Out, abbreviation FIFO) memory interface is sent to USB process chips, and wherein FIFO memory provides storage control and connects
Mouth connection chip external memory, so as to complete the access of code stream;Wherein, at least two paths of data that FPGA is generated to picture processing chip
Stream is packaged and is converted to concretely comprising the following steps at least two-way code stream:Data channel and caching passage are set up on FPGA;From figure
As the NANDC interfaces of process chip obtain data, FPGA relief areas are cached to;FPGA relief areas shape is provided by NANDC interfaces
State is to picture processing chip;According to the FIFO memory interface requirement between FPGA and USB process chips, to picture processing chip
The data flow of offer is packaged conversion.The embodiment of the present invention is by compressing target image simultaneously according to image procossing control command
At least two-way code stream is encapsulated as, the compressed bit stream of at least two-way different resolution can be produced simultaneously, the need of different application are met
Ask.
The code stream transmission method, by obtaining pending target image and image procossing control command, according to image
Target image is compressed and is encapsulated as at least two-way code stream by processing controls order, at least will pass through at least two respectively by two-way code stream
Driving equipment is transferred to opposite equip., can provide and transmit the compressed bit stream of at least two-way different resolution simultaneously, be embodied as
Remote transmission and local transmission provide the compressed bit stream of different resolution, and the video image quality of remote transmission can be avoided not clear enough
Clear, the Capture Program Time of local transmission is long and the problem that causes video pictures not smooth enough, meets remote transmission and local
The application demands such as transmission, improve Consumer's Experience.
Meanwhile, the embodiment of the present invention also provides a kind of video camera based on USB, and Fig. 2 is what the embodiment of the present invention one was provided
Structural representation based on the video camera of USB.As shown in Fig. 2 should be included based on the video camera of USB:Data acquisition module 21, figure
As processing module 22 and data processing module 23.
Data acquisition module 21, for obtaining pending target image and image procossing control command, wherein, image
Processing controls order includes the resolution and compression standard of at least two compression of images, and resolution is corresponded with compression standard.
Image processing module 22, for being compressed target image according to image procossing control command and being encapsulated as at least two-way
Code stream, wherein, every code stream all the way is compressed and is encapsulated according to a kind of resolution and a kind of compression standard and formed.
Data processing module 23, at least two-way code stream being transferred to opposite end by least two driving equipments respectively and set
It is standby;Wherein, driving equipment is corresponded with code stream.
In further embodiment, data processing module 23 is additionally operable to:Will at least two-way code stream be respectively stored in
Few two relief areas, wherein, relief area is corresponded with code stream.
Data processing module 23 specifically for:The code stream of at least two relief areas is will be stored in, respectively by least two
Driving equipment is transferred to opposite equip.;Wherein, opposite equip. is corresponded with relief area.
In further embodiment, driving equipment includes:USB (universal serial bus) video capture device or character type set
It is standby.
In further embodiment, data processing module 23 specifically for:At least two-way code stream will pass through respectively extremely
Few two driving equipments are transferred to opposite equip. from USB interface.
In further embodiment, in the embodiment depicted in figure 2, image processing module 22 includes:Data genaration mould
Block 221 and data package module 222.
Data generation module 221, carries out compression of images for the resolution and compression standard according to compression of images, generate to
Few two paths of data stream.
Data package module 222, for each circuit-switched data stream at least two paths of data stream is packaged respectively, generates
At least two-way code stream;Wherein, formed by data stream all the way per code stream all the way.
Video camera based on USB provided in an embodiment of the present invention is used for the technical scheme for performing embodiment of the method shown in Fig. 1,
Which realizes that principle is similar with technique effect, and here is omitted.
The video camera based on USB is somebody's turn to do, pending target image and image procossing control are obtained by data acquisition module
Target image is compressed and is encapsulated as at least two-way code stream according to image procossing control command by system order, image processing module, number
At least opposite equip. will be transferred to by least two driving equipments respectively by two-way code stream according to processing module, can provide simultaneously and
The compressed bit stream of transmission at least two-way different resolution, is embodied as remote transmission and local transmission provides the compression of different resolution
Code stream, can avoid the video image quality of remote transmission not clear enough, the Capture Program Time of local transmission is long and cause video
Not smooth enough the problem of picture, meets the application demands such as remote transmission and local transmission, improves Consumer's Experience.
Meanwhile, the embodiment of the present invention also provides a kind of video camera based on USB, and Fig. 3 is what the embodiment of the present invention two was provided
Based on the structural representation of the video camera of USB, Fig. 4 is that the structure of the video camera based on USB that the embodiment of the present invention three is provided is shown
It is intended to.As shown in Figure 3 and Figure 4, should be included based on the video camera of USB:USB process chips 31, picture processing chip 32 and scene
Programmable gate array 33.
USB process chips 31, for obtaining pending target image and image procossing control command, wherein, image
Processing controls order includes the resolution and compression standard of at least two compression of images, and resolution is corresponded with compression standard;
And at least opposite equip. will be transferred to by least two driving equipments respectively by two-way code stream;Wherein, driving equipment and code stream
Correspond.
Specifically, can be that USB process chips 31 obtain local pending target image and image procossing control life
Order, or USB process chips 31 receive opposite end by USB interface and set at the pending target image and image of transmission
Reason control command.
Picture processing chip 32, carries out compression of images for the resolution and compression standard according to compression of images, generate to
Few two paths of data stream.Specifically, target image is compressed by picture processing chip 32 according to image procossing control command, is generated at least
Two paths of data stream, realizes MJPEG and H.264 compresses, and picture processing chip 32 passes through universal asynchronous receiving-transmitting transmitter
(Universal Asynchronous Receiver/Transmitter, abbreviation UART) interface USB process chips 31
Image procossing control command, controls the data output of different resolution and different compression standards, and picture processing chip 32 is by fast
At least two paths of data stream for generating is sent by flash card controller (NAND Flash Controller, abbreviation NANDC) interface
It is packaged to field programmable gate array 33 (Field-Programmable Gate Array, abbreviation FPGA), wherein
NANDC provides storage controller interface connection sheet outer nand memory, so as to complete the access of data flow;Wherein, image procossing
At least two paths of data stream for generating is sent to the step that implements of FPGA by chip 32NANDC interfaces:With two-way code stream it is
Two-way code stream is respectively labeled as the first code stream and the second code stream by example, obtains USB control commands from UART interface, arranges image
Resolution and Standard of image compression, generate two-way code stream;By NANDC interfaces, FPGA buffer states are inquired about, if empty send out
Send first via code stream to FPGA, FPGA buffer states are otherwise waited always for sky;By NANDC interfaces, first via code is sent
Stream terminates order to FPGA;By NANDC interfaces, buffer state is inquired about, it is if the empty second road code stream that sends is to FPGA, no
FPGA buffer state is waited always then for sky;By NANDC interfaces, send the second road code stream and terminate order to FPGA.
Field programmable gate array 33 (Field-Programmable Gate Array, abbreviation FPGA), near
Each circuit-switched data stream in few two paths of data stream is packaged respectively, generates at least two-way code stream;Wherein, per code stream all the way by one
The encapsulation of circuit-switched data stream is formed.Specifically, FPGA is packaged conversion at least two paths of data stream that picture processing chip 32 is generated,
Each circuit-switched data stream at least two paths of data stream is packaged, at least two-way code stream is generated, then by after encapsulation transition
At least two-way code stream is sent to USB process by first in first out (First In First Out, abbreviation FIFO) memory interface
Chip 31, wherein FIFO memory provide storage controller interface connection chip external memory, so as to complete the access of code stream;Its
In, FPGA is packaged the concrete step for being converted at least two-way code stream at least two paths of data stream that picture processing chip 32 is generated
Suddenly it is:Data channel and caching passage are set up on FPGA;Data, caching are obtained from the NANDC interfaces of picture processing chip 32
To FPGA relief areas;FPGA buffer states are provided to picture processing chip 32 by NANDC interfaces;At FPGA and USB
FIFO memory interface requirement between reason chip 31, is packaged conversion to the data flow that picture processing chip 32 is provided.
In further embodiment, driving equipment includes:USB (universal serial bus) video capture device or character type set
It is standby.In the embodiment of the present invention, at least two driving equipments can all be USB (universal serial bus) Video Capture (USB video
Device class, abbreviation UVC) equipment, it is also possible to all it is character type (Teletypes, abbreviation TTY) equipment, it is also possible to part
Be UVC equipment, be partly TTY equipment, wherein, UVC equipment be support UVC consensus standards webcam driver equipment, TTY equipment
It is the character type driving equipment processed in units of single character, UVC equipment and TTY equipment both equipment are all standards
Computer drives equipment, by both device transmissions at least two-way code stream be easy to the opposite equip.s such as computer recognize.Specifically
, by taking two-way code stream, two relief areas and two driving equipments as an example, two-way code stream is respectively labeled as into first via code stream and
Two relief areas are respectively labeled as first buffering area and second buffering area by two road code streams, and two driving equipments are distinguished labelling
For the first driving equipment and the second driving equipment, the first driving equipment and the second driving equipment can be regarded for USB (universal serial bus)
Frequency capture device, also can be character type equipment, it is also possible to which the first driving equipment is USB (universal serial bus) video capture device,
Second driving equipment is character type equipment.For example, with the first driving equipment as USB (universal serial bus) video capture device, the
As a example by two driving equipments are character type equipment, two driving equipments are realized by software in USB process chips 31:One is
UVC equipment, one is TTY equipment.The control command of UVC equipment and TTY equipment is transmitted to into picture processing chip by UART
32, at least two-way code stream obtained from FPGA is saved in into the different relief area of USB process chips 31, wherein by first buffering area
First via bit stream give UVC equipment, give TTY equipment by the second road bit stream of second buffering area.
Further, USB process chips 31, are additionally operable to at least two-way code stream to be respectively stored at least two relief areas,
Wherein, relief area is corresponded with code stream;The code stream of at least two relief areas is will be stored in, is driven by least two respectively and is set
It is standby to be transferred to opposite equip.;Wherein, opposite equip. is corresponded with relief area.Specifically, USB process chips 31 will at least two-way
Code stream is transferred to opposite equip. from USB interface by least two driving equipments respectively.
Further, USB process chips 31, specifically at least at least two driving equipments will be passed through respectively by two-way code stream
Opposite equip. is transferred to from USB interface.
Video camera based on USB provided in an embodiment of the present invention is used for the technical scheme for performing embodiment of the method shown in Fig. 1,
Which realizes that principle is similar with technique effect, and here is omitted.
The video camera based on USB is somebody's turn to do, pending target image and image procossing control are obtained by USB process chips
Order;Picture processing chip carries out compression of images according to the resolution and compression standard of compression of images, generates at least two paths of data
Stream;Each circuit-switched data stream at least two paths of data stream is packaged by FPGA respectively, generates at least two-way code stream;USB process
Chip at least will be transferred to opposite equip. by least two driving equipments by two-way code stream respectively, can provide simultaneously and transmit to
The compressed bit stream of few two-way different resolution, is embodied as remote transmission and local transmission provides the compressed bit stream of different resolution,
The video image quality of remote transmission can be avoided not clear enough, the Capture Program Time of local transmission is long and cause video pictures not
Enough smooth problems, meet the application demands such as remote transmission and local transmission, improve Consumer's Experience.
Presently preferred embodiments of the present invention is the foregoing is only, not to limit the present invention, all essences in the present invention
Any modification, equivalent and improvement made within god and principle etc., should be included within the scope of the present invention.
Claims (10)
1. a kind of code stream transmission method, it is adaptable to the video camera based on general-purpose serial bus USB, it is characterised in that the code stream
Transmission method includes:
Obtain pending target image and image procossing control command, wherein, described image processing controls order include to
The resolution and compression standard of few two kinds of compression of images, the resolution are corresponded with the compression standard;
The target image is compressed and is encapsulated as at least two-way code stream according to described image processing controls order, wherein, it is each
Code stream described in road is compressed and is encapsulated according to a kind of resolution and a kind of compression standard and formed;
Will at least described in two-way, code stream be transferred to opposite equip. by least two driving equipments respectively;Wherein, the driving sets
It is standby to correspond with the code stream.
2. code stream transmission method according to claim 1, it is characterised in that described at least code stream described in two-way to lead to respectively
Cross before at least two driving equipments are transferred to opposite equip., also include:
At least code stream described in two-way is respectively stored in at least two relief areas, wherein, the relief area is with the code stream one by one
Correspondence;
Opposite equip. will be transferred to by least two driving equipments respectively by code stream at least described in two-way, including:
The code stream of relief area described at least two is will be stored in, it is described right to be transferred to by driving equipment described at least two respectively
End equipment;Wherein, the opposite equip. is corresponded with the relief area.
3. code stream transmission method according to claim 1 and 2, it is characterised in that the driving equipment includes:General serial
Bus video capture device or character type equipment.
4. code stream transmission method according to claim 1 and 2, it is characterised in that it is described will code stream point at least described in two-way
Opposite equip. is not transferred to by least two driving equipments, including:
Will at least described in two-way, code stream be transferred to opposite equip. from USB interface by least two driving equipments respectively.
5. code stream transmission method according to claim 1 and 2, it is characterised in that described according to described image processing controls
The target image is compressed and is encapsulated as at least two-way code stream by order, including:
Compression of images is carried out according to the resolution and compression standard of described image compression, at least two paths of data stream is generated;
Each circuit-switched data stream at least two paths of data stream is packaged respectively, at least two-way code stream is generated;Wherein, per all the way
The code stream is formed by the data stream all the way.
6. a kind of video camera based on general-purpose serial bus USB, it is characterised in that the video camera includes;
Data acquisition module, for obtaining pending target image and image procossing control command, wherein, at described image
Reason control command includes the resolution and compression standard of at least two compression of images, and the resolution is with the compression standard one by one
Correspondence;
Image processing module, for being compressed the target image according to described image processing controls order and being encapsulated as at least two
Road code stream, wherein, every code stream described all the way is compressed and is encapsulated according to a kind of resolution and a kind of compression standard and formed;
Data processing module, for code stream being transferred to opposite end by least two driving equipments respectively and set at least described in two-way
It is standby;Wherein, the driving equipment is corresponded with the code stream.
7. the video camera based on USB according to claim 6, it is characterised in that the data processing module is additionally operable to:
At least code stream described in two-way is respectively stored in at least two relief areas, wherein, the relief area is with the code stream one by one
Correspondence;
The data processing module specifically for:
The code stream of relief area described at least two is will be stored in, it is described right to be transferred to by driving equipment described at least two respectively
End equipment;Wherein, the opposite equip. is corresponded with the relief area.
8. the video camera based on USB according to claim 6 or 7, it is characterised in that the driving equipment includes:It is general
Universal serial bus video capture device or character type equipment.
9. the video camera based on USB according to claim 6 or 7, it is characterised in that the data processing module is specifically used
In:
Will at least described in two-way, code stream be transferred to opposite equip. from USB interface by least two driving equipments respectively.
10. the video camera based on USB according to claim 6 or 7, it is characterised in that described image processing module includes:
Data generation module and data package module;
The data generation module, the resolution and compression standard for being compressed according to described image carry out compression of images, generate
At least two paths of data stream;
The data package module, for each circuit-switched data stream at least two paths of data stream is packaged respectively, generate to
Few two-way code stream;Wherein, formed by the data stream all the way per code stream described all the way.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610950574.4A CN106534857A (en) | 2016-11-02 | 2016-11-02 | Code stream transmission method and camera based on USB |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610950574.4A CN106534857A (en) | 2016-11-02 | 2016-11-02 | Code stream transmission method and camera based on USB |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106534857A true CN106534857A (en) | 2017-03-22 |
Family
ID=58325198
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610950574.4A Pending CN106534857A (en) | 2016-11-02 | 2016-11-02 | Code stream transmission method and camera based on USB |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106534857A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107666611A (en) * | 2017-09-13 | 2018-02-06 | 维沃移动通信有限公司 | A kind of bit rate control method and mobile terminal |
CN108512812A (en) * | 2017-02-27 | 2018-09-07 | 杭州海康威视数字技术股份有限公司 | A kind of bit stream data generation method and device |
CN109862322A (en) * | 2019-02-19 | 2019-06-07 | 深圳市研诺达科技有限公司 | A kind of audio-visual acquisition equipment of 4G based on the transmission of UVC data |
WO2020135407A1 (en) * | 2018-12-26 | 2020-07-02 | 厦门星宸科技有限公司 | Multi-stream video processing apparatus and method |
CN112492348A (en) * | 2020-10-20 | 2021-03-12 | 广州视源电子科技股份有限公司 | Multi-code stream processing and output method, equipment and storage medium |
CN112689083A (en) * | 2020-11-27 | 2021-04-20 | 深兰科技(上海)有限公司 | Vehicle-mounted camera configuration method and device, electronic equipment and storage medium |
WO2023029567A1 (en) * | 2021-08-30 | 2023-03-09 | 成都纵横自动化技术股份有限公司 | Visualization method and system for various data collected by sensor |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101272498A (en) * | 2008-05-14 | 2008-09-24 | 杭州华三通信技术有限公司 | Video encoding method and device |
US20140047143A1 (en) * | 2012-08-10 | 2014-02-13 | Logitech Europe S.A. | Wireless video camera and connection methods including a usb emulation |
CN104349100A (en) * | 2013-07-25 | 2015-02-11 | 杭州海康威视数字技术股份有限公司 | DVR monitoring system supporting single-channel dual-stream video recording and method thereof |
CN104519257A (en) * | 2014-12-26 | 2015-04-15 | 广东光阵光电科技有限公司 | Dual-stream camera module of VTM machine and shooting method of dual-stream camera module |
CN104954795A (en) * | 2015-07-02 | 2015-09-30 | 东南大学 | Image acquisition and transmission system based on JPEG2000 |
CN106060443A (en) * | 2016-07-13 | 2016-10-26 | 福州瑞芯微电子股份有限公司 | Video recording method and device based on Android system |
-
2016
- 2016-11-02 CN CN201610950574.4A patent/CN106534857A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101272498A (en) * | 2008-05-14 | 2008-09-24 | 杭州华三通信技术有限公司 | Video encoding method and device |
US20140047143A1 (en) * | 2012-08-10 | 2014-02-13 | Logitech Europe S.A. | Wireless video camera and connection methods including a usb emulation |
CN104349100A (en) * | 2013-07-25 | 2015-02-11 | 杭州海康威视数字技术股份有限公司 | DVR monitoring system supporting single-channel dual-stream video recording and method thereof |
CN104519257A (en) * | 2014-12-26 | 2015-04-15 | 广东光阵光电科技有限公司 | Dual-stream camera module of VTM machine and shooting method of dual-stream camera module |
CN104954795A (en) * | 2015-07-02 | 2015-09-30 | 东南大学 | Image acquisition and transmission system based on JPEG2000 |
CN106060443A (en) * | 2016-07-13 | 2016-10-26 | 福州瑞芯微电子股份有限公司 | Video recording method and device based on Android system |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108512812A (en) * | 2017-02-27 | 2018-09-07 | 杭州海康威视数字技术股份有限公司 | A kind of bit stream data generation method and device |
CN107666611A (en) * | 2017-09-13 | 2018-02-06 | 维沃移动通信有限公司 | A kind of bit rate control method and mobile terminal |
CN107666611B (en) * | 2017-09-13 | 2019-08-20 | 维沃移动通信有限公司 | A kind of bit rate control method and mobile terminal |
WO2020135407A1 (en) * | 2018-12-26 | 2020-07-02 | 厦门星宸科技有限公司 | Multi-stream video processing apparatus and method |
CN111372038A (en) * | 2018-12-26 | 2020-07-03 | 厦门星宸科技有限公司 | Multi-stream image processing device and method |
CN109862322A (en) * | 2019-02-19 | 2019-06-07 | 深圳市研诺达科技有限公司 | A kind of audio-visual acquisition equipment of 4G based on the transmission of UVC data |
CN112492348A (en) * | 2020-10-20 | 2021-03-12 | 广州视源电子科技股份有限公司 | Multi-code stream processing and output method, equipment and storage medium |
CN112689083A (en) * | 2020-11-27 | 2021-04-20 | 深兰科技(上海)有限公司 | Vehicle-mounted camera configuration method and device, electronic equipment and storage medium |
WO2023029567A1 (en) * | 2021-08-30 | 2023-03-09 | 成都纵横自动化技术股份有限公司 | Visualization method and system for various data collected by sensor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106534857A (en) | Code stream transmission method and camera based on USB | |
CN104168439B (en) | A kind of method for video coding and device | |
CN107071520B (en) | Method for realizing CoaXPres high-speed image interface protocol IP | |
CN1578452A (en) | Remote display protocol, video display system, and terminal equipment | |
CN110022297A (en) | A kind of HD video live broadcast system | |
CN104506868B (en) | Video code flow transmission method, apparatus and system | |
CN114286035B (en) | Image acquisition card, image acquisition method and image acquisition system | |
CN207560231U (en) | A kind of LED display network controller | |
CN102404414A (en) | Ethernet communication system and method based on multi-media card/security digital card (MMC/SD) interface | |
CN102123275B (en) | Video component data information acquiring and extracting method | |
CN103503381B (en) | The method of data transmission of device redirection, Apparatus and system | |
CN102641598A (en) | Toy control method, remote controller and system | |
CN107360380B (en) | Double-code-rate compression camera device and upper computer decoding device thereof | |
CN105828082B (en) | Video image Fast Compression system and method | |
KR101710011B1 (en) | Image data transmission and reception method and apparatus | |
CN103428493A (en) | Light wireless transmission system for high-definition videos | |
CN107888945A (en) | A kind of image transfer method and system | |
CN103997486A (en) | Interaction method and system for white boards of different operating system platforms | |
CN1870505A (en) | Embedded system and its information processing method | |
CN201123043Y (en) | Household wireless multimedia game system | |
CN106534774A (en) | Image transmission system | |
CN104780390A (en) | Video processing method and device | |
CN217825146U (en) | Ultra-high-definition video wireless transmitting device, wireless receiving device and wireless transmission system applying compression algorithm | |
CN103841039B (en) | The method and apparatus of network streaming | |
KR101839415B1 (en) | Image data transmission and reception method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170322 |
|
RJ01 | Rejection of invention patent application after publication |