CN106162224A - Video transmission method and device and electronic equipment - Google Patents
Video transmission method and device and electronic equipment Download PDFInfo
- Publication number
- CN106162224A CN106162224A CN201610599551.3A CN201610599551A CN106162224A CN 106162224 A CN106162224 A CN 106162224A CN 201610599551 A CN201610599551 A CN 201610599551A CN 106162224 A CN106162224 A CN 106162224A
- Authority
- CN
- China
- Prior art keywords
- video
- network
- transmission
- compression
- 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
- 230000005540 biological transmission Effects 0.000 title claims abstract description 97
- 238000000034 method Methods 0.000 title claims abstract description 50
- 230000006835 compression Effects 0.000 claims description 72
- 238000007906 compression Methods 0.000 claims description 72
- 230000009467 reduction Effects 0.000 claims description 11
- 230000008569 process Effects 0.000 claims description 9
- 239000012141 concentrate Substances 0.000 claims description 3
- 230000005611 electricity Effects 0.000 claims description 3
- 238000010295 mobile communication Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000007774 longterm Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000006399 behavior Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000035800 maturation Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 210000003733 optic disk Anatomy 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/2343—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/2343—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
- H04N21/234363—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by altering the spatial resolution, e.g. for clients with a lower screen resolution
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/238—Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The embodiment of the invention discloses a method and a device for transmitting video and electronic equipment, relates to the technical field of video processing, and can reduce the flow consumption and transmission time of video transmission. The method comprises the following steps: acquiring a current network type when transmitting video data to be transmitted; judging whether the acquired current network type is a charging type network or not; if the network is a charging type network, performing operation of reducing video resolution on the video data; and transmitting the video data with the reduced video resolution. The device and the electronic equipment are provided with corresponding modules for realizing the method. The method and the device are suitable for the operation of transmitting the video on the electronic equipment.
Description
Technical field
The present invention relates to technical field of video processing, particularly relate to a kind of transmit the method for video, device and electronic equipment.
Background technology
At present, video can be transmitted by QQ, wechat etc. between the equipment such as smart mobile phone, panel computer.Along with the Internet
And the gradually maturation of development of Mobile Internet technology development, user is also no longer satisfied with only transmitting video, but disappears transmission of video
The transmission speed of flow, expense and the video of consumption has had higher requirement.
In prior art, when transmitting video under charge type network, it is not compressed video waiting for transmission processing, and
Being directly to be sent by video waiting for transmission, the flow that transmission of video can be made to consume is big, expense is many and the transmission time is long.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of and transmits the method for video, device and electronic equipment, solves existing
Transmission of video consumed flow is big, expense is many and the problem of transmission time length.
First aspect, the embodiment of the present invention provides a kind of method transmitting video, including:
When transmitting video data waiting for transmission, obtain current network type;
Judge whether the current network type obtained is charge type network;
If charge type network, then described video data performs to reduce the operation of video resolution;
Video data transmission after reducing video resolution is gone out.
In conjunction with first aspect, in the first embodiment of first aspect, when transmitting video data waiting for transmission, obtain
Before taking current network type, described method also includes:
Concentrate from the video file prestored, obtain video data waiting for transmission;Or,
Obtain the video data of shooting, using the described video data of shooting as video data waiting for transmission.
In conjunction with first aspect, in the second embodiment of first aspect, the described current network type judging to obtain
Whether it is that charge type network includes:
Judge whether the current network type obtained is by the network of flow charging, if pressing the network of flow charging, then
Current network type is charge type network;
Judge whether the current network type obtained is wireless fidelity network, if wireless fidelity network, the most current net
Network type is not charge type network.
In conjunction with first aspect, in the third possible implementation of first aspect, described described video data is held
Row reduces the operation of video resolution and includes:
Obtain each frame image data in described video data;
The interpolation algorithm based on fractional form described each frame image data to obtaining performs row compression or row squeeze operation,
Obtain the first compression view data that each frame image data is corresponding;
Interpolation algorithm based on fractional form performs row compression to the first compression view data that each frame image data is corresponding
Or row squeeze operation, obtain the second-compressed view data that each frame first compression image is corresponding;
Second-compressed view data corresponding for each frame first compression image is constituted the video data after compression.
Second aspect, the embodiment of the present invention provides a kind of device transmitting video, including:
Network Capture module, for when transmitting video data waiting for transmission, obtaining current network type;
Whether network judge module, be charge type network for judging the current network type obtained;
Video compressing module, if for charge type network, then performs to reduce video resolution to described video data
Operation;
Video transmission module, the video data transmission after reducing video resolution is gone out.
In conjunction with second aspect, in the first embodiment of second aspect, described device also includes: video acquisition mould
Block;Described video acquiring module includes:
First acquiring unit, for concentrating from the video file prestored, obtains video data waiting for transmission;Or,
Second acquisition unit, for obtaining the video data of shooting, using the described video data of shooting as waiting for transmission
Video data.
In conjunction with second aspect, in the second embodiment of second aspect, described network judge module includes:
Whether the first judging unit, be by the network of flow charging for judging the current network type obtained, if pressing
The network of flow charging, the most current network type is charge type network;
Whether the second judging unit, be wireless fidelity network for judging the current network type obtained, if wireless guarantor
True network, the most current network type is not charge type network.
In conjunction with second aspect, in the third embodiment of second aspect, described video compressing module includes:
Image acquisition unit, for obtaining each frame image data in described video data;
First compression unit, performs row for interpolation algorithm based on fractional form to the described each frame image data obtained
Compression or row squeeze operation, obtain the first compression view data that each frame image data is corresponding;
Second compression unit, for the first compression figure that interpolation algorithm based on fractional form is corresponding to each frame image data
As data perform row compression or row squeeze operation, obtain the second-compressed view data that each frame first compression image is corresponding;
Video Component units, after constituting compression by second-compressed view data corresponding for each frame first compression image
Video data.
The third aspect, the embodiment of the present invention provides a kind of electronic equipment, and described electronic equipment includes: housing, processor, deposit
Reservoir, circuit board and power circuit, wherein, circuit board is placed in the interior volume that housing surrounds, processor and memorizer and arranges
On circuit boards;Power circuit, powers for each circuit or the device for above-mentioned electronic equipment;Memorizer is used for storing and can enter
Line program code;Processor runs by reading the carried out program code of storage in memorizer and can carry out program code pair
The program answered, for the method carrying out aforementioned arbitrary described transmission video.
The a kind of of embodiment of the present invention offer transmits the method for video, device and electronic equipment, is transmitting waiting for transmission regarding
Frequency according to time, obtain current network type, if current network type is charge type network, then to described video waiting for transmission
Data perform the operation reducing video resolution to reduce the resolution of described video data, then will reduce after video resolution
Video data transmission is gone out such that it is able to when reducing flow, expense and the transmission that under charge type network, video data transmission consumes
Between.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to
Other accompanying drawing is obtained according to these accompanying drawings.
Fig. 1 is the method flow schematic diagram of embodiment of the present invention transmission video;
Fig. 2 is the apparatus structure schematic diagram of embodiment of the present invention transmission video;
Fig. 3 is the structural representation of one embodiment of electronic equipment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawings the embodiment of the present invention is described in detail.
It will be appreciated that described embodiment be only the present invention a part of embodiment rather than whole embodiments.Base
Embodiment in the present invention, those of ordinary skill in the art obtained under not making creative work premise all its
Its embodiment, broadly falls into the scope of protection of the invention.
Fig. 1 is the method flow schematic diagram of embodiment of the present invention transmission video, as it is shown in figure 1, the method for the present embodiment can
To include:
Step 101, transmit video data waiting for transmission time, obtain current network type.
In the present embodiment, when transmitting video data waiting for transmission, need to first detect the network environment that terminal unit is current, i.e.
The network type that terminal unit is current, then performs step 102 and judges whether current network type is charge type network.
In the present embodiment, described transmission video data waiting for transmission refers to be transmitted by instant communication software, it is assumed that
First equipment, the second equipment are respectively mounted same instant communication software, such as, wechat, certainly, described instant communication software
Can also be other instant communication softwares such as QQ, credulity, Fetion, footpath between fields, footpath between fields or prosperous letter, the present embodiment be not construed as limiting.
In the present embodiment, the user A of the first equipment can be one or more by stored on the first equipment by wechat
Video file is sent to the user B of the second equipment;User A can also carry out Video chat by wechat with user B.Concrete,
When the one or more video files stored on the first equipment are sent to user B by wechat by user A, it is arranged on described
The video file that wechat on first equipment can prestore from described first equipment is concentrated, and obtains one or more videos
File is as video data waiting for transmission;When user A carries out Video chat by wechat with user B, it is arranged on described first
Wechat on equipment and the second equipment can obtain the video of captured in real-time as video data waiting for transmission.
In the present embodiment, as an alternative embodiment, when transmitting video data waiting for transmission, obtain current network
Before type, described method also includes:
Concentrate from the video file prestored, obtain video data waiting for transmission;Or,
Obtain the video data of shooting, using the described video data of shooting as video data waiting for transmission.
Step 102, judge obtain current network type whether be charge type network.
In the present embodiment, default charge type net list can be inquired about, if the current network type obtained is included in institute
State in default charge type net list, then may determine that the current network type of acquisition is charge type network, otherwise, it can be determined that
Current network type is free type network;Wherein, the charge type network in described default charge type net list can include but
Being not limited to: 2G network, 3G network, 4G network, wherein, 2G network includes but not limited to: global system for mobile communications network;3G net
Network includes but not limited to: general grouped wireless service network, network of universal mobile communication system, long-term evolving network, code division are many
Location network, WCDMA network and time-division synchronous CDMA network;4G network includes but not limited to: timesharing is drilled for a long time
Network access network and Long Term Evolution FDD network.
In the present embodiment, the Freight Basis of 2G network, 3G network or 4G network can include but not limited to: charged according to time
Or charge by flow.
In the present embodiment, as an alternative embodiment, whether the described current network type judging to obtain is charge type
Network includes:
Judge whether the current network type obtained is by the network of flow charging, if pressing the network of flow charging, then
Current network type is charge type network;
Judge whether the current network type obtained is wireless fidelity network, if wireless fidelity network, the most current net
Network type is not charge type network.
In the present embodiment, if the current network type obtained is by the network of flow charging, then perform step 103;If obtaining
When the current network type taken is Wireless Fidelity (Wireless Fidelity, WIFI) network, the most current network type is to exempt from
Take type network, step 103 can not be performed, directly described video data is sent.
In the present embodiment, described free type network can include but not limited to: Wireless Fidelity (Wireless Fidelity,
WIFI) network, such as, the cable network connected by netting twine is also free type network.
In the present embodiment, it is assumed that the first equipment is smart mobile phone, then can obtain the current network type of this smart mobile phone,
If the current network type obtained is WIFI network, then judges that current network type is free type network, reduction can not be performed
The operation of video resolution.
If step 103 charge type network, then described video data performs to reduce the operation of video resolution.
In the present embodiment, in order to reduce flow consumption, when the current network type of the first equipment is charge type network, need
Video waiting for transmission performs to reduce the operation of video resolution.
In the present embodiment, can pass through instant communication software, such as, wechat performs reduction to the described video data obtained
The operation of video resolution, thus reduce the size of video data to be transmitted.
In the present embodiment, such as, the size of video data waiting for transmission is 100MB, and resolution is 1080*1902;Pass through
After the wechat described video data to obtaining performs the operation of reduction video resolution, the resolution of described video data waiting for transmission
While rate is down to 720*1080 from 1080*1920, the size of described video data waiting for transmission is down to 60MB from 100MB, also
That is, it is possible to save the flow of 40MB and corresponding expense.
In the present embodiment, the method reducing video resolution is not limited, say, that instant communication software is permissible
The method using arbitrary existing reduction video resolution performs to reduce the operation of video resolution to described video data.Only make
For reducing an alternative embodiment of video resolution, the described described video data to obtaining performs to reduce the behaviour of video resolution
May include that
Obtain each frame image data in described video data;
The interpolation algorithm based on fractional form described each frame image data to obtaining performs row compression or row squeeze operation,
Obtain the first compression view data that each frame image data is corresponding;
Interpolation algorithm based on fractional form performs row compression to the first compression view data that each frame image data is corresponding
Or row squeeze operation, obtain the second-compressed view data that each frame first compression image is corresponding;
Second-compressed view data corresponding for each frame first compression image is constituted the video data after compression.
In the present embodiment, each frame image data in video data to be transmitted can be obtained by wechat, and based on mark
The interpolation algorithm of form described each frame image data to obtaining performs row squeeze operation, obtain that each frame image data is corresponding one
Second compression view data;The first compression view data that each frame image data is corresponding is held by interpolation algorithm based on fractional form again
Every trade squeeze operation, obtains the second-compressed view data that each frame first compression image is corresponding;Finally, by each frame first compression figure
As corresponding second-compressed view data constitutes the video data after compression.It is assumed that the resolution of video data waiting for transmission is n
× m, then the resolution of first compression view data can be expressed as n × q, and the resolution of second-compressed view data can represent
For w × q, wherein, q meets: q < m, w meet: w < n.
In the present embodiment, each frame image data in video data to be transmitted can be obtained by wechat, and first based on dividing
The interpolation algorithm of number form formula described each frame image data to obtaining performs row squeeze operation, obtains each frame image data corresponding
First compression view data;The first compression view data that interpolation algorithm based on fractional form is corresponding to each frame image data again
Perform row squeeze operation, obtain the second-compressed view data that each frame first compression image is corresponding;Finally, by each frame first compression
The second-compressed view data that image is corresponding constitutes the video data after compression.It is assumed that the resolution of video data waiting for transmission
For n × m, then the resolution of first compression view data can be expressed as w × m, and the resolution of second-compressed view data is permissible
Being expressed as w × q, wherein, w meets: w < n, q meet: q < m.
Step 104, the video data transmission after video resolution will be reduced go out.
In the present embodiment, after the operation of the video data execution reduction video resolution of the 100MB obtained, described to be passed
The size of defeated video data is down to 60MB, compared with the video data described waiting for transmission sent before reducing video resolution,
Send the video data after reducing video resolution, be possible not only to save the flow of 40MB and corresponding expense, moreover it is possible to reduce and regard
The transmission time of frequency evidence.
The method of the transmission video that the present embodiment provides, when transmitting video data waiting for transmission, obtains current network
Type, if current network type is charge type network, then performs to reduce video resolution to described video data waiting for transmission
Operation to reduce the resolution of described video data, then the video data transmission after video resolution will be reduced go out, thus
Flow, expense and transmission time that under charge type network, video data transmission consumes can be reduced.
Fig. 2 is the apparatus structure schematic diagram of embodiment of the present invention transmission video, as in figure 2 it is shown, the device of the present embodiment can
To include: Network Capture module 11, network judge module 12, video compressing module 13 and video transmission module 14, wherein,
Described Network Capture module 11, for when transmitting video data waiting for transmission, obtaining current network type.
In the present embodiment, when transmitting video data waiting for transmission, need to first detect the network environment that terminal unit is current, i.e.
The network type that terminal unit is current, then passes through network judge module 12 and judges whether current network type is charge type net
Network.
In the present embodiment, described transmission video data waiting for transmission refers to be transmitted by instant communication software, it is assumed that
First equipment, the second equipment are respectively mounted same instant communication software, such as, wechat, certainly, described instant communication software
Can also be other instant communication softwares such as QQ, credulity, Fetion, footpath between fields, footpath between fields or prosperous letter, the present embodiment be not construed as limiting.
In the present embodiment, the user A of the first equipment can be one or more by stored on the first equipment by wechat
Video file is sent to the user B of the second equipment;User A can also carry out Video chat by wechat with user B.Concrete,
When the one or more video files stored on the first equipment are sent to user B by wechat by user A, it is arranged on described
The video file that wechat on first equipment can prestore from described first equipment is concentrated, and obtains one or more videos
File is as video data waiting for transmission;When user A carries out Video chat by wechat with user B, it is arranged on described first
Wechat on equipment and the second equipment can obtain the video of captured in real-time as video data waiting for transmission.
In the present embodiment, as an alternative embodiment, described device also includes: video acquiring module, described video acquisition
Module includes:
First acquiring unit, for concentrating from the video file prestored, obtains video data waiting for transmission;Or,
Second acquisition unit, for obtaining the video data of shooting, using the described video data of shooting as waiting for transmission
Video data.
Whether described network judge module 12, be charge type network for judging the current network type obtained.
In the present embodiment, default charge type net list can be inquired about, if the current network type obtained is included in institute
State in default charge type net list, then may determine that the current network type of acquisition is charge type network, otherwise, it can be determined that
Current network type is free type network;Wherein, the charge type network in described default charge type net list can include but
Being not limited to: 2G network, 3G network, 4G network, wherein, 2G network includes but not limited to: global system for mobile communications network;3G net
Network includes but not limited to: general grouped wireless service network, network of universal mobile communication system, long-term evolving network, code division are many
Location network, WCDMA network and time-division synchronous CDMA network;4G network includes but not limited to: timesharing is drilled for a long time
Network access network and Long Term Evolution FDD network.
In the present embodiment, the Freight Basis of 2G network, 3G network or 4G network can include but not limited to: charged according to time
Or charge by flow.
In the present embodiment, as an alternative embodiment, described network judge module 12 includes:
Whether the first judging unit, be by the network of flow charging for judging the current network type obtained, if pressing
The network of flow charging, the most current network type is charge type network;
Whether the second judging unit, be wireless fidelity network for judging the current network type obtained, if wireless guarantor
True network, the most current network type is not charge type network.
In the present embodiment, if the current network type obtained is by the network of flow charging, then perform step 103;If obtaining
When the current network type taken is Wireless Fidelity WIFI network, the most current network type is free type network, can directly by
Described video data sends.
In the present embodiment, described free type network can include but not limited to: Wireless Fidelity (Wireless Fidelity,
WIFI) network, such as, the cable network connected by netting twine is also free type network.
In the present embodiment, it is assumed that the first equipment is smart mobile phone, then can obtain the current network type of this smart mobile phone,
If the current network type obtained is WIFI network, then judges that current network type is free type network, reduction can not be performed
The operation of video resolution.
Described video compressing module 13, if for charge type network, then performs to reduce video and divides described video data
The operation of resolution.
In the present embodiment, in order to reduce flow consumption, when the current network type of the first equipment is charge type network, need
Video waiting for transmission performs to reduce the operation of video resolution.
In the present embodiment, can pass through instant communication software, such as, wechat performs reduction to the described video data obtained
The operation of video resolution, thus reduce the size of video data to be transmitted.
In the present embodiment, such as, the size of video data waiting for transmission is 100MB, and resolution is 1080*1902;Pass through
After the wechat described video data to obtaining performs the operation of reduction video resolution, the resolution of described video data waiting for transmission
While rate is down to 720*1080 from 1080*1920, the size of described video data waiting for transmission is down to 60MB from 100MB, also
That is, it is possible to save the flow of 40MB and corresponding expense.
In the present embodiment, the method reducing video resolution is not limited, say, that instant communication software is permissible
The described video data execution obtained is reduced the behaviour of video resolution by the method using arbitrary existing reduction video resolution
Make.
In the present embodiment, the method reducing video resolution is not limited, be only used as reducing the one of video resolution
Alternative embodiment, described video compressing module may include that
Image acquisition unit, for obtaining each frame image data in described video data;
First compression unit, performs row for interpolation algorithm based on fractional form to the described each frame image data obtained
Compression or row squeeze operation, obtain the first compression view data that each frame image data is corresponding;
Second compression unit, for the first compression figure that interpolation algorithm based on fractional form is corresponding to each frame image data
As data perform row compression or row squeeze operation, obtain the second-compressed view data that each frame first compression image is corresponding;
Video Component units, after constituting compression by second-compressed view data corresponding for each frame first compression image
Video data.
In the present embodiment, each frame image data in video data to be transmitted can be obtained by wechat, and based on mark
The interpolation algorithm of form described each frame image data to obtaining performs row squeeze operation, obtain that each frame image data is corresponding one
Second compression view data;The first compression view data that each frame image data is corresponding is held by interpolation algorithm based on fractional form again
Every trade squeeze operation, obtains the second-compressed view data that each frame first compression image is corresponding;Finally, by each frame first compression figure
As corresponding second-compressed view data constitutes the video data after compression.It is assumed that the resolution of video data waiting for transmission is n
× m, then the resolution of first compression view data can be expressed as n × q, and the resolution of second-compressed view data can represent
For w × q, wherein, q meets: q < m, w meet: w < n.
In the present embodiment, each frame image data in video data to be transmitted can be obtained by wechat, and first based on dividing
The interpolation algorithm of number form formula described each frame image data to obtaining performs row squeeze operation, obtains each frame image data corresponding
First compression view data;The first compression view data that interpolation algorithm based on fractional form is corresponding to each frame image data again
Perform row squeeze operation, obtain the second-compressed view data that each frame first compression image is corresponding;Finally, by each frame first compression
The second-compressed view data that image is corresponding constitutes the video data after compression.It is assumed that the resolution of video data waiting for transmission
For n × m, then the resolution of first compression view data can be expressed as w × m, and the resolution of second-compressed view data is permissible
Being expressed as w × q, wherein, w meets: w < n, q meet: q < m.
Described video transmission module 14, the video data transmission after reducing video resolution is gone out.
In the present embodiment, after the operation of the video data execution reduction video resolution of the 100MB obtained, described to be passed
The size of defeated video data is down to 60MB, compared with the video data described waiting for transmission sent before reducing video resolution,
Send the video data after reducing video resolution, be possible not only to save the flow of 40MB and corresponding expense, moreover it is possible to reduce and regard
The transmission time of frequency evidence.
The device of the transmission video that the present embodiment provides, is transmitting video data waiting for transmission by Network Capture module
Time, obtain current network type, if current network type is charge type network, then reduced by video compressing module to be passed
The resolution of defeated video data, then the video data transmission after video resolution will be reduced by video transmission module and go out, from
And flow, expense and the transmission time that under charge type network, video data transmission consumes can be reduced.
It should be noted that in this article, the relational terms of such as first and second or the like is used merely to a reality
Body or operation separate with another entity or operating space, and deposit between not necessarily requiring or imply these entities or operating
Relation or order in any this reality.And, term " includes ", " comprising " or its any other variant are intended to
Comprising of nonexcludability, so that include that the process of a series of key element, method, article or equipment not only include that those are wanted
Element, but also include other key elements being not expressly set out, or also include for this process, method, article or equipment
Intrinsic key element.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that
Including process, method, article or the equipment of described key element there is also other identical element.
Each embodiment in this specification all uses relevant mode to describe, identical similar portion between each embodiment
Dividing and see mutually, what each embodiment stressed is the difference with other embodiments.
For device embodiment, owing to it is substantially similar to embodiment of the method, so the comparison described is simple
Single, relevant part sees the part of embodiment of the method and illustrates.
Represent in flow charts or the logic described otherwise above at this and/or step, for example, it is possible to be considered as to use
In the sequencing list that the carrying out realizing logic function instructs, may be embodied in any computer-readable medium, for
Instruction carry out system, device or equipment (system such as computer based system, including processor or other can from instruct into
Row system, device or equipment instruction fetch also carry out the system instructed) use, or combine these instructions and carry out system, device or set
Standby and use.For the purpose of this specification, " computer-readable medium " can be any can to comprise, store, communicate, propagate or pass
Defeated program carries out system, device or equipment or combines these instructing the dress carrying out system, device or equipment and use for instructing
Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following: have the electricity of one or more wiring
Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read only memory
(ROM), erasable read only memory (EPROM or flash memory), the fiber device edited, and portable optic disk is read-only deposits
Reservoir (CDROM).It addition, computer-readable medium can even is that and can print the paper of described program thereon or other are suitable
Medium, because then can carry out editing, interpreting or if desired with it such as by paper or other media are carried out optical scanning
His suitable method is processed to electronically obtain described program, is then stored in computer storage.
Should be appreciated that each several part of the present invention can realize by hardware, software, firmware or combinations thereof.
In the above-described embodiment, multiple steps or method in memory and can be carried out by suitably instruction with storage
Software or firmware that system is carried out realize.Such as, if realized with hardware, with the most the same, available
Any one or their combination in following technology well known in the art realize: have for data signal realizes logic merit
The discrete logic of the logic gates of energy, has the special IC of suitable combination logic gate circuit, programmable gate
Array (PGA), field programmable gate array (FPGA) etc..
The embodiment of the present invention also provides for a kind of electronic equipment.Fig. 3 is that the structure of one embodiment of electronic equipment of the present invention is shown
It is intended to, it is possible to achieve the flow process of Fig. 1-2 illustrated embodiment of the present invention, as it is shown on figure 3, above-mentioned electronic equipment may include that housing
41, processor 42, memorizer 43, circuit board 44 and power circuit 45, wherein, circuit board 44 is placed in the space that housing 41 surrounds
Inside, processor 42 and memorizer 43 are arranged on circuit board 44;Power circuit 45, for each electricity for above-mentioned electronic equipment
Road or device are powered;Memorizer 43 is used for storing and can carry out program code;Processor 42 is by reading storage in memorizer 43
Program code can be carried out run and the program that program code is corresponding can be carried out, for carrying out the biography described in aforementioned any embodiment
The method of defeated video.
Processor 42 can carry out program code to the process that specifically carries out and the processor 42 of above-mentioned steps by running
The step carried out further, may refer to the description of Fig. 1-2 illustrated embodiment of the present invention, does not repeats them here.
This electronic equipment exists in a variety of forms, includes but not limited to:
(1) mobile communication equipment: the feature of this kind equipment is to possess mobile communication function, and to provide speech, data
Communication is main target.This Terminal Type includes: smart mobile phone (such as iPhone), multimedia handset, functional mobile phone, and low
End mobile phone etc..
(2) super mobile personal computer equipment: this kind equipment belongs to the category of personal computer, has calculating and processes merit
Can, the most also possess mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device: this kind equipment can show and play content of multimedia.This kind equipment includes: audio frequency,
Video player (such as iPod), handheld device, e-book, and intelligent toy and portable car-mounted navigator.
(4) server: providing the equipment of the service of calculating, the composition of server includes that processor, hard disk, internal memory, system are total
Lines etc., server is similar with general computer architecture, but owing to needing to provide highly reliable service, is therefore processing energy
The aspects such as power, stability, reliability, safety, extensibility, manageability require higher.
(5) other have the electronic equipment of data interaction function.
Those skilled in the art are appreciated that and realize all or part of step that above-described embodiment method is carried
Suddenly the program that can be by completes to instruct relevant hardware, and described program can be stored in a kind of computer-readable storage medium
In matter, this program is when carrying out, including one or a combination set of the step of embodiment of the method.
For convenience of description, describing apparatus above is to be divided into various units/modules to be respectively described with function.Certainly, exist
Implement the function of each unit/module to be realized in same or multiple softwares and/or hardware during the present invention.
As seen through the above description of the embodiments, those skilled in the art it can be understood that to the present invention can
The mode adding required general hardware platform by software realizes.Based on such understanding, technical scheme essence
On the part that in other words prior art contributed can embody with the form of software product, this computer software product
Can be stored in storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that a computer equipment
(can be personal computer, server, or the network equipment etc.) carries out some of each embodiment of the present invention or embodiment
Method described in part.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, be permissible
Instructing relevant hardware by computer program to complete, described program can be stored in a computer read/write memory medium
In, this program is when carrying out, it may include such as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access
Memory, RAM) etc..
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited thereto, and any
Those familiar with the art in the technical scope that the invention discloses, the change that can readily occur in or replacement, all answer
Contain within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with scope of the claims.
Claims (9)
1. the method transmitting video, it is characterised in that including:
When transmitting video data waiting for transmission, obtain current network type;
Judge whether the current network type obtained is charge type network;
If charge type network, then described video data performs to reduce the operation of video resolution;
Video data transmission after reducing video resolution is gone out.
The method of transmission video the most according to claim 1, it is characterised in that when transmitting video data waiting for transmission,
Before obtaining current network type, described method also includes:
Concentrate from the video file prestored, obtain video data waiting for transmission;Or,
Obtain the video data of shooting, using the described video data of shooting as video data waiting for transmission.
The method of transmission video the most according to claim 1, it is characterised in that the current network type that described judgement obtains
Whether it is that charge type network includes:
Judge whether the current network type obtained is by the network of flow charging, if pressing the network of flow charging, the most currently
Network type be charge type network;
Judge whether the current network type obtained is wireless fidelity network, if wireless fidelity network, the most current network class
Type is not charge type network.
The method of transmission video the most according to claim 1, it is characterised in that described described video data is performed reduction
The operation of video resolution includes:
Obtain each frame image data in described video data;
The interpolation algorithm based on fractional form described each frame image data to obtaining performs row compression or row squeeze operation, obtains
The first compression view data that each frame image data is corresponding;
Interpolation algorithm based on fractional form performs row compression or row to the first compression view data that each frame image data is corresponding
Squeeze operation, obtains the second-compressed view data that each frame first compression image is corresponding;
Second-compressed view data corresponding for each frame first compression image is constituted the video data after compression.
5. the device transmitting video, it is characterised in that including:
Network Capture module, for when transmitting video data waiting for transmission, obtaining current network type;
Whether network judge module, be charge type network for judging the current network type obtained;
Video compressing module, if for charge type network, then performs to reduce the operation of video resolution to described video data;
Video transmission module, the video data transmission after reducing video resolution is gone out.
The device of transmission video the most according to claim 5, it is characterised in that described device also includes: video acquisition mould
Block;Described video acquiring module includes:
First acquiring unit, for concentrating from the video file prestored, obtains video data waiting for transmission;Or,
Second acquisition unit, for obtaining the video data of shooting, using the described video data of shooting as video waiting for transmission
Data.
The device of transmission video the most according to claim 5, it is characterised in that described network judge module includes:
Whether the first judging unit, be by the network of flow charging for judging the current network type obtained, if pressing flow
The network of charge, the most current network type is charge type network;
Whether the second judging unit, be wireless fidelity network for judging the current network type obtained, if Wireless Fidelity net
Network, the most current network type is not charge type network.
The device of transmission video the most according to claim 5, it is characterised in that described video compressing module includes:
Image acquisition unit, for obtaining each frame image data in described video data;
First compression unit, performs row compression for the interpolation algorithm based on fractional form described each frame image data to obtaining
Or row squeeze operation, obtain the first compression view data that each frame image data is corresponding;
Second compression unit, for the first compression picture number that interpolation algorithm based on fractional form is corresponding to each frame image data
According to performing row compression or row squeeze operation, obtain the second-compressed view data that each frame first compression image is corresponding;
Video Component units, the video after second-compressed view data corresponding for each frame first compression image is constituted compression
Data.
9. an electronic equipment, it is characterised in that described electronic equipment includes: housing, processor, memorizer, circuit board and electricity
Source circuit, wherein, circuit board is placed in the interior volume that housing surrounds, processor and memorizer and arranges on circuit boards;Power supply
Circuit, powers for each circuit or the device for above-mentioned electronic equipment;Memorizer is used for storing and can carry out program code;Process
Device runs by reading the carried out program code of storage in memorizer and can carry out the program that program code is corresponding, be used for into
The method of the transmission video described in the aforementioned any claim 1-4 of row.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610599551.3A CN106162224A (en) | 2016-07-26 | 2016-07-26 | Video transmission method and device and electronic equipment |
PCT/CN2017/094369 WO2018019237A1 (en) | 2016-07-26 | 2017-07-25 | Video transmitting method and device, and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610599551.3A CN106162224A (en) | 2016-07-26 | 2016-07-26 | Video transmission method and device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106162224A true CN106162224A (en) | 2016-11-23 |
Family
ID=58060300
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610599551.3A Pending CN106162224A (en) | 2016-07-26 | 2016-07-26 | Video transmission method and device and electronic equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106162224A (en) |
WO (1) | WO2018019237A1 (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018019237A1 (en) * | 2016-07-26 | 2018-02-01 | 北京金山安全软件有限公司 | Video transmitting method and device, and electronic equipment |
CN107734355A (en) * | 2017-10-30 | 2018-02-23 | 广东欧珀移动通信有限公司 | Video image quality adjustment method, device, terminal device and storage medium |
CN108600624A (en) * | 2018-04-23 | 2018-09-28 | 珠海格力电器股份有限公司 | Terminal |
CN109688465A (en) * | 2018-11-27 | 2019-04-26 | Oppo广东移动通信有限公司 | Video source modeling control method, device and electronic equipment |
CN110062274A (en) * | 2019-04-30 | 2019-07-26 | 深圳市迅雷网络技术有限公司 | A kind of video file caching method, device, equipment and readable storage medium storing program for executing |
CN110519618A (en) * | 2018-05-22 | 2019-11-29 | 视联动力信息技术股份有限公司 | A kind of processing method of video data and view networked terminals |
CN114339308A (en) * | 2022-01-04 | 2022-04-12 | 腾讯音乐娱乐科技(深圳)有限公司 | Video stream loading method, electronic equipment and storage medium |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112788265B (en) * | 2019-11-11 | 2024-02-02 | 浙江宇视科技有限公司 | Video data storage method and device, image acquisition equipment and readable storage medium |
CN113709490A (en) * | 2021-07-30 | 2021-11-26 | 山东云海国创云计算装备产业创新中心有限公司 | Video compression method, device, system and medium |
CN114928765B (en) * | 2022-05-05 | 2024-08-13 | 维沃移动通信有限公司 | Control method, control device, electronic equipment and readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103313095A (en) * | 2012-03-16 | 2013-09-18 | 腾讯科技(深圳)有限公司 | Video transmission method, play method, terminal and server |
CN103702061A (en) * | 2013-12-23 | 2014-04-02 | 上海网达软件股份有限公司 | Automatic adjustment method of resolution of video call of intelligent terminal |
CN104618680A (en) * | 2015-01-21 | 2015-05-13 | 北京瀚景锦河科技有限公司 | Method for compressing video resolution |
CN105263066A (en) * | 2014-06-13 | 2016-01-20 | 珠海全志科技股份有限公司 | Mobile equipment video stream transmission control method and system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10110940B2 (en) * | 2013-05-20 | 2018-10-23 | Verint Americas Inc. | System and method of video quality adaptation |
CN104360847A (en) * | 2014-10-27 | 2015-02-18 | 元亨利包装科技(上海)有限公司 | Method and equipment for processing image |
CN105049918A (en) * | 2015-07-08 | 2015-11-11 | 成都西可科技有限公司 | Method for separating local recorded video and network live video |
CN106162224A (en) * | 2016-07-26 | 2016-11-23 | 北京金山安全软件有限公司 | Video transmission method and device and electronic equipment |
-
2016
- 2016-07-26 CN CN201610599551.3A patent/CN106162224A/en active Pending
-
2017
- 2017-07-25 WO PCT/CN2017/094369 patent/WO2018019237A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103313095A (en) * | 2012-03-16 | 2013-09-18 | 腾讯科技(深圳)有限公司 | Video transmission method, play method, terminal and server |
CN103702061A (en) * | 2013-12-23 | 2014-04-02 | 上海网达软件股份有限公司 | Automatic adjustment method of resolution of video call of intelligent terminal |
CN105263066A (en) * | 2014-06-13 | 2016-01-20 | 珠海全志科技股份有限公司 | Mobile equipment video stream transmission control method and system |
CN104618680A (en) * | 2015-01-21 | 2015-05-13 | 北京瀚景锦河科技有限公司 | Method for compressing video resolution |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018019237A1 (en) * | 2016-07-26 | 2018-02-01 | 北京金山安全软件有限公司 | Video transmitting method and device, and electronic equipment |
CN107734355A (en) * | 2017-10-30 | 2018-02-23 | 广东欧珀移动通信有限公司 | Video image quality adjustment method, device, terminal device and storage medium |
CN108600624A (en) * | 2018-04-23 | 2018-09-28 | 珠海格力电器股份有限公司 | Terminal |
CN108600624B (en) * | 2018-04-23 | 2020-06-19 | 珠海格力电器股份有限公司 | Terminal |
CN110519618A (en) * | 2018-05-22 | 2019-11-29 | 视联动力信息技术股份有限公司 | A kind of processing method of video data and view networked terminals |
CN109688465A (en) * | 2018-11-27 | 2019-04-26 | Oppo广东移动通信有限公司 | Video source modeling control method, device and electronic equipment |
CN109688465B (en) * | 2018-11-27 | 2020-12-29 | Oppo广东移动通信有限公司 | Video enhancement control method and device and electronic equipment |
US11627369B2 (en) | 2018-11-27 | 2023-04-11 | Guangdong Oppo Mobile Telecommunications Corp., Ltd | Video enhancement control method, device, electronic device, and storage medium |
CN110062274A (en) * | 2019-04-30 | 2019-07-26 | 深圳市迅雷网络技术有限公司 | A kind of video file caching method, device, equipment and readable storage medium storing program for executing |
CN114339308A (en) * | 2022-01-04 | 2022-04-12 | 腾讯音乐娱乐科技(深圳)有限公司 | Video stream loading method, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2018019237A1 (en) | 2018-02-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106162224A (en) | Video transmission method and device and electronic equipment | |
CN102202132B (en) | Method, system and equipment for initializing networking equipment | |
CN106254776A (en) | Video processing method and device and electronic equipment | |
CN106303238A (en) | Video shooting method and device and electronic equipment | |
CN105681395A (en) | Resource sharing control method, device, server and terminal | |
CN108769522A (en) | Image processing terminal and image processing method | |
CN105955702A (en) | Wireless audio equipment and method for playing music in same | |
CN106294591A (en) | File storage method and device and electronic equipment | |
CN105094333A (en) | Method and device for control | |
CN109922539A (en) | Method for connecting network and Related product | |
CN201556133U (en) | Separated computer system | |
CN104252480A (en) | Method and device for audio information retrieval | |
CN109951841A (en) | Data card switching method and device and electronic equipment | |
CN103297434A (en) | Method for processing data, user sides, server and system | |
CN106022090A (en) | User login information processing method, user login information processing device and electronic equipment | |
CN104853193A (en) | Video compression method, device and electronic equipment | |
CN106156274A (en) | Page content loading method and device and electronic equipment | |
CN106302250A (en) | The method for controlling network flow of mobile terminal and device | |
CN104080104B (en) | communication control method and user equipment | |
CN103347071A (en) | MIPI data transmission control method and electronic device | |
CN106095707A (en) | A kind of USB HUB system of compatible Carplay and Device port | |
CN102785783B (en) | Aircraft maintenance system with foreground auxiliary maintenance device | |
CN106055595A (en) | Method and device for displaying value added service information and electronic equipment | |
CN101527763A (en) | Digital image synthesizing device facing hand-held terminal | |
CN203387549U (en) | Full-angle shooting mobile phone |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161123 |
|
RJ01 | Rejection of invention patent application after publication |