CN108200387A - A kind of transmission method of file, system and camera - Google Patents
A kind of transmission method of file, system and camera Download PDFInfo
- Publication number
- CN108200387A CN108200387A CN201711431275.0A CN201711431275A CN108200387A CN 108200387 A CN108200387 A CN 108200387A CN 201711431275 A CN201711431275 A CN 201711431275A CN 108200387 A CN108200387 A CN 108200387A
- Authority
- CN
- China
- Prior art keywords
- data
- file
- target terminal
- transmitted
- video stream
- 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
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
- H04N21/8549—Creating video summaries, e.g. movie trailer
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Databases & Information Systems (AREA)
- Computer Security & Cryptography (AREA)
- Studio Devices (AREA)
Abstract
The present invention is suitable for field of communication technology, provides a kind of transmission method of file, system and camera, the transmission method of the file includes:The attribute information for the file to be transmitted that target terminal is sent is received, according to attribute information, file to be transmitted is obtained, file to be transmitted is converted into video stream data, based on UVC agreements, video stream data is transmitted to target terminal.Video stream data, based on UVC agreements, is transmitted to target terminal by the present invention by the way that file to be transmitted is converted to video stream data, so as to effectively increase the speed of data transmission, is shortened data transmission period, is improved efficiency.
Description
Technical field
The invention belongs to a kind of field of communication technology more particularly to transmission method of file, system and cameras.
Background technology
With the development and progress of society, more and more using the people of camera, camera has been increasingly becoming people's life and has worked as
In an indispensable part.However, the memory capacity due to camera is increasing, when magazine data are exported, occupy
Data transmission period it is also increasingly longer.
So the problem of data transmission bauds is low, and time-consuming and efficiency is low exists in the prior art.
Invention content
In view of this, an embodiment of the present invention provides a kind of transmission method of file, system and camera, to solve existing skill
It is low there are data transmission bauds in art, the problem of time-consuming and efficiency is low.
The first aspect of the embodiment of the present invention provides a kind of transmission method of file, including:
Receive the attribute information for the file to be transmitted that target terminal is sent.
According to the attribute information, the file to be transmitted is obtained.
The file to be transmitted is converted into video stream data.
Based on UVC (consensus standard that USB video clas, USB video capture devices define) agreement, by the video
Stream Data Transmission is to the target terminal.
The second aspect of the embodiment of the present invention provides a kind of Transmission system of file, including:
Attribute information acquisition module, for receiving the attribute information of the file to be transmitted of target terminal transmission.
File acquisition module, for according to the attribute information, obtaining the file to be transmitted.
Processing module, for the file to be transmitted to be converted to video stream data.
The video stream data for being based on UVC agreements, is transmitted to the target terminal by transmission module.
The third aspect of the embodiment of the present invention provides a kind of camera, including memory, processor and is stored in described
In memory and the computer program that can run on the processor, the processor are realized when performing the computer program
The step of method as described above.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage
Media storage has the step of computer program, the computer program realizes method as described above when being executed by processor.
Existing advantageous effect is the embodiment of the present invention compared with prior art:By receiving the to be passed of target terminal transmission
The attribute information of defeated file, according to attribute information, obtains file to be transmitted, and file to be transmitted is converted to video stream data, base
In UVC agreements, video stream data is transmitted to target terminal.The embodiment of the present invention by file to be transmitted by being converted to video flowing
Video stream data based on UVC agreements, is transmitted to target terminal by data, so as to effectively increase the speed of data transmission, is shortened
Data transmission period, improves efficiency.
Description of the drawings
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description be only the present invention some
Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the realization flow diagram of the transmission method of file provided in an embodiment of the present invention;
Fig. 2 is the specific implementation flow diagram of the step S103 in Fig. 1 provided in an embodiment of the present invention;
Fig. 3 is the structure diagram of the Transmission system of file provided in an embodiment of the present invention;
Fig. 4 is the structure diagram of processing module in Fig. 3 provided in an embodiment of the present invention;
Fig. 5 is the schematic diagram of camera provided in an embodiment of the present invention.
Specific embodiment
In being described below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specifically
The present invention can also be realized in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
Road and the detailed description of method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Embodiment 1:
Fig. 1 shows the realization flow of the transmission method for the file that one embodiment of the present of invention provides, and process is described in detail
It is as follows:
In step S101, the attribute information for the file to be transmitted that target terminal is sent is received.
In the present embodiment, the attribute information of file to be transmitted includes the store path and filename of file to be transmitted.
The present embodiment can be applied in camera, when target terminal is wanted to obtain file data from camera, send to be passed
The attribute information of defeated file is to camera.
In step s 102, according to attribute information, file to be transmitted is obtained.
In the present embodiment, it according to the store path and filename of file to be transmitted, is searched, is obtained to be passed locally
Defeated file.
In step s 103, file to be transmitted is converted into video stream data.
In the present embodiment, file to be transmitted is converted to the video stream data that can be transmitted by UVC agreements.
In step S104, based on UVC agreements, video stream data is transmitted to target terminal.
In the present embodiment, based on UVC agreements, pass through usb communication line transmission video stream data to target terminal.
In one embodiment of the invention, after step s 104, the transmission method of the file further includes:Work as reception
When the file verification sent to target terminal is asked, the file verification value of video stream data is calculated;File verification value is sent to
Target terminal, whether file verification value is used to indicate the video stream data that target terminal verification receives correct.
In one embodiment, the file verification value for calculating video stream data, target is sent to by file verification value
Terminal, including:
1) based on digest algorithm, the eap-message digest for calculating video stream data makes a summary as first message, first message is plucked
Target terminal is sent to, the first message abstract is used to indicate what target terminal was received based on digest algorithm calculating
The corresponding eap-message digest of video stream data is made a summary as second message, and judges that first message abstract and second message abstract are
It is no identical.
2) when the transmitting fault information for receiving target terminal feedback, the video stream data is transmitted to again described
Target terminal, when the transmitting fault information judges that first message abstract and second message abstract differ for the target terminal
It sends out.
In the present embodiment, file verification value can be the eap-message digest of video stream data.When whole video stream datas
After end of transmission, target terminal sends file verification and asks to camera, when camera receives file verification request, passes through abstract
Algorithm calculates the eap-message digest of video stream data, and makes a summary as first message, and first message abstract is sent to target end
End, the corresponding eap-message digest of video stream data that target terminal is received by identical digest algorithm calculating, and as the
Two eap-message digests, target terminal judges whether first message abstract and second message abstract are identical, when the first summary info and the
When two summary infos are identical, then it represents that the video stream data of reception is identical with the video stream data that camera transmits, camera transmission
Video stream data is not changed in transmission process, when the first summary info and the second summary info differ, then it represents that
The video stream data that the video stream data of reception is transmitted with camera differs, and the video stream data of camera transmission is in transmission process
It is changed.
By taking a concrete application scene as an example, when the file verification request for receiving target terminal transmission, pass through MD5
(Message Digest Algorithm 5, Message Digest Algorithm 5) digest algorithm calculates the MD5 of video stream data
Value, and the first MD5 values are used as, MD5 values are sent to target terminal, target terminal calculates regarding for reception according to MD5 digest algorithm
The corresponding MD5 values of frequency flow data, and the 2nd MD5 values are used as, compare the first MD5 values and whether the 2nd MD5 values are identical, so that it is determined that
Whether identical go out the video stream data that the video stream data of reception and camera transmit.
In the present embodiment, by calculating the file verification value of video stream data to be transmitted, and file verification value is sent
To target terminal, make video stream file that target terminal received according to the verification of file verification value whether the video transmitted with camera
Flow data is identical, improves the safety and reliability of video stream data transmission.
In one embodiment, UVC agreements are the consensus standard that USB video capture devices define, based on UVC agreements, mesh
Mark terminal can obtain the video that camera captures in real time, and can control camera.
In one embodiment, mainstream operation system (such as Windows XP SP2and later, Linux 2.4.6and
Later, MacOS 10.5and later, Android 4.0and later) UVC device drives are provided, therefore meet
The camera of UVC specifications communicates in the case where not needing to install any driver with target terminal.
In the present embodiment, by the way that file to be transmitted is converted to video stream data, based on UVC agreements, by video fluxion
According to target terminal is transmitted to, the speed of data transmission is improved, shortens the time of data transmission.
As shown in Fig. 2, in one embodiment of the invention, step S103 is specifically included in the embodiment corresponding to Fig. 1:
In step s 201, file to be transmitted is converted into binary file.
In step S202, binary file is divided into multiple frame data.
In one embodiment, step S202 is specifically included:
1) receive target terminal send video data request instruction, video data request instruction include resolution information and
Data format information.
2) the data bit size of frame data is determined according to resolution information.
3) data format of frame data is determined according to data format information.
4) according to data bit size and data format, binary file is converted into multiple frame data.
In the present embodiment, when target terminal is wanted to obtain file to be transmitted, video data request instruction is sent to phase
Machine, video data request instruction include resolution information and data format information, such as video resolution is 1280*720.
In the present embodiment, data format includes yuv video form, MJPEG (Motion JointPhotographic
Experts Group, technology, that is, motor rest Image Compression) video format and H.264 video format.
In the present embodiment, the data bit size of a frame data is determined according to resolution information, for example, a frame data
Size for 1000 bits, the data format of frame data is determined according to data format information, reads binary file, and according to
Data are size and data format, binary file are converted to multiple frame data, for example, binary file is converted to size
For 1000 bits, form is the frame data of yuv video form.
In one embodiment, the number of the frame data of generation is obtained, and the number of frame data is sent to target terminal,
The number of frame data is used to indicate target terminal and is done according to the number of frame data and the number for the frame data currently having been received by
Transmission progress processing, transmission progress processing are the number for the frame data that display currently has been received by and the frame data not received
Number, so as to which user can be visually known the transmission progress situation of frame data, if end of transmission, user experience are high.
In step S203, according to sequencing of the frame data in binary file, numbered for each frame data.
In the present embodiment, the sequencing according to frame data in binary file distributes one for each frame data
A number, number can be the arithmetic progression since 0, for example, the number 0 of first frame data, the volume of second frame data
Number for 1, the number of third frame data is 2.
In step S204, number is added in into frame head data, and form video stream data by frame head data and frame data.
In the present embodiment, in the present embodiment, in addition to the last one frame data, the data bit size of remaining frame data
All it is an identical value.
In the present embodiment, frame head data and frame data form a frame, and multiple frames form video stream data.
In one embodiment, according to number order, video stream data is sent to target terminal successively, target terminal exists
A file is locallyd create, based on UVC agreements, the unit of video stream data transmission is frame, when target terminal receives a frame
When, parse the frame being currently received, obtain frame data and corresponding number, by currently received frame data it is corresponding number with it is upper
The corresponding number of frame data of one reception is compared, and judges whether there is frame data loss, loses frame number when judging to exist
According to when, vacate the position for losing the corresponding data bit size of frame data hereof and be written to vacant locations by number is lost,
When judging there is no frame data are lost, then directly frame data are written in file.
By taking a concrete application scene as an example, number is since 0, differs the arithmetic progression for 1, the data bit size of frame
For 1000 bits, target terminal is localling create a file, when target terminal receives a frame, parses frame, obtains frame
Data and the corresponding number of frame data are 2, and frame data and number are written in file, when receiving next frame, obtain frame
Data and corresponding number are 5, by the corresponding number of currently received frame data volume corresponding with the frame data of upper one reception
It number is compared, i.e., is compared 2 and 5, it is 3 to compare difference among 2 and 5, without being 1, then it represents that number is 3 corresponding
Frame data and number are that 4 corresponding frame data are lost, and vacate the position of 1000 bits, number 3 is written in the position vacated,
Then it vacates the position of 1000 bits again, in the position vacated after number 4 is written to, then will number the frame data for being 5 and write
Enter into file, i.e., number is 2 corresponding frame data in file and number is that there are two frame data for sky among 5 corresponding frame data
The position of corresponding size.
In an embodiment of the invention, after step s 104, the transmission method of the file further includes:
1) it sends the end of transmission to instruct to target terminal, end of transmission instruction is used to indicate target terminal and regards to what is received
Frequency flow data is detected to judge whether that frame data are lost.
2) the loss number of target terminal feedback is received, it is the video fluxion that target terminal detects reception to lose number
There are the numbers lost corresponding to frame data during frame data loss, got in.
3) the corresponding frame data of number will be lost and is transmitted to target terminal again.
In the present embodiment, it after video stream data end of transmission, sends the end of transmission and instructs to target terminal, work as target
When terminal receives end of transmission instruction, judge whether reception video stream data is correct according to file verification value, when incorrect,
Detection is preserved in the file of video stream data with the presence or absence of vacant locations, when there are during vacant locations, then obtaining vacant locations
Corresponding number as loses number, and will lose number and be sent to camera, and camera, which obtains to lose, numbers corresponding frame data,
And the corresponding frame data of number will be lost and be re-transmitted to target terminal, the frame data received are written in file target terminal
It loses and numbers corresponding position.
By taking a concrete application scene as an example, preserve corresponding lose of the vacant locations in the file of video stream data and number
It is 2, then target terminal, which sends to obtain, numbers the request of frame data for being 2 to camera, and camera is sent out again by the frame data for being 2 are numbered
It send to target terminal, when target terminal receives the frame data that number is 2, then will number the frame data for being 2 write-in and preserve and regard
Number is in 2 corresponding vacant locations in the file of frequency flow data.
In the present embodiment, it is instructed by sending the end of transmission to target terminal so that target terminal refers to according to the end of transmission
Order judges to receive video stream data with the presence or absence of losing, and when the loss number for receiving target terminal transmission, will lose
It numbers corresponding frame data and is re-transmitted to target terminal, so as to which effective guarantee target terminal can receive complete video
Flow data improves the reliability of data transmission.
It should be understood that the size of the serial number of each step is not meant to the priority of execution sequence, each process in above-described embodiment
Execution sequence should determine that the implementation process without coping with the embodiment of the present invention forms any limit with its function and internal logic
It is fixed.
Embodiment 2:
Fig. 3 shows the Transmission system 100 for the file that one embodiment of the present of invention provides, for performing corresponding to Fig. 1
Embodiment in method and step, including:
Attribute information acquisition module 110, for receiving the attribute information of the file to be transmitted of target terminal transmission.
File acquisition module 120, for according to attribute information, obtaining file to be transmitted.
Processing module 130, for file to be transmitted to be converted to video stream data.
Video stream data for being based on UVC agreements, is transmitted to target terminal by transmission module 140.
As shown in figure 4, in one embodiment, the processing module 130 in the embodiment corresponding to Fig. 3 includes:
Converting unit 131, for file to be transmitted to be converted to binary file.
Frame data generation unit 132, for binary file to be divided into multiple frame data.
Numbered cell 133 is distributed, is each frame data for the sequencing according to frame data in binary file
Number.
Video flowing generation unit 134 adds in frame head data, and form video by frame head data and frame data for that will number
Flow data.
In one embodiment, frame data generation unit 132 specifically includes:
Command reception subelement 10, for receiving the video data request instruction of target terminal transmission, video data request
Instruction includes resolution information and data format information.
First processing subelement 20, for determining the data bit size of frame data according to resolution information.
Second processing subelement 30, for determining the data format of frame data according to data format information.
Conversion subunit 40, for according to data bit size and data format, binary file to be converted to multiple frame numbers
According to.
In one embodiment, transmission module 140 further includes:
Command unit is sent, is instructed for sending the end of transmission to target terminal, end of transmission instruction is used to indicate target
The video stream data that end-on receives is detected to judge whether that frame data are lost.
Numbered cell is received, for receiving the loss number of target terminal feedback, it is target terminal detection to lose number
Into the video stream data of reception, there are the numbers lost corresponding to frame data during frame data loss, got.
The corresponding frame data of number will be lost and be transmitted to target terminal again.
In one embodiment, transmission module 140 further includes:
Computing unit, for when the file verification for receiving target terminal transmission is asked, calculating the text of video stream data
Part check value.
Check value transmitting element, for file verification value to be sent to target terminal, file verification value is used to indicate target
Whether the video stream data that terminal authentication receives is correct.
In one embodiment, the Transmission system 100 of file further includes other function module/units, is used to implement implementation
Method and step in example 1 in each embodiment.
Embodiment 3:
Fig. 5 is the schematic diagram for the camera that one embodiment of the invention provides.As shown in figure 5, the camera 5 of the embodiment includes:
Processor 50, memory 51 and it is stored in the computer program that can be run in the memory 51 and on the processor 50
52.The step of processor 50 realizes each embodiment as described in example 1 above when performing the computer program 52, such as
Step S101 shown in FIG. 1 to step S104.Alternatively, the processor 50 is realized when performing the computer program 52 as implemented
The function of each module/unit in each system embodiment described in example 2, such as the function of module 110 to 140 shown in Fig. 3.
Illustratively, the computer program 52 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 51, and are performed by the processor 50, to complete the present invention.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 52 in the camera 5 is described.For example, the computer program 52 can be divided into
Attribute information acquisition module, file acquisition module, processing module and transmission module.Each module concrete function is as follows:
Attribute information acquisition module, for receiving the attribute information of the file to be transmitted of target terminal transmission.
File acquisition module, for according to attribute information, obtaining file to be transmitted.
Processing module, for file to be transmitted to be converted to video stream data.
Video stream data for being based on UVC agreements, is transmitted to target terminal by transmission module.
The camera 5 can be the computing devices such as desktop PC, notebook, palm PC and cloud server.Institute
Stating camera 5 may include, but be not limited only to, processor 50, memory 51.It will be understood by those skilled in the art that Fig. 5 is only phase
The example of machine 5 does not form the restriction to camera 5, can include than illustrating more or fewer components or combining certain portions
Part or different components, such as the camera can also include input-output equipment, network access equipment, bus etc..
Alleged processor 50 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit
(Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor
Deng.
The memory 51 can be the internal storage unit of the camera 5, such as the hard disk or memory of camera 5.It is described
Memory 51 can also be the External memory equipment of the camera 5, such as the plug-in type hard disk being equipped on the camera 5, intelligence
Storage card (Smart Media Card, SMC), secure digital (SecureDigital, SD) card, flash card (Flash Card)
Deng.Further, the memory 51 can also both include the internal storage unit of the camera 5 or be set including external storage
It is standby.The memory 51 is used to store the computer program and other programs and data needed for the camera.It is described to deposit
Reservoir 51 can be also used for temporarily storing the data that has exported or will export.
Embodiment 4:
The embodiment of the present invention additionally provides a kind of computer readable storage medium, and computer-readable recording medium storage has meter
Calculation machine program is realized the step in each embodiment as described in example 1 above, such as is schemed when computer program is executed by processor
Step S101 to step S104 shown in 1.Alternatively, it is realized when the computer program is executed by processor such as institute in embodiment 2
The function of each module/unit in each system embodiment stated, such as the function of module 110 to 140 shown in Fig. 3.
The computer program can be stored in a computer readable storage medium, and the computer program is by processor
During execution, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program includes computer program code,
The computer program code can be source code form, object identification code form, executable file or certain intermediate forms etc..Institute
Stating computer-readable medium can include:Can carry the computer program code any entity or device, recording medium,
USB flash disk, mobile hard disk, magnetic disc, CD, computer storage, read-only memory (ROM, Read-Only Memory), arbitrary access
Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It needs
It is bright, the content that the computer-readable medium includes can according in jurisdiction legislation and patent practice requirement into
The appropriate increase and decrease of row, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium does not include being electricity
Carrier signal and telecommunication signal.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.
Module or unit in system of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
Those of ordinary skill in the art may realize that each exemplary lists described with reference to the embodiments described herein
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is performed with hardware or software mode, specific application and design constraint depending on technical solution.Professional technician
Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/camera and method can pass through
Other modes are realized.For example, device described above/camera embodiment is only schematical, for example, the module or
The division of unit, only a kind of division of logic function can have other dividing mode, such as multiple units in actual implementation
Or component may be combined or can be integrated into another system or some features can be ignored or does not perform.Another point, institute
Display or the mutual coupling discussed or direct-coupling or communication connection can be by some interfaces, device or unit
INDIRECT COUPLING or communication connection can be electrical, machinery or other forms.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to aforementioned reality
Example is applied the present invention is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each
Technical solution recorded in embodiment modifies or carries out equivalent replacement to which part technical characteristic;And these are changed
Or replace, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of transmission method of file, which is characterized in that including:
Receive the attribute information for the file to be transmitted that target terminal is sent;
According to the attribute information, the file to be transmitted is obtained;
The file to be transmitted is converted into video stream data;
Based on UVC agreements, the video stream data is transmitted to the target terminal.
2. the transmission method of file as described in claim 1, which is characterized in that described be converted to the file to be transmitted regards
Frequency flow data, specifically includes:
The file to be transmitted is converted into binary file;
The binary file is divided into multiple frame data;
It is each described frame data number according to sequencing of the frame data in the binary file;
Number is added in into frame head data, and form the video stream data by the frame head data and the frame data.
3. the transmission method of file as claimed in claim 2, which is characterized in that it is described the binary file is divided into it is multiple
Frame data specifically include:
The video data request instruction that the target terminal is sent is received, the video data request instruction includes resolution information
And data format information;
The data bit size of the frame data is determined according to the resolution information;
The data format of the frame data is determined according to the data format information;
According to the data bit size and the data format, the binary file is converted into multiple frame data.
4. the transmission method of file as claimed in claim 2, which is characterized in that described that the video stream data is transmitted to institute
After stating target terminal, including:
It sends the end of transmission to instruct to the target terminal, the end of transmission instruction is used to indicate the target terminal to receiving
To the video stream data be detected to judge whether that the frame data are lost;
The loss number of the target terminal feedback is received, the number of losing is the institute that the target terminal detects reception
State in video stream data there are during frame data loss, get lose frame data corresponding to number;
The corresponding frame data of number of losing are transmitted to the target terminal again.
5. the transmission method of file as described in claim 1, which is characterized in that described that the video stream data is transmitted to institute
After stating target terminal, further include:
When receiving the file verification request that the target terminal is sent, the file verification value of the video stream data is calculated;
The file verification value is sent to the target terminal, the file verification value is used to indicate the target terminal verification
Whether the video stream data received is correct.
6. a kind of Transmission system of file, which is characterized in that including:
Attribute information acquisition module, for receiving the attribute information of the file to be transmitted of target terminal transmission;
File acquisition module, for according to the attribute information, obtaining the file to be transmitted;
Processing module, for the file to be transmitted to be converted to video stream data;
The video stream data for being based on UVC agreements, is transmitted to the target terminal by transmission module.
7. the Transmission system of file as claimed in claim 6, which is characterized in that the processing module specifically includes:
Converting unit, for the file to be transmitted to be converted to binary file;
Frame data generation unit, for the binary file to be divided into multiple frame data;
Numbered cell is distributed, is described in each for the sequencing according to the frame data in the binary file
Frame data are numbered;
Video flowing generation unit adds in frame head data, and form institute by the frame head data and the frame data for that will number
State video stream data.
8. the Transmission system of file as claimed in claim 7, which is characterized in that the frame data generation unit specifically includes:
Command reception subelement, for receiving the video data request instruction that the target terminal is sent, the video data please
Instruction is asked to include resolution information and data format information;
First processing subelement, for determining the data bit size of the frame data according to the resolution information;
Second processing subelement, for determining the data format of the frame data according to the data format information;
Conversion subunit, for according to the data bit size and the data format, the binary file being converted to more
A frame data.
9. a kind of camera, including memory, processor and it is stored in the memory and can runs on the processor
Computer program, which is characterized in that the processor is realized when performing the computer program as claim 1 to 5 is any
The step of item the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In when the computer program is executed by processor the step of realization such as any one of claim 1 to 5 the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711431275.0A CN108200387A (en) | 2017-12-26 | 2017-12-26 | A kind of transmission method of file, system and camera |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711431275.0A CN108200387A (en) | 2017-12-26 | 2017-12-26 | A kind of transmission method of file, system and camera |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108200387A true CN108200387A (en) | 2018-06-22 |
Family
ID=62584088
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711431275.0A Pending CN108200387A (en) | 2017-12-26 | 2017-12-26 | A kind of transmission method of file, system and camera |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108200387A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109451030A (en) * | 2018-11-19 | 2019-03-08 | 视联动力信息技术股份有限公司 | A kind of method for down loading and system regarding networking files |
CN109818748A (en) * | 2018-12-28 | 2019-05-28 | 北京奇安信科技有限公司 | Data transmission method, equipment, system and medium |
CN109862322A (en) * | 2019-02-19 | 2019-06-07 | 深圳市研诺达科技有限公司 | A kind of audio-visual acquisition equipment of 4G based on the transmission of UVC data |
CN114679623A (en) * | 2022-03-16 | 2022-06-28 | 山东浪潮超高清视频产业有限公司 | Video checking and playing method based on video gene technology |
EP4207753A4 (en) * | 2020-09-30 | 2024-03-06 | Huawei Technologies Co., Ltd. | Video call method, electronic device and system |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101202604A (en) * | 2007-08-14 | 2008-06-18 | 深圳市同洲电子股份有限公司 | Method, system and equipment for transmitting and receiving network data |
CN101390125A (en) * | 2006-02-22 | 2009-03-18 | 远藤广行 | Data providing system, server and program |
CN101634677A (en) * | 2008-07-24 | 2010-01-27 | 芯原股份有限公司 | Digital instrument based on UVC transmission protocol and use method thereof |
CN101777036A (en) * | 2009-01-09 | 2010-07-14 | 比亚迪股份有限公司 | Device, USB equipment and method for realizing drive-free image data transmission |
TW201029469A (en) * | 2009-01-20 | 2010-08-01 | Quanta Comp Inc | Digital video/audio capture device and method thereof |
CN102169556A (en) * | 2010-02-25 | 2011-08-31 | 技亚拿波有限公司 | Construction field management system, server and digital camera |
CN202872937U (en) * | 2012-10-15 | 2013-04-10 | 宁波舜宇光电信息有限公司 | High-pixel continuous and automatic focusing USB camera module |
CN103840859A (en) * | 2012-11-27 | 2014-06-04 | 深圳市腾讯计算机系统有限公司 | Method, terminal and system for transmitting files |
CN204350127U (en) * | 2014-12-26 | 2015-05-20 | 兴天通讯技术(天津)有限公司 | A kind of camera |
CN105391699A (en) * | 2015-10-26 | 2016-03-09 | 北京奇虎科技有限公司 | Transmission method, device and system of video data |
CN105450965A (en) * | 2015-12-09 | 2016-03-30 | 北京小鸟看看科技有限公司 | Method, device and system for video conversion |
CN105657255A (en) * | 2015-12-29 | 2016-06-08 | 合肥宏晶微电子科技股份有限公司 | Driver free data collection method of USB video collection card |
US20170214807A1 (en) * | 2016-01-26 | 2017-07-27 | Qsc, Llc | Peripheral bus video communication using internet protocal |
-
2017
- 2017-12-26 CN CN201711431275.0A patent/CN108200387A/en active Pending
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101390125A (en) * | 2006-02-22 | 2009-03-18 | 远藤广行 | Data providing system, server and program |
CN101202604A (en) * | 2007-08-14 | 2008-06-18 | 深圳市同洲电子股份有限公司 | Method, system and equipment for transmitting and receiving network data |
CN101634677A (en) * | 2008-07-24 | 2010-01-27 | 芯原股份有限公司 | Digital instrument based on UVC transmission protocol and use method thereof |
CN101777036A (en) * | 2009-01-09 | 2010-07-14 | 比亚迪股份有限公司 | Device, USB equipment and method for realizing drive-free image data transmission |
TW201029469A (en) * | 2009-01-20 | 2010-08-01 | Quanta Comp Inc | Digital video/audio capture device and method thereof |
CN102169556A (en) * | 2010-02-25 | 2011-08-31 | 技亚拿波有限公司 | Construction field management system, server and digital camera |
CN202872937U (en) * | 2012-10-15 | 2013-04-10 | 宁波舜宇光电信息有限公司 | High-pixel continuous and automatic focusing USB camera module |
CN103840859A (en) * | 2012-11-27 | 2014-06-04 | 深圳市腾讯计算机系统有限公司 | Method, terminal and system for transmitting files |
CN204350127U (en) * | 2014-12-26 | 2015-05-20 | 兴天通讯技术(天津)有限公司 | A kind of camera |
CN105391699A (en) * | 2015-10-26 | 2016-03-09 | 北京奇虎科技有限公司 | Transmission method, device and system of video data |
CN105450965A (en) * | 2015-12-09 | 2016-03-30 | 北京小鸟看看科技有限公司 | Method, device and system for video conversion |
CN105657255A (en) * | 2015-12-29 | 2016-06-08 | 合肥宏晶微电子科技股份有限公司 | Driver free data collection method of USB video collection card |
US20170214807A1 (en) * | 2016-01-26 | 2017-07-27 | Qsc, Llc | Peripheral bus video communication using internet protocal |
Non-Patent Citations (2)
Title |
---|
李江波,等.: "基于UVC协议的USB3.0视频采集系统设计", 《技术纵横》 * |
殷开亮.: "基于UVC协议的USB3.0图像采集系统设计", 《中国优秀硕士学位论文全文数据库》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109451030A (en) * | 2018-11-19 | 2019-03-08 | 视联动力信息技术股份有限公司 | A kind of method for down loading and system regarding networking files |
CN109451030B (en) * | 2018-11-19 | 2021-11-19 | 视联动力信息技术股份有限公司 | Method and system for downloading video network file |
CN109818748A (en) * | 2018-12-28 | 2019-05-28 | 北京奇安信科技有限公司 | Data transmission method, equipment, system and medium |
CN109862322A (en) * | 2019-02-19 | 2019-06-07 | 深圳市研诺达科技有限公司 | A kind of audio-visual acquisition equipment of 4G based on the transmission of UVC data |
EP4207753A4 (en) * | 2020-09-30 | 2024-03-06 | Huawei Technologies Co., Ltd. | Video call method, electronic device and system |
CN114679623A (en) * | 2022-03-16 | 2022-06-28 | 山东浪潮超高清视频产业有限公司 | Video checking and playing method based on video gene technology |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108200387A (en) | A kind of transmission method of file, system and camera | |
CN105871587A (en) | Log uploading method and device | |
CN110659905B (en) | Transaction verification method, device, terminal equipment and storage medium | |
CN108960797A (en) | Block generates and verification method, device, equipment and storage medium | |
CN108647131B (en) | Output system of running log | |
CN108667936B (en) | Data processing method, terminal, mobile edge computing server and storage medium | |
CN112235422B (en) | Data processing method and device, computer readable storage medium and electronic device | |
CN104376584B (en) | A kind of method of data compression, computer system and device | |
WO2021174834A1 (en) | Yuv image recognition method and system, and computer device | |
CN116166701B (en) | Service data real-time early warning method, device, equipment and storage medium | |
CN117290332A (en) | Data migration verification method, device, equipment and storage medium | |
CN109062844B (en) | A kind of CCID protocol equipment data transmission method and device | |
CN111010599B (en) | Method and device for processing multi-scene video stream and computer equipment | |
CN116533817A (en) | Charging remaining time prediction method, device and storage medium | |
CN114239296A (en) | Data processing method and device and electronic equipment | |
CN113327302A (en) | Picture processing method and device, storage medium and electronic device | |
CN111813510A (en) | Method, device and system for uploading data by intelligent equipment | |
CN109240849A (en) | Data back up method, device and the multipoint control unit for video conferencing system | |
CN114095781B (en) | Multimedia data processing method and device, electronic equipment and storage medium | |
CN109033189A (en) | Compression method, device, server and the readable storage medium storing program for executing of link structure log | |
CN110677251B (en) | Information processing method, device, medium and equipment | |
CN113132324B (en) | Sample identification method and system | |
CN111382116B (en) | Data receiving method and device and related product | |
CN107070910A (en) | A kind of communication means and electronic equipment | |
CN114338826A (en) | Data transmission method, device, system and related equipment |
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: 20180622 |