Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for transmitting H264 and H265 data formats by using JAVA NIO during screen projection of Android recording screen

A technology of H264 and data format, applied in the input/output process of data processing, electrical digital data processing, digital output to display devices, etc., can solve resource waste on the server side, low efficiency of Android screen recording and projection, waste of resources, etc. problems to achieve efficient interaction

Pending Publication Date: 2019-10-11
深圳市臂云科技有限公司
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

That is to say, a thread is responsible for a client socket. When a client socket is delayed due to the network, the thread responsible for the client on the server side will wait, wasting resources.
[0003] For the client: Suppose the main thread creates 10 sub-threads to request the server. This is a client socket that simulates network congestion. Every time a character is typed, it will stop for 1 second, so that the server-side thread has to wait, which will cause server-side resources. Being wasted, using the standard io socket for Android screen recording and projection also has the problem of inefficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for transmitting H264 and H265 data formats by using JAVA NIO during screen projection of Android recording screen
  • Method for transmitting H264 and H265 data formats by using JAVA NIO during screen projection of Android recording screen
  • Method for transmitting H264 and H265 data formats by using JAVA NIO during screen projection of Android recording screen

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] In order to facilitate those of ordinary skill in the art to understand and implement the present invention, the embodiments of the present invention will be further described below in conjunction with the accompanying drawings.

[0019] refer to image 3 , the present invention provides a method for using JAVA NIO to transmit H264 and H265 data formats for Android screen recording and projection, comprising steps:

[0020] S1. The screen recording terminal collects the first data, and encapsulates the first data into H264 or H265 data format;

[0021] S2. Convert the encapsulated H264 or H265 data into byte byte data, and then convert the byte byte data into ByteBuffer, and then send it to NIO for data transmission.

[0022] Among them, the screen recording end is the server end, and its nio socket transmits data to the client end, so as to achieve the purpose of one-to-many, and can also achieve the control of multiple pairs of mobile phones.

[0023] The client als...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a method for transmitting H264 and H265 data formats by using JAVA NIO in Android screen recording and screen projection, which comprises the following steps that: enabling ascreen recording end to record a screen to acquire first data, and encapsulate the first data into the H264 or H265 data format; and converting the packaged H264 or H265 data into byte data, converting the byte data into a ByteBuffer, and transmitting the ByteBuffer to an NIO (Network Input Output) for data transmission. The screen recording end is used as a server end, and the nio socket is usedfor transmitting data to the client end, so that the one-to-many purpose can be achieved, and the many-to-one pair of mobile phones can be controlled. And meanwhile, the client also adopts the nio socket to receive and transmit data, so that more efficient interaction with the server can be achieved.

Description

technical field [0001] The present invention relates to Android screen recording and projection technology, in particular to a method for Android recording and projection using JAVA NIO to transmit H264 and H265 data formats. Background technique [0002] figure 1 It is a schematic diagram of a standard io socket, which shows the structure of multi-thread processing on the server side. For the server side: it is responsible for continuously requesting echoServer.accept(). If no client requests the main thread, it will block. When a client requests the server, The main thread will use the thread pool to create a new thread for execution. That is to say, a thread is responsible for a client socket. When a client socket is delayed due to the network, the thread responsible for the client on the server side will wait, wasting resources. [0003] For the client: Suppose the main thread creates 10 sub-threads to request the server. This is a client socket that simulates network ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F3/14
CPCG06F3/1454
Inventor 黄宏发刘毅何蔚黄慈航严锦华
Owner 深圳市臂云科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products