CN107995451A - A kind of inspection method and device regarding networked video stream - Google Patents

A kind of inspection method and device regarding networked video stream Download PDF

Info

Publication number
CN107995451A
CN107995451A CN201610951321.9A CN201610951321A CN107995451A CN 107995451 A CN107995451 A CN 107995451A CN 201610951321 A CN201610951321 A CN 201610951321A CN 107995451 A CN107995451 A CN 107995451A
Authority
CN
China
Prior art keywords
resolution
video stream
ratio
pixel number
stream data
Prior art date
Application number
CN201610951321.9A
Other languages
Chinese (zh)
Inventor
杨乌拉
Original Assignee
北京视联动力国际信息技术有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 北京视联动力国际信息技术有限公司 filed Critical 北京视联动力国际信息技术有限公司
Priority to CN201610951321.9A priority Critical patent/CN107995451A/en
Publication of CN107995451A publication Critical patent/CN107995451A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements or protocols for real-time communications
    • H04L65/60Media handling, encoding, streaming or conversion
    • H04L65/601Media manipulation, adaptation or conversion
    • H04L65/604Media manipulation, adaptation or conversion at the destination
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements or protocols for real-time communications
    • H04L65/60Media handling, encoding, streaming or conversion
    • H04L65/608Streaming protocols, e.g. RTP or RTCP
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/01Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
    • H04N7/0117Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level involving conversion of the spatial resolution of the incoming video signal

Abstract

An embodiment of the present invention provides a kind of inspection method and device regarding networked video stream, this method includes:If receiving regarding networked video stream, to carrying out protocol conversion regarding networked video stream, internet video stream is obtained;Internet video stream is decoded, obtains the first resolution of video stream data and video stream data;If first resolution, according to second resolution and first resolution, determines the scaling zoomed in and out to first resolution higher than the second resolution of the terminal device of Android system;The first resolution of video stream data is zoomed in and out according to scaling, obtains the video stream data of the second resolution suitable for terminal device;Video stream data after scaling is handled is played so that user checks on the screen of terminal device.The present invention can normally show the video stream data after scaling resolution ratio according to scaling on the terminal device, be not in deformation and the unsharp phenomenon of picture.

Description

A kind of inspection method and device regarding networked video stream

Technical field

The present invention relates to regarding networking technology field, more particularly to a kind of inspection method and device regarding networked video stream.

Background technology

With the fast development of the network technology, the two-way communication such as video conference, video teaching the life of user, work, Study etc. is widely available.

At present, when on the terminal device (such as Android mobile phone) of the transmission of video that resolution ratio is higher to Android system, Since the screen resolution of Android mobile phone is relatively low, then the mobile phone screen of high-resolution transmission of video to low resolution On, video pictures deformation and the unsharp problem of picture often occurs, influences viewing of the user to high-resolution video.

It can be seen from the above that the screen resolution higher than terminal device is checked in the terminal device using Android system in the prior art During the video of rate, in the prevalence of video pictures deformation and the unsharp problem of picture, so as to influence sight of the user to video Reward experience.

The content of the invention

In view of the above problems, it is proposed that the embodiment of the present invention overcomes the above problem or at least in part in order to provide one kind A kind of inspection method regarding networked video stream to solve the above problems and a kind of corresponding checking device regarding networked video stream.

To solve the above-mentioned problems, the embodiment of the invention discloses a kind of inspection method regarding networked video stream, the side Method is applied in the terminal device of networking and Android system, including:

If receiving regarding networked video stream, protocol conversion is carried out to the networked video stream that regards, obtains internet video Stream, wherein, described to regard networked video stream to support the video flowing regarding networking protocol, the internet video stream is support internet The video flowing of agreement;

The internet video stream is decoded, obtain video stream data and the video stream data first is differentiated Rate;

If the first resolution is higher than the second resolution of the terminal device of the Android system, according to described second Resolution ratio and the first resolution, determine the scaling zoomed in and out to the first resolution;

The first resolution of the video stream data is zoomed in and out according to the scaling, obtains being suitable for the end The video stream data of the second resolution of end equipment;

Video stream data after scaling processing is played so that user looks on the screen of the terminal device See.

The embodiment of the invention discloses a kind of checking device regarding networked video stream, described device is applied to regarding networking and peace In the terminal device of tall and erect system, including:

Protocol conversion module, if for receiving regarding networked video stream, agreement turn is carried out to the networked video stream that regards Change, obtain internet video stream, wherein, it is described to regard networked video stream to support the video flowing regarding networking protocol, the internet Video flowing is the video flowing for supporting Internet protocol;

Decoder module, for being decoded to the internet video stream, obtains video stream data and the video fluxion According to first resolution;

Ratio module is determined, if being differentiated for second of the first resolution higher than the terminal device of the Android system Rate, then according to the second resolution and the first resolution, determine the pantograph ratio zoomed in and out to the first resolution Example;

Zoom module, for being zoomed in and out according to the scaling to the first resolution of the video stream data, obtains To the video stream data of the second resolution suitable for the terminal device;

Playing module, for the video stream data after scaling processing to be broadcast on the screen of the terminal device Put so that user checks.

The embodiment of the present invention includes advantages below:

The embodiment of the present invention can make the video by will carry out protocol conversion received from the video stream data regarding networking side Flow data carries out display on the screen of terminal device to the video stream data and provides entrance in interconnection net side transmission; After protocol conversion, according to the screen resolution of terminal device and the resolution ratio of video flowing, to determine to divide the video stream data The scaling of resolution, can make identified scaling more accurate, ensure once to scale the effect for the display that hits pay dirk Fruit;Finally, the video stream data after scaling resolution ratio is played out on the terminal device, reaches high-resolution and regard networking side Video flowing is normal on the terminal device of the Android system of low resolution, clearly result of broadcast, improve user experience.

Brief description of the drawings

Fig. 1 is a kind of networking schematic diagram for regarding networking of the present invention;

Fig. 2 is a kind of hardware architecture diagram of node server of the present invention;

Fig. 3 is a kind of hardware architecture diagram of access switch of the present invention;

Fig. 4 is that a kind of Ethernet association of the present invention turns the hardware architecture diagram of gateway;

Fig. 5 is a kind of step flow chart of inspection method embodiment regarding networked video stream of the present invention;

Fig. 6 is the flow chart that the another kind of the present invention regards the inspection method embodiment of networked video stream;

Fig. 7 is a kind of structure diagram of checking device embodiment regarding networked video stream of the present invention.

Embodiment

In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, it is below in conjunction with the accompanying drawings and specific real Applying mode, the present invention is described in further detail.

It is the important milestone of network Development depending on networking, is a real-time network, can realize HD video real-time Transmission, Push numerous the Internet, applications to HD video, high definition is face-to-face.

Real-time high-definition video switching technology is used depending on networking, can be such as high in a network platform by required service Clear video conference, video monitoring, Intellectualized monitoring analysis, emergency command, digital broadcast television, delay TV, the Web-based instruction, show Live, VOD program requests, TV Mail, individual character records (PVR), Intranet (manages) channel by oneself, intelligent video Broadcast Control, information issue The services such as etc. tens of kinds videos, voice, picture, word, communication, data are all incorporated into a system platform, by TV or Computer realizes that high-definition quality video plays.

To make those skilled in the art more fully understand the embodiment of the present invention, below to being introduced depending on networking:

Depending on networking, applied portion of techniques is as described below:

Network technology (Network Technology)

Network technology innovation depending on networking improves traditional ethernet (Ethernet), with potential huge on network Video flow.(Circuit is exchanged different from simple network packet packet switch (Packet Switching) or lattice network Switching), Streaming demands are met using Packet Switching depending on networking technology.Possesses packet depending on networking technology Flexible, the simple and low price exchanged, is provided simultaneously with quality and the safety assurance of circuit switching, it is virtually electric to realize the whole network switch type Road, and the seamless connection of data format.

Switching technology (Switching Technology)

Two advantages of asynchronous and packet switch of Ethernet are used depending on networking, eliminating Ethernet on the premise of full compatibility lacks Fall into, possess the end-to-end seamless connection of the whole network, direct user terminal, directly carries IP data packets.User data is in network-wide basis It is not required to any format conversion.It is the higher level form of Ethernet depending on networking, is a real-time exchange platform, can realizes at present mutually The whole network large-scale high-definition realtime video transmission that networking can not be realized, pushes numerous Internet video applications to high Qinghua, unitizes.

Server technology (Server Technology)

It is different from traditional server, its Streaming Media depending on the server technology in networking and unified video platform Transmission be built upon it is connection-oriented on the basis of, its data-handling capacity is unrelated with flow, communication time, and single network layer is with regard to energy Enough include signaling and data transfer.For voice and video business, handled depending on networking and unified video platform Streaming Media Complexity many simpler than data processing, efficiency substantially increase more than hundred times than traditional server.

Holder technology (Storage Technology)

The ultrahigh speed holder technology of unified video platform in order to adapt to the media content of vast capacity and super-flow and State-of-the-art real time operating system is employed, the programme information in server instruction is mapped to specific hard drive space, media Content is no longer pass through server, and moment is directly delivered to user terminal, and user waits typical time to be less than 0.2 second.Optimize Sector distribution greatly reduces the mechanical movement of hard disc magnetic head tracking, and resource consumption only accounts for the 20% of ad eundem IP internets, but The concurrent flow more than 3 times of traditional disk array is produced, overall efficiency lifts more than 10 times.

Network security technology (Network Security Technology)

Structural design depending on networking by servicing independent licence system, equipment and the modes such as user data is completely isolated every time The network security problem of puzzlement internet has thoroughly been eradicated from structure, antivirus applet, fire wall is generally not required, has prevented black Visitor and the attack of virus, provide structural carefree secure network to the user.

Service innovative technology (Service Innovation Technology)

Business and transmission are merged by unified video platform, whether unique user, private user or a net The sum total of network, is all only once to connect automatically.User terminal, set-top box or PC are attached directly to unified video platform, obtain rich The multimedia video service of rich colorful various forms.Unified video platform is traditional to substitute with table schema using " menu type " Complicated applications program, and it is that complicated application can be achieved that can use considerably less code, realize the new business innovation of " endless ".

Networking depending on networking is as described below:

It is a kind of central controlled network structure depending on networking, which can be Tree Network, Star network, ring network etc. class Type, but centralized control node is needed to control whole network in network on this basis.

As shown in Figure 1, it is divided into access net and Metropolitan Area Network (MAN) two parts depending on networking.

The equipment of access mesh portions can be mainly divided into 3 classes:Node server, access switch, terminal (including various machines Top box, encoding board, memory etc.).Node server is connected with access switch, and access switch can be with multiple terminal phases Even, and Ethernet can be connected.

Wherein, node server is the node that centralized control functions are played in access net, can control access switch and terminal. Node server can directly be connected with access switch, can also directly be connected with terminal.

Similar, the equipment of metropolitan area mesh portions can also be divided into 3 classes:Metropolitan area server, node switch, node serve Device.Metropolitan area server is connected with node switch, and node switch can be connected with multiple node servers.

Wherein, node server is the node server for accessing mesh portions, i.e. node server had both belonged to access wet end Point, and belong to metropolitan area mesh portions.

Metropolitan area server is the node that centralized control functions are played in Metropolitan Area Network (MAN), can control node switch and node serve Device.Metropolitan area server can be directly connected to node switch, can also be directly connected to node server.

It can be seen from the above that be entirely a kind of central controlled network structure of layering depending on networking network, and node server and metropolitan area The network controlled under server can be the various structures such as tree-shaped, star-like, ring-type.

Visually claim, access mesh portions can form unified video platform (empty thiol point), and multiple unified videos are put down Platform can be formed regarding networking;Each unified video platform can be interconnected by metropolitan area and wide area depending on networking.

Classify depending on networked devices

1.1 embodiment of the present invention can be mainly divided into 3 classes depending on the equipment in networking:Server, interchanger (including ether Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).Depending on networking can be divided on the whole Metropolitan Area Network (MAN) (or National net, World Wide Web etc.) and access net.

1.2 equipment for wherein accessing mesh portions can be mainly divided into 3 classes:Node server, access switch (including ether Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).

The particular hardware structure of each access network equipment is:

Node server:

As shown in Fig. 2, mainly include Network Interface Module 201, switching engine module 202, CPU module 203, disk array Module 204;

Wherein, Network Interface Module 201, the Bao Jun that CPU module 203, disk array module 204 are come in enter switching engine Module 202;Switching engine module 202 look into the operation of address table 205 to the bag come in, so as to obtain the navigation information of bag; And the bag is stored according to the navigation information of bag the queue of corresponding pack buffer 206;If the queue of pack buffer 206 approaches It is full, then abandon;All pack buffer queues of 202 poll of switching engine mould, if meeting that the following conditions are forwarded to:1) port Send caching less than;2) the queue package counting facility is more than zero.Disk array module 204 mainly realizes the control to hard disk, including Initialization, read-write to hard disk etc. operate;CPU module 203 is mainly responsible between access switch, terminal (not shown) Protocol processes, to address table 205 (including descending protocol packet address table, uplink protocol package address table, data packet addressed table) Configuration, and, the configuration to disk array module 204.

Access switch:

As shown in figure 3, mainly include Network Interface Module (downstream network interface module 301, uplink network interface module 302), switching engine module 303 and CPU module 304;

Wherein, the bag (upstream data) that downstream network interface module 301 is come in enters bag detection module 305;Bag detection mould Whether mesh way address (DA), source address (SA), type of data packet and the packet length of the detection bag of block 305 meet the requirements, if met, Corresponding flow identifier (stream-id) is then distributed, and enters switching engine module 303, is otherwise abandoned;Uplink network interface mould The bag (downlink data) that block 302 is come in enters switching engine module 303;The data packet that CPU module 204 is come in enters switching engine Module 303;Switching engine module 303 look into the operation of address table 306 to the bag come in, so as to obtain the navigation information of bag; Gone if the bag into switching engine module 303 is downstream network interface toward uplink network interface, with reference to flow identifier (stream-id) bag is stored in the queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full, Abandon;If the bag into switching engine module 303 is not that downstream network interface is gone toward uplink network interface, according to bag Navigation information, is stored in the data packet queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full, Then abandon.

All pack buffer queues of 303 poll of switching engine module, are divided to two kinds of situations in embodiments of the present invention:

Gone if the queue is downstream network interface toward uplink network interface, meet that the following conditions are forwarded to:1) The port send caching less than;2) the queue package counting facility is more than zero;3) token that rate control module produces is obtained;

Gone if the queue is not downstream network interface toward uplink network interface, meet that the following conditions are forwarded to: 1) port send caching less than;2) the queue package counting facility is more than zero.

Rate control module 208 is configured by CPU module 204, to all downlink networks in programmable interval The pack buffer queue that interface is gone toward uplink network interface produces token, to control the code check of forwarded upstream.

CPU module 304 is mainly responsible for the protocol processes between node server, the configuration to address table 306, and, Configuration to rate control module 308.

Ethernet association turns gateway:

As shown in figure 4, mainly include Network Interface Module (downstream network interface module 401, uplink network interface module 402), switching engine module 403, CPU module 404, bag detection module 405, rate control module 408, address table 406, Bao Huan Storage 407 and MAC add modules 409, MAC removing modules 410.

Wherein, the data packet that downstream network interface module 401 is come in enters bag detection module 405;Bag detection module 405 is examined Survey the ethernet mac DA of data packet, ethernet mac SA, Ethernet length or frame type, regarding networking mesh way address DA, depending on networking source address SA, whether meet the requirements depending on networking data Packet type and packet length, corresponding stream is distributed if meeting Identifier (stream-id);Then, MAC DA, MAC SA, length or frame type are subtracted by MAC removing modules 410 (2byte), and enter corresponding order caching, otherwise abandon;

Downstream network interface module 401 detects the transmission caching of the port, if Bao Ze regarding with networking mesh according to bag Address D A knows the ethernet mac DA of corresponding terminal, adds the ethernet mac DA of terminal, Ethernet assists the MAC for turning gateway SA, Ethernet length or frame type, and send.

The function that Ethernet association turns other modules in gateway is similar with access switch.

Terminal:

Mainly include Network Interface Module, Service Processing Module and CPU module;For example, set-top box mainly connects including network Mouth mold block, video/audio encoding and decoding engine modules, CPU module;Encoding board mainly includes Network Interface Module, video encoding engine Module, CPU module;Memory mainly includes Network Interface Module, CPU module and disk array module.

The equipment of 1.3 metropolitan area mesh portions can be mainly divided into 2 classes:Node server, node switch, metropolitan area server. Wherein, node switch mainly includes Network Interface Module, switching engine module and CPU module;Metropolitan area server mainly includes Network Interface Module, switching engine module and CPU module are formed.

2nd, regarding networking data package definition

2.1 access network data package definitions

The data packet of access net mainly includes following sections:Destination address (DA), source address (SA), reserve bytes, payload(PDU)、CRC。

As shown in the table, accessing the data packet of net mainly includes following sections:

DA SA Reserved Payload CRC

Wherein:

Destination address (DA) is made of 8 bytes (byte), and first character section represents type (such as the various associations of data packet Discuss bag, multicast packet, unicast packet etc.), be up to 256 kinds of possibility, the second byte to the 6th byte is metropolitan area net address, Seven, the 8th bytes are access net address;

Source address (SA) is also to be made of 8 bytes (byte), is defined identical with destination address (DA);

Reserve bytes are made of 2 bytes;

Payload parts have different length according to the type of different datagrams, if being if various protocol packages 64 bytes, if single group unicast packets words are 32+1024=1056 bytes, are not restricted to 2 kinds of the above certainly;

CRC is made of 4 bytes, its computational methods follows the Ethernet CRC algorithm of standard.

2.2 Metropolitan Area Network (MAN) packet definitions

The topology of Metropolitan Area Network (MAN) is pattern, may there is 2 kinds, connection even of more than two kinds, i.e. node switching between two equipment 2 kinds can be all can exceed that between machine and node server, node switch and node switch, node switch and node server Connection.But the metropolitan area net address of metropolitan area network equipment is unique, is closed to accurately describe the connection between metropolitan area network equipment System, introduces parameter in embodiments of the present invention:Label, uniquely describes a metropolitan area network equipment.

(Multi-Protocol Label Switch, multiprotocol label are handed over by the definition of label and MPLS in this specification Change) label definition it is similar, it is assumed that have two connections between device A and equipment B, then data packet slave device A to equipment B just There are 2 labels, data packet slave device B to device A also there are 2 labels.Label is divided into label, outgoing label, it is assumed that data packet enters The label (entering label) of device A is 0x0000, and the label (outgoing label) when this data packet leaves device A may reform into 0x0001.The networking flow of Metropolitan Area Network (MAN) is to enter network process under centralized Control, also means that address distribution, the label of Metropolitan Area Network (MAN) Distribution is all dominated by metropolitan area server, and node switch, node server are all passive execution, this point with The label distribution of MPLS is different, and the distribution of the label of MPLS is the result that interchanger, server are consulted mutually.

As shown in the table, the data packet of Metropolitan Area Network (MAN) mainly includes following sections:

DA SA Reserved Label Payload CRC

That is destination address (DA), source address (SA), reserve bytes (Reserved), label, payload (PDU), CRC.Its In, the form of label may be referred to be defined as below:Label is 32bit, wherein high 16bit retains, only with low 16bit, its position Put is between the reserve bytes and payload of data packet.

Based on the above-mentioned characteristic regarding networking, it is proposed that one of the core concepts of the embodiments of the present invention, by will received from regarding The video stream data of networking side carries out protocol conversion, can make the video stream data in interconnection net side transmission, and then give the video Flow data carries out display on the screen of terminal device and provides entrance;After protocol conversion, the screen according to terminal device is differentiated The resolution ratio of rate and video flowing, to determine the scaling to the resolution ratio of the video stream data, can make identified scaling Ratio is more accurate, ensures once to scale the effect for the display that hits pay dirk;Finally, by the video stream data after scaling resolution ratio Play out on the terminal device, reach the terminal of Android system of the high-resolution video flowing for regarding networking side in low resolution Normal in equipment, clearly result of broadcast, improves user experience.

With reference to Fig. 5, a kind of step flow chart of inspection method embodiment regarding networked video stream of the present invention is shown, should Method can be applied to regard networking with the terminal device of Android system, specifically may include steps of:

When by being sent depending on the high-resolution video of networked terminals to the terminal device of Android system, due to terminal device Screen resolution be far below regarding networked terminals side video resolution ratio.Therefore, in order to avoid showing on the terminal device Video distortion and picture are unintelligible, can using following steps come avoid picture deformation and it is unintelligible:

Step 501, if receiving regarding networked video stream, protocol conversion is carried out to the networked video stream that regards, is obtained mutually Networked video stream, wherein, described to regard networked video stream to support the video flowing regarding networking protocol, the internet video stream is branch Hold the video flowing of Internet protocol;

Wherein, due to association that the data that can be transmitted in the agreement and internet that are used depending on the data that can be transmitted in networking use View is different, and can not be compatible, therefore, in order to realize that data transfer between the two regards connection, it is necessary to be received in internet side joint During the video flowing of network termination, protocol conversion is carried out to the video flowing, i.e., from regarding conversion of the networking protocol to Internet protocol, so It can be obtained by the transformed video flowing for supporting Internet protocol.

Step 502, the internet video stream is decoded, obtains the of video stream data and the video stream data One resolution ratio;

Then, due to be come the video flowing for networked terminals side of considering oneself as it is encoded, in order to read video fluxion According to, it is also necessary to the video flowing after the protocol conversion is decoded, so as to obtain video stream data (the i.e. video counts of manifold formula According to) so the video stream data resolution ratio.

Step 503, if the first resolution is higher than the second resolution of the terminal device of the Android system, basis The second resolution and the first resolution, determine the scaling zoomed in and out to the first resolution;

Wherein, if the high resolution for the video stream data that networked terminals side is sent should be regarded in receiving device, i.e. Android system The resolution ratio of the terminal device of system, then just need to determine the contracting to the resolution ratio of video stream data according to the two resolution ratio Ratio is put, so that the video stream data after scaling resolution ratio can normally be shown on the terminal device, be not in deformation and picture The unsharp phenomenon in face.

Step 504, the first resolution of the video stream data is zoomed in and out according to the scaling, is applicable in In the video stream data of the second resolution of the terminal device;

After scaling is determined, it is possible to the scaling of resolution ratio is carried out to decoded video stream data, so that To the video stream data of the screen resolution suitable for terminal device.

Step 505, by by the scaling processing after video stream data played on the screen of the terminal device with Checked for user.

Finally, by the video stream data after scaling is handled in terminal device, such as the screen of the mobile phone of Android system On carry out display broadcasting, so that user checks.

In this way, the embodiment of the present invention can be made by will carry out protocol conversion received from the video stream data regarding networking side The video stream data in interconnection net side transmission, and then carry out on the screen of terminal device to the video stream data display provide into Mouthful;After protocol conversion, according to the screen resolution of terminal device and the resolution ratio of video flowing, to determine to the video stream data Resolution ratio scaling, can make determined by scaling it is more accurate, ensure that once scaling hits pay dirk display Effect;Finally, the video stream data after scaling resolution ratio is played out on the terminal device, reaches high-resolution and regard connection The video flowing of net side is normal on the terminal device of the Android system of low resolution, clearly result of broadcast, improves user's body Test.

In order to be better understood from the above-mentioned technical proposal of the present invention, with reference to the instantiation shown in Fig. 6, to this hair Bright above-mentioned technical proposal is described in detail.

From fig. 6, it can be seen that it will sent depending on the high-resolution video depending on networked terminals for side of networking to interconnection net side Android system terminal device (being here Android mobile phone) when, it is necessary to regard networked server and internet using networking side is regarded The streaming media server of side.

Wherein, which plays the function served as bridge depending on networking and internet communicates.

Such scheme will be described in detail according to the flow direction of video flowing below.

Here the screen resolution for regarding networked terminals is 1080p forms or 1080i form.

First, use depending on networked terminals in the video stream data depending on that can be shot in networking with acquisition camera, wherein, The resolution ratio of the video stream data is identical with the screen resolution regarding networked terminals, i.e., the video gathered depending on networked terminals The resolution ratio of flow data is 1080p forms or 1080i forms;

Then, can the video stream data to the collection and the screen resolution regarding networked terminals depending on networked terminals (1080p forms or 1080i forms) is encoded;

Then, due to needing in networking sending video stream data to regarding networked server, depending on networked terminals Need to pack to the video stream data after coding and the screen resolution according to depending on networking protocol, obtain regarding depending on networking Frequency flows.

Wherein, the data packet depending on networked video stream after packing includes at least:Key frame, timestamp, size of data, offset Amount, port number, the screen resolution (namely should be regarding resolution ratio of networked video stream) that networked terminals should be regarded.

Then, it will send to regarding networked server depending on networked video stream after packing depending on networked terminals, taken wherein regarding networking Business device and regarding networked terminals observe regard networking protocol;

Then, it will receive depending on networked server and sent depending on networked video stream to streaming media server.

Wherein, since in whole communication protocol in networking, using networking protocol is regarded, it is in network two-layer protocol base Done on plinth, and the communication protocol of internet is based on IP agreement, is to belong to three layer protocol of network.So first have to from technology Aspect establishes two internetwork communication bridges so that the interaction of both sides is unblocked, then realizes the business of both sides.So in order to Realize the communication for regarding networking and internet, establish the video traffic for regarding networking and internet, it is necessary to develop an energy at the same time Connection regards the equipment of networking and internet, property of the equipment similar to gateway.The stream for supporting double netcard is selected in the present embodiment Media server realizes, wherein, which is connected to two network interface cards, and the network interface card connection of one end regards networking, another The network interface card connection internet at end, and two networks can identify the streaming media server.

And in order to realize the protocol conversion of interactive information, here, the embodiment of the present invention develops in streaming media server Modular converter realizes the protocol conversion of all signalings and data depending on being transmitted between networking and internet, believes so as to receive One side of order and data can read.

Here, depending on networked server the networked video stream that regards regarding networking protocol will be supported to regard connection by streaming media server Net network interface card sends to modular converter, modular converter and regards networked video stream to this and carry out protocol conversion, obtains internet video stream, its In, described to regard networked video stream to support the video flowing regarding networking protocol, the internet video stream is support Internet protocol Video flowing;

Then, network interface card of the modular converter by transformed internet video stream by the interconnection net side on streaming media server Sent with IP agreement to Android mobile phone;

Then, Android mobile phone decodes the internet video stream to the internet video stream by H264 standards, Obtain video stream data and and the video stream data resolution ratio;

Then, it is possible to which the resolution of video flowing is calculated by the Renderer (renderer) of the Android system of Android mobile phone Rate scaling, specifically:

If Android mobile phone side judges screen resolution of the high resolution in Android mobile phone of the video flowing, then can The pixel number that numerical value is larger in the width pixel number and height pixel number of the resolution ratio of mobile phone screen, such as Mobile phone screen are determined first Curtain resolution ratio is 960*500, then it can determine width pixel number more a height of 960, and the resolution ratio of video flowing is 1920* 1080, it is consequently possible to calculate 960 and 1920 ratio, ratio 1/2, therefore, it is necessary to the resolution ratio 1920* to video flowing 1080 are reduced according to scaling 1/2, and the resolution ratio of the video flowing reduced after resolution ratio is 960*540;

Finally, the video stream data that the resolution ratio of the video flowing after diminution resolution ratio is 960*540 is set in the terminal Standby 960*500 screens are rendered and played so that user checks again.

And if mobile phone screen resolution ratio is 200*270, then it can determine height pixel number more a height of 540, and video The resolution ratio of stream is, for example, 1000*1080, it is consequently possible to calculate 270 and 1080 ratio, ratio 1/4, therefore, it is necessary to right The resolution ratio 1000*1080 of video flowing is reduced according to scaling 1/4, and the resolution ratio of the video flowing reduced after resolution ratio is 250*270;

Finally, the video stream data that the resolution ratio of the video flowing after diminution resolution ratio is 250*270 is set in the terminal Render and play so that user checks again on standby 200*270 screens.

In this way, the Renderer technologies by Android mobile phone the video size that each frame is sent can be compared and Calculate, thus can determine that scaling, and the video stream data after above-mentioned scaling scaling resolution ratio is set in terminal Standby normal display, is not in deformation and the unsharp phenomenon of picture.

It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of action group Close, but those skilled in the art should know, the embodiment of the present invention and from the limitation of described sequence of movement, because according to According to the embodiment of the present invention, some steps can use other orders or be carried out at the same time.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented Necessary to example.

Reference Fig. 7, shows a kind of structure diagram of checking device embodiment regarding networked video stream of the present invention, the dress Put in the terminal device that can be applied to regard networking and Android system, can specifically include following module:

Protocol conversion module 71, if for receiving regarding networked video stream, agreement is carried out to the networked video stream that regards Conversion, obtains internet video stream, wherein, it is described to regard networked video stream to support the video flowing regarding networking protocol, the interconnection Net video flowing is the video flowing for supporting Internet protocol;

Decoder module 72, for being decoded to the internet video stream, obtains video stream data and the video flowing The first resolution of data;

Ratio module 73 is determined, if for second point of the first resolution higher than the terminal device of the Android system Resolution, then according to the second resolution and the first resolution, determine the scaling zoomed in and out to the first resolution Ratio;

Zoom module 74, for being zoomed in and out according to the scaling to the first resolution of the video stream data, Obtain the video stream data of the second resolution suitable for the terminal device;

Playing module 75, for by by the scaling processing after video stream data the terminal device screen Play so that user checks.

In one preferred embodiment of the invention, the first resolution is the resolution of 1080p forms or 1080i forms Rate.

In one preferred embodiment of the invention, the definite ratio module 73 includes:

Determine sub-blocks of pixels, in the width pixel number and height pixel number for determining the second resolution numerical value compared with Big pixel number;

First determines ratio submodule, if the pixel number larger for the numerical value is width pixel number, described in calculating The ratio of the width pixel number of second resolution and the width pixel number of the first resolution, obtains the first ratio, wherein, institute State the first ratio and be denoted as the scaling zoomed in and out to the first resolution;

Second determines ratio submodule, if the pixel number larger for the numerical value is height pixel number, described in calculating The ratio of the height pixel number of second resolution and the height pixel number of the first resolution, obtains the second ratio, wherein, institute State the second ratio and be denoted as the scaling zoomed in and out to the first resolution.

In one preferred embodiment of the invention, described device further includes:

Acquisition module, for the video stream data in the acquisition camera shooting in networking, wherein, the video fluxion According to resolution ratio it is identical with the screen resolution regarding networked terminals;

Coding module, encodes for the video stream data to the collection and the screen resolution;

Packetization module, for being carried out to the video stream data after coding and the screen resolution according to depending on networking protocol Packing, obtains regarding networked video stream.

In one preferred embodiment of the invention, the data packet depending on networked video stream after packing includes at least:It is crucial Frame, timestamp, size of data, offset, port number, the screen resolution.

For device embodiment, since it is substantially similar to embodiment of the method, so description is fairly simple, it is related Part illustrates referring to the part of embodiment of the method.

Each embodiment in this specification is described by the way of progressive, what each embodiment stressed be with The difference of other embodiment, between each embodiment identical similar part mutually referring to.

It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can use complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can use one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.

The embodiment of the present invention be with reference to according to the method for the embodiment of the present invention, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that it can realize flowchart and/or the block diagram by computer program instructions In each flow and/or block and flowchart and/or the block diagram in flow and/or square frame combination.These can be provided Computer program instructions are set to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to produce a machine so that is held by the processor of computer or other programmable data processing terminal equipments Capable instruction is produced and is used for realization in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames The device for the function of specifying.

These computer program instructions, which may also be stored in, can guide computer or other programmable data processing terminal equipments In the computer-readable memory to work in a specific way so that the instruction being stored in the computer-readable memory produces bag The manufacture of command device is included, which realizes in one flow of flow chart or multiple flows and/or one side of block diagram The function of being specified in frame or multiple square frames.

These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that Series of operation steps is performed on computer or other programmable terminal equipments to produce computer implemented processing, so that The instruction performed on computer or other programmable terminal equipments is provided and is used for realization in one flow of flow chart or multiple flows And/or specified in one square frame of block diagram or multiple square frames function the step of.

Although having been described for the preferred embodiment of the embodiment of the present invention, those skilled in the art once know base This creative concept, then can make these embodiments other change and modification.So appended claims are intended to be construed to Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.

Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or order.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements are not only wrapped Those key elements are included, but also including other elements that are not explicitly listed, or further include as this process, method, article Or the key element that terminal device is intrinsic.In the absence of more restrictions, wanted by what sentence "including a ..." limited Element, it is not excluded that also there are other identical element in the process including the key element, method, article or terminal device.

Above to a kind of inspection method depending on networked video stream provided by the present invention and a kind of looking into depending on networked video stream To see device, be described in detail, specific case used herein is set forth the principle of the present invention and embodiment, The explanation of above example is only intended to help to understand method and its core concept of the invention;Meanwhile for the one of this area As technical staff, according to the thought of the present invention, there will be changes in specific embodiments and applications, to sum up institute State, this specification content should not be construed as limiting the invention.

Claims (10)

1. a kind of inspection method regarding networked video stream, it is characterised in that the method is applied to regard networking and Android system In terminal device, including:
If receiving regarding networked video stream, protocol conversion is carried out to the networked video stream that regards, obtains internet video stream, its In, described to regard networked video stream to support the video flowing regarding networking protocol, the internet video stream is support Internet protocol Video flowing;
The internet video stream is decoded, obtains the first resolution of video stream data and the video stream data;
If the first resolution is differentiated higher than the second resolution of the terminal device of the Android system according to described second Rate and the first resolution, determine the scaling zoomed in and out to the first resolution;
The first resolution of the video stream data is zoomed in and out according to the scaling, obtains setting suitable for the terminal The video stream data of standby second resolution;
Video stream data after scaling processing is played so that user checks on the screen of the terminal device.
2. according to the method described in claim 1, it is characterized in that, the first resolution is 1080p forms or 1080i forms Resolution ratio.
3. according to the method described in claim 1, it is characterized in that, described differentiate according to the second resolution with described first Rate, determine the first resolution is zoomed in and out scaling the step of, including:
Determine the pixel number that numerical value is larger in the width pixel number and height pixel number of the second resolution;
If the larger pixel number of the numerical value is width pixel number, the width pixel number of the second resolution and described is calculated The ratio of the width pixel number of first resolution, obtains the first ratio, wherein, first ratio is denoted as to be differentiated to described first The scaling that rate zooms in and out;
If the larger pixel number of the numerical value is height pixel number, the height pixel number of the second resolution and described is calculated The ratio of the height pixel number of first resolution, obtains the second ratio, wherein, second ratio is denoted as to be differentiated to described first The scaling that rate zooms in and out.
4. according to the method described in claim 1, it is characterized in that, if described receive regarding networked video stream, regarded to described Networked video stream carries out protocol conversion, and before the step of obtaining internet video stream, the method further includes:
Using regarding networked terminals it is described regard networking in acquisition camera shoot video stream data, wherein, the video stream data Resolution ratio it is identical with the screen resolution regarding networked terminals;
Video stream data and the screen resolution to the collection encode;
Pack to the video stream data after coding and the screen resolution according to depending on networking protocol, obtain regarding depending on networking Frequency flows.
5. according to the method described in claim 4, it is characterized in that, the data packet depending on networked video stream after packing is at least wrapped Include:Key frame, timestamp, size of data, offset, port number, the screen resolution.
6. a kind of checking device regarding networked video stream, it is characterised in that described device is applied to regard networking and Android system In terminal device, including:
Protocol conversion module, if for receiving regarding networked video stream, carries out protocol conversion to the networked video stream that regards, obtains To internet video stream, wherein, it is described to regard networked video stream to support the video flowing regarding networking protocol, the internet video stream To support the video flowing of Internet protocol;
Decoder module, for being decoded to the internet video stream, obtains video stream data and the video stream data First resolution;
Determine ratio module, if being higher than the second resolution of the terminal device of the Android system for the first resolution, Then according to the second resolution and the first resolution, the scaling zoomed in and out to the first resolution is determined;
Zoom module, for being zoomed in and out according to the scaling to the first resolution of the video stream data, is fitted Video stream data for the second resolution of the terminal device;
Playing module, for by by the scaling processing after video stream data played on the screen of the terminal device with Checked for user.
7. device according to claim 6, it is characterised in that the first resolution is 1080p forms or 1080i forms Resolution ratio.
8. device according to claim 6, it is characterised in that the definite ratio module includes:
Determine sub-blocks of pixels, numerical value is larger in the width pixel number and height pixel number for determining the second resolution Pixel number;
First determines ratio submodule, if the pixel number larger for the numerical value is width pixel number, calculates described second The ratio of the width pixel number of resolution ratio and the width pixel number of the first resolution, obtains the first ratio, wherein, described One ratio is denoted as the scaling zoomed in and out to the first resolution;
Second determines ratio submodule, if the pixel number larger for the numerical value is height pixel number, calculates described second The ratio of the height pixel number of resolution ratio and the height pixel number of the first resolution, obtains the second ratio, wherein, described Two ratios are denoted as the scaling zoomed in and out to the first resolution.
9. device according to claim 6, it is characterised in that described device further includes:
Acquisition module, for the video stream data in the acquisition camera shooting in networking, wherein, the video stream data Resolution ratio is identical with the screen resolution regarding networked terminals;
Coding module, encodes for the video stream data to the collection and the screen resolution;
Packetization module, for being beaten according to depending on networking protocol the video stream data after coding and the screen resolution Bag, obtains regarding networked video stream.
10. device according to claim 9, it is characterised in that the data packet depending on networked video stream after packing is at least wrapped Include:Key frame, timestamp, size of data, offset, port number, the screen resolution.
CN201610951321.9A 2016-10-26 2016-10-26 A kind of inspection method and device regarding networked video stream CN107995451A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610951321.9A CN107995451A (en) 2016-10-26 2016-10-26 A kind of inspection method and device regarding networked video stream

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610951321.9A CN107995451A (en) 2016-10-26 2016-10-26 A kind of inspection method and device regarding networked video stream

Publications (1)

Publication Number Publication Date
CN107995451A true CN107995451A (en) 2018-05-04

Family

ID=62029557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610951321.9A CN107995451A (en) 2016-10-26 2016-10-26 A kind of inspection method and device regarding networked video stream

Country Status (1)

Country Link
CN (1) CN107995451A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101588595A (en) * 2009-07-07 2009-11-25 志 董 Method for dynamically regulating data transfer rate in wireless application service system
US20110007189A1 (en) * 2005-06-24 2011-01-13 Pantech Co., Ltd. Apparatus and method for automatic conversion to digital zoom mode
CN102098553A (en) * 2010-12-03 2011-06-15 中国联合网络通信集团有限公司 Video transmission method and system as well as video server
CN102314502A (en) * 2011-09-01 2012-01-11 百度在线网络技术(北京)有限公司 Method and equipment for displaying webpage main content on mobile terminal
CN102665056A (en) * 2012-04-28 2012-09-12 青岛海信信芯科技有限公司 Display method for videos and images in display terminals
CN103139473A (en) * 2011-11-28 2013-06-05 三星电子株式会社 Method of eliminating a shutter-lag, camera module, and mobile device having the same
CN103581699A (en) * 2013-11-04 2014-02-12 广州华工信元通信技术有限公司 Video playing method, streaming media server and streaming media playing system
CN103686072A (en) * 2013-11-15 2014-03-26 北京视联动力国际信息技术有限公司 Video internet video monitoring method and system, protocol conversion server, and video internet server
CN104679466A (en) * 2013-11-29 2015-06-03 腾讯科技(深圳)有限公司 Image display method and device and electronic device
CN104901919A (en) * 2014-03-03 2015-09-09 中辉世纪传媒发展有限公司 Method for adaption of accessing of different terminals and device thereof
CN105847590A (en) * 2016-05-24 2016-08-10 努比亚技术有限公司 Picture display device and method of Android system
CN105933726A (en) * 2016-05-13 2016-09-07 乐视控股(北京)有限公司 Virtual reality terminal and video resolution adaptation method and device thereof
CN106162040A (en) * 2015-03-30 2016-11-23 北京视联动力国际信息技术有限公司 The method and apparatus that video conference accesses in many ways

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110007189A1 (en) * 2005-06-24 2011-01-13 Pantech Co., Ltd. Apparatus and method for automatic conversion to digital zoom mode
CN101588595A (en) * 2009-07-07 2009-11-25 志 董 Method for dynamically regulating data transfer rate in wireless application service system
CN102098553A (en) * 2010-12-03 2011-06-15 中国联合网络通信集团有限公司 Video transmission method and system as well as video server
CN102314502A (en) * 2011-09-01 2012-01-11 百度在线网络技术(北京)有限公司 Method and equipment for displaying webpage main content on mobile terminal
CN103139473A (en) * 2011-11-28 2013-06-05 三星电子株式会社 Method of eliminating a shutter-lag, camera module, and mobile device having the same
CN102665056A (en) * 2012-04-28 2012-09-12 青岛海信信芯科技有限公司 Display method for videos and images in display terminals
CN103581699A (en) * 2013-11-04 2014-02-12 广州华工信元通信技术有限公司 Video playing method, streaming media server and streaming media playing system
CN103686072A (en) * 2013-11-15 2014-03-26 北京视联动力国际信息技术有限公司 Video internet video monitoring method and system, protocol conversion server, and video internet server
CN104679466A (en) * 2013-11-29 2015-06-03 腾讯科技(深圳)有限公司 Image display method and device and electronic device
CN104901919A (en) * 2014-03-03 2015-09-09 中辉世纪传媒发展有限公司 Method for adaption of accessing of different terminals and device thereof
CN106162040A (en) * 2015-03-30 2016-11-23 北京视联动力国际信息技术有限公司 The method and apparatus that video conference accesses in many ways
CN105933726A (en) * 2016-05-13 2016-09-07 乐视控股(北京)有限公司 Virtual reality terminal and video resolution adaptation method and device thereof
CN105847590A (en) * 2016-05-24 2016-08-10 努比亚技术有限公司 Picture display device and method of Android system

Similar Documents

Publication Publication Date Title
CN106341515B (en) A kind of monitoring method and device of terminal
CN106550282B (en) A kind of playback method and system of video data
CN106549912B (en) A kind of playback method and system of video data
CN108063672B (en) A kind of management method and device of video conference terminal
CN108632398B (en) A kind of conference access method and system, association turn server and conference management terminal
CN106341588A (en) Electronic focusing method and device of camera
CN108462589B (en) A kind of method for connecting network and device of terminal
CN108121588B (en) A kind of method and its view networking access server of access external resource
CN108418778A (en) A kind of internet and method, apparatus and interactive system regarding connected network communication
CN108574597B (en) A kind of method, apparatus and interactive system that state updates
CN108124159B (en) A kind of data processing method of four core terminal and four core terminals
CN108012106B (en) A kind of method and system regarding networking monitoring source synchronous
CN108462678B (en) A kind of method and apparatus of checking monitoring video recording
CN108882021B (en) A kind of video broadcasting method and device
CN108307212B (en) A kind of file order method and device
CN108134916B (en) A kind of data processing method of 4K terminal and 4K terminal
CN108881357B (en) A kind of method and apparatus that data are synchronous
CN108881799B (en) A kind of system and method carrying out view networked video meeting
CN108173804B (en) A kind of networked by view accesses the method and view connection cat client of internet
CN108881147B (en) A kind of data processing method and device of view networking
CN108073665B (en) A kind of switching method and apparatus of view the networking page and html page
CN107979563B (en) A kind of information processing method and device based on view networking
CN108632679B (en) A kind of method that multi-medium data transmits and a kind of view networked terminals
CN108965912B (en) A kind of method, client and the server of video data processing
CN108023910A (en) A kind of terminal monitoring method and system based on regarding networking

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
CB02 Change of applicant information

Address after: 100000 Dongcheng District, Beijing, Qinglong Hutong 1, 1103 house of Ge Hua building.

Applicant after: Limited by Share Ltd

Address before: 100000 Beijing Dongcheng District gogoa building A1103-1113

Applicant before: BEIJING VISIONVERA INTERNATIONAL INFORMATION TECHNOLOGY CO., LTD.

Address after: 100000 Dongcheng District, Beijing, Qinglong Hutong 1, 1103 house of Ge Hua building.

Applicant after: Video Link Power Information Technology Co., Ltd.

Address before: 100000 Beijing Dongcheng District gogoa building A1103-1113

Applicant before: BEIJING VISIONVERA INTERNATIONAL INFORMATION TECHNOLOGY CO., LTD.

CB02 Change of applicant information