Intelligent video transmission method and device based on channel conditions and medium

By grading channels and selecting the most suitable channel for video file transmission, the problem of slowing channel transmission rate in the prior art is solved, and the fast and complete transmission of video files is achieved.

CN119520859APending Publication Date: 2025-02-25NANJING ALLCAM INFORMATION TECHNOLOGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411770310.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

Existing video transmission methods usually select a channel for transmission, resulting in slower channel transmission rate and inability to quickly receive video files.

Method used

The intelligent video transmission method based on channel conditions allows the channel to be classified and the most suitable channel is selected for transmission based on file size and transmission distance. The method includes steps such as judging file integrity, acquiring signal transmission information, processing and transmission of files, node judgment processing, and terminal reception and confirmation.

Benefits of technology

This method can accurately select the appropriate channel to transmit video files, improve channel utilization, reduce file reception time, and ensure fast and complete transmission of video files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520859A_ABST
    Figure CN119520859A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent video transmission, in particular to an intelligent video transmission method and device based on channel conditions and a medium. S1, judging whether a file is complete or not: selecting a file to be transmitted, converting the file format, and then judging the integrity of the file; s2, acquiring signal transmission information: acquiring information of transmission channels, and grading the channels; s3, processing the file: firstly judging the size of the file, and then compressing the file according to a judgment result; according to the invention, the channels can be graded, and when the video file is transmitted, the proper channel can be accurately selected to transmit the video file according to the comparison formula and the judgment of the transmission distance L, so that the situation that the channel transmission rate is slowed down and the file receiving time is prolonged due to the fact that the file is transmitted to one channel by one stock is avoided; the management of video file transmission is enhanced, and the utilization rate of a channel is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of video intelligent transmission, and in particular to a video intelligent transmission method, device and medium based on channel conditions. Background Art

[0002] Video intelligent transmission refers to the use of advanced technical means to achieve intelligent processing and efficient transmission of video content. It combines audio and video processing technology with artificial intelligence technology, and can intelligently analyze and optimize video content during transmission, thereby improving transmission efficiency and user experience.

[0003] For example, a video soft transmission method, device, chip, storage medium and electronic device with the authorization announcement number CN117998101B and the authorization announcement date 20240702 belong to the field of wireless communication technology. The video soft transmission method includes: obtaining the video to be transmitted and the cascade channel gain matrix at the transmitting end; extracting a preset number of image frames from the video to be transmitted in turn to obtain multiple continuous frame image sets; for each continuous frame image set, the following operations are performed: performing a three-dimensional discrete cosine transform on the image in the continuous frame image set to obtain a coefficient matrix; dividing the coefficient matrix into multiple coefficient blocks; wherein each coefficient block has the same size; determining the cascade channel gain of each coefficient block respectively; generating a transmitting end signal based on each coefficient block and the cascade channel gain of each coefficient block, and sending the transmitting end signal to the receiving end. In this way, IRS is applied to SoftCast, which expands the application of IRS technology.

[0004] Although the above-mentioned video transmission methods and those in the prior art can realize the transmission of video files, most of them use one channel for transmission. Although the purpose of video transmission can be achieved, it will cause the channel transmission rate to become slower, and it will take a long time to completely receive the transmitted video file. The video file cannot be received quickly. In view of this, it is urgent to design a video intelligent transmission method, device and medium based on channel conditions to solve the above problems. Summary of the invention

[0005] The purpose of the present invention is to provide a video intelligent transmission method, device and medium based on channel conditions to solve the above-mentioned deficiencies in the prior art.

[0006] In order to achieve the above object, the present invention provides the following technical solutions:

[0007] The video intelligent transmission method based on channel conditions includes the following steps:

[0008] S1. Determine whether the file is complete: select the file to be transferred and convert the file format. The files are uniformly converted to FLV format, and then the integrity of the file is determined. This process uses a judgment program written in Python to determine whether the file is complete;

[0009] S2. Obtain signal transmission information: Obtain information about transmission channels. Channel transmission includes wireless channels and wired channels. Wireless channels use microwaves, satellite communications, and 5G mobile communications. The wired channels use optical fibers and open wires. Channels are classified according to transmission distance and transmission speed. The specific classification is as follows:

[0010] (1) Level 1: short-distance fast rate;

[0011] (2) Level 2: short distance and slow speed;

[0012] (3) Level 3: fast rate at mid-range;

[0013] (4) Level 4: medium-distance slow speed;

[0014] (5) Level 5: long distance fast rate;

[0015] (6) Level 6: long distance and slow speed;

[0016] S3. Process the file: first determine the size of the file, and then compress the file according to the determination result. The comparison formula is used to determine the file size. The comparison formula is as follows:

[0017]

[0018] , where S is the comparison formula value. If S<1, a slow rate channel is selected for transmission. If S≥1, a fast rate channel is selected for transmission.

[0019] S4. File transmission: According to the request command, select the file to be transmitted, and confirm the channel according to the file size and transmission distance, and then transmit the file through the channel. The process confirms the transmission channel by judging the transmission distance L and the comparison formula S. If S<1, select the slow rate channel transmission, wherein the transmission distance L≤500m, select the second-level channel transmission, 1000≥transmission distance L>500, select the fourth-level channel transmission, the transmission distance L>1000m, and select the sixth-level channel transmission; if S≥1, select the fast rate channel transmission, wherein the transmission distance L≤500m, select the first-level channel transmission, 1000≥transmission distance L>500, select the third-level channel transmission, the transmission distance L>1000m, and select the fifth-level channel transmission;

[0020] S5. Node judgment processing: During the transmission process, when passing through the node device, the node device judges the file transmission speed and file transmission channel. If it does not meet the original channel transmission, it returns to the previous step to select other channels for transmission. If it meets the original channel transmission, it continues to transmit. The node device judges the file transmission through the judgment formula Q, and the judgment formula Q is as follows:

[0021]

[0022] , where, when Q≥1, the channel transmission is normal, when Q<1, there is a problem with the channel transmission, and the node device temporarily stores the file, U is the size of the file actually transmitted by the channel within a period of time, and V is the size of the file theoretically transmitted by the channel within a period of time;

[0023] S6. Terminal reception and confirmation: The terminal receives the file and confirms the received file to determine whether the transmitted file is normal. When judging, it determines whether the file transmission is normal based on whether the file reception is complete. The judgment program written in Python is used to judge whether the file is complete. If it is normal, the terminal sends back a confirmation command. If it is not normal, the terminal sends a request command to transmit the file again.

[0024] The device for intelligent video transmission based on channel conditions includes a transmission device and a terminal device. The transmission device includes a wired device and a wireless device. Both the wired device and the wireless device are used for data transmission. The wired device is composed of a switch, a router, a fiber optic transceiver, an optical module, and an optical switch. The wireless device is composed of a wireless transmitter, a wireless WiFi transmitter, a signal base station and a satellite. The terminal device is a computer and a main control server.

[0025] A storage medium for intelligent video transmission based on channel conditions, wherein a computer program is stored on the storage medium, and the computer program is executed by a terminal device to implement the method for intelligent video transmission based on channel conditions as described in any one of claims 1 to 8.

[0026] In the above technical solution, the video intelligent transmission method, device and medium based on channel conditions provided by the present invention have the following beneficial effects:

[0027] (1) The video intelligent transmission method designed by the present invention can classify channels. When transmitting video files, it can also accurately select a suitable channel to transmit the video files based on the comparison formula and the judgment of the transmission distance L, thereby avoiding the situation where a large number of files are transmitted to one channel, causing the channel transmission rate to slow down and the file receiving time to be longer. This is conducive to strengthening the management of video file transmission and improving the utilization rate of channels.

[0028] (2) The video intelligent transmission method designed by the present invention can detect the video file being transmitted through a judgment formula. When the transmission is interrupted, the node device can temporarily store the file. After the communication is restored, the node device will continue to send the file to the terminal, thereby reducing the file transmission distance and facilitating the terminal to quickly receive the file.

[0029] (3) The video intelligent transmission method designed by the present invention can detect the integrity of the video file during transmission through a judgment program. After the transmission is completed, the terminal can also detect and judge the received file through a judgment program. When it is determined that the received file is incomplete, the terminal will automatically issue a request command to retransmit the file. This process solves the problem that the user cannot retransmit the file when the file transmission fails, so that the file can be automatically transmitted, so that the user can obtain the video file in time. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0031] Figure 1 A method flow chart of an embodiment of a video intelligent transmission method, device and medium based on channel conditions provided by the present invention.

[0032] Figure 2 A schematic diagram of the device structure provided for an embodiment of the video intelligent transmission method, device and medium based on channel conditions of the present invention. DETAILED DESCRIPTION

[0033] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings.

[0034] like Figure 1-2 As shown, the video intelligent transmission method based on channel conditions provided by an embodiment of the present invention includes the following steps:

[0035] S1. Determine whether the file is complete: select the file to be transferred, convert the file format, and then determine the integrity of the file;

[0036] S2. Obtain signal transmission information: obtain transmission channel information and classify the channels;

[0037] S3. Process the file: first determine the size of the file, and then compress the file based on the determination result;

[0038] S4. Transferring files: According to the request command, select the file to be transferred, and confirm the channel according to the size and transmission distance of the file, and then transfer the file through the channel;

[0039] S5. Node judgment processing: During the transmission process, when passing through the node device, the node device judges the file transmission speed and the file transmission channel. If it does not meet the original channel transmission, it returns to the previous step to select other channels for transmission. If it meets the original channel transmission, it continues to transmit;

[0040] S6. Terminal reception and confirmation: The terminal receives the file and confirms the received file to determine whether the transmitted file is normal. If it is normal, the terminal sends back a confirmation command. If it is not normal, the terminal sends a request command to transmit the file again.

[0041] Specifically, in this embodiment, the following steps are included:

[0042] S1. Determine whether the file is complete: select the file to be transferred and convert the file format. The files are uniformly converted to FLV format, and then the integrity of the file is determined. This process uses a judgment program written in Python to determine whether the file is complete;

[0043] S2. Obtain signal transmission information: Obtain information about transmission channels. Channel transmission includes wireless channels and wired channels. Wireless channels use microwave, satellite communication, and 5G mobile communication. Wired channels use optical fiber and open wire. Channels are classified according to transmission distance and transmission speed. The specific classification is as follows:

[0044] (1) Level 1: short-distance fast rate;

[0045] (2) Level 2: short distance and slow speed;

[0046] (3) Level 3: fast rate at mid-range;

[0047] (4) Level 4: medium-distance slow speed;

[0048] (5) Level 5: long distance fast rate;

[0049] (6) Level 6: long distance and slow speed;

[0050] S3. Process the file: first determine the size of the file, and then compress the file according to the determination result. The comparison formula is used to determine the file size. The comparison formula is as follows:

[0051]

[0052] , where S is the comparison formula value. If S<1, a slow rate channel is selected for transmission. If S≥1, a fast rate channel is selected for transmission.

[0053] S4. File transmission: According to the request command, select the file to be transmitted, and confirm the channel according to the file size and transmission distance, and then transmit the file through the channel. The process confirms the transmission channel by judging the transmission distance L and the comparison formula S. If S<1, select the slow rate channel transmission, wherein the transmission distance L≤500m, select the second-level channel transmission, 1000≥transmission distance L>500, select the fourth-level channel transmission, the transmission distance L>1000m, and select the sixth-level channel transmission; if S≥1, select the fast rate channel transmission, wherein the transmission distance L≤500m, select the first-level channel transmission, 1000≥transmission distance L>500, select the third-level channel transmission, the transmission distance L>1000m, and select the fifth-level channel transmission;

[0054] S5. Node judgment processing: During the transmission process, when passing through the node device, the node device judges the file transmission speed and file transmission channel. If it does not meet the original channel transmission, it returns to the previous step to select other channels for transmission. If it meets the original channel transmission, it continues to transmit. The node device judges the file transmission through the judgment formula Q, and the judgment formula Q is as follows:

[0055]

[0056] , where, when Q≥1, the channel transmission is normal, when Q<1, there is a problem with the channel transmission, and the node device temporarily stores the file, U is the size of the file actually transmitted by the channel within a period of time, and V is the size of the file theoretically transmitted by the channel within a period of time;

[0057] S6. Terminal reception and confirmation: The terminal receives the file and confirms the received file to determine whether the transmitted file is normal. When judging, it determines whether the file transmission is normal based on whether the file reception is complete. The judgment program written in Python is used to judge whether the file is complete. If it is normal, the terminal sends back a confirmation command. If it is not normal, the terminal sends a request command to transmit the file again.

[0058] It should be noted that the judgment program written in Python is as follows:

[0059] pipinstallopencvpythonfmpegpython

[0060] importOS

[0061] importcv2

[0062] defis_video_file_normal(video_path):

[0063] # Check if the file exists

[0064] ifnotoS.path.exists(video_path):

[0065] Return "File does not exist"

[0066] # Check the file extension

[0067] valid_extensions = ('FLV')

[0068] ifnotvideo_path.endswith(valid_extensions):

[0069] Return "File format not supported"

[0070] #Try to open the video file

[0071] cap=cv2.VideoCapture(video_path)

[0072] #Judge whether the video is opened normally

[0073] ifnotcap.isOpened():

[0074] Return "Cannot open video file"

[0075] #Check the video frame rate and width and height

[0076] frame_count=int(cap.get(cv2.CAP_PROP_FRAME_COUNT))

[0077] width=int(cap.get(cv2.CAP_PROP_FRAME_WIDTH))

[0078] height=int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))

[0079] ifframe_count==0orwidth==0orheight==0:

[0080] return "The video file is damaged and the frame information cannot be read"

[0081] cap.release()

[0082] return "The video file is normal".

[0083] Equipment for intelligent video transmission based on channel conditions, including transmission devices and terminal devices. The transmission devices are of two types: wired devices and wireless devices. Both wired devices and wireless devices are used for data transmission. The wired devices are composed of switches, routers, fiber optic transceivers, optical modules, and optical switches. The wireless devices are composed of wireless transmitters, wireless WiFi transmitters, signal base stations and satellites. The terminal devices are computers and master control servers.

[0084] It should be noted that wired devices:

[0085] Switch: A switch is a device that implements data exchange functions in a communication network. It is mainly used for telephone communications and data transmission. It can receive information from the network and forward it to the target address.

[0086] Router: A router is a network interconnection device that is mainly used to achieve interconnection and data transmission between different networks. It is a very important device on the Internet.

[0087] Fiber optic transceiver: Fiber optic transceiver is used to convert optical signals and electrical signals. It is often used in fiber optic communication systems and has the advantages of fast transmission speed, long distance, and strong anti-interference ability.

[0088] Optical module: Optical module converts electrical signals into optical signals for transmitting information in optical cables. It is widely used in fields such as long-distance communications and computer networks.

[0089] Optical switch: Optical switch is used for fast optical path selection and optical switching. It is very important in optical communication and optical computing in the network, and can improve the optical communication efficiency and stability of the network.

[0090] Wireless devices: A wireless transmitter is a device that transmits audio and video signals from a signal source (such as a computer and high-definition playback device) to a remote HDTV or high-definition projector. It can achieve lossless and delay-free transmission of 1080P / 60 and 3D, and does not require software installation. It is plug-and-play. Wireless WiFi transmitters include various models and brands, such as HDMI wireless transmitters, Miracast transmitters, etc., which are used in scenarios such as video conferencing and mobile TV projection.

[0091] A storage medium for intelligent video transmission based on channel conditions, wherein a computer program is stored on the storage medium, and the computer program is executed by a terminal device to implement the above-mentioned intelligent video transmission method based on channel conditions.

[0092] The above description is only by way of illustration of certain exemplary embodiments of the present invention. It is undoubted that those skilled in the art can modify the described embodiments in various ways without departing from the spirit and scope of the present invention. Therefore, the above drawings and descriptions are illustrative in nature and should not be construed as limiting the scope of protection of the claims of the present invention.

Claims

1. A video intelligent transmission method based on channel conditions, characterized in that: Includes: includes the following steps: S1. Determine whether the file is complete: select the file to be transferred, convert the file format, and then determine the integrity of the file; S2. Obtain signal transmission information: obtain transmission channel information and classify the channels; S3. Process the file: first determine the size of the file, and then compress the file based on the determination result; S4. Transferring files: According to the request command, select the file to be transferred, and confirm the channel according to the size and transmission distance of the file, and then transfer the file through the channel; S5. Node judgment processing: During the transmission process, when passing through the node device, the node device judges the file transmission speed and the file transmission channel. If it does not meet the original channel transmission, it returns to the previous step to select other channels for transmission. If it meets the original channel transmission, it continues to transmit; S6. Terminal reception and confirmation: The terminal receives the file and confirms the received file to determine whether the transmitted file is normal. If it is normal, the terminal sends back a confirmation command. If it is not normal, the terminal sends a request command to transmit the file again.

2. The video intelligent transmission method based on channel conditions according to claim 1 is characterized in that: In the step S1, the files are uniformly converted into FLV format. In the step S1, a judgment program written in Python is used to judge whether the files are complete.

3. The method, device and medium for intelligent video transmission based on channel conditions according to claim 1, characterized in that: In the step S2, the channel transmission includes two types: wireless channel and wired channel, and the wireless channel adopts three types: microwave, satellite communication, and 5G mobile communication, and the wired channel adopts two types: optical fiber and open wire.

4. The method, device and medium for intelligent video transmission based on channel conditions according to claim 1, characterized in that: In step S2, the channels are classified according to the transmission distance and the transmission speed, and the specific classification is as follows: (1) Level 1: short-distance fast rate; (2) Level 2: short distance and slow speed; (3) Level 3: fast rate at medium distance; (4) Level 4: medium-distance slow speed; (5) Level 5: long-distance fast rate; (6) Level 6: Long distance and slow speed.

5. The method, device and medium for intelligent video transmission based on channel conditions according to claim 1, characterized in that: The comparison formula is used to determine the file size in step S3. The comparison formula is as follows: , Wherein, S is the value of the comparison formula. If S<1, a slow rate channel is selected for transmission. If S≥1, a fast rate channel is selected for transmission.

6. The method, device and medium for intelligent video transmission based on channel conditions according to claim 5, characterized in that: In the step S4, the transmission channel is confirmed by judging the transmission distance L and the comparison formula S, wherein, if S<1, a slow rate channel transmission is selected, wherein, the transmission distance L≤500m, the secondary channel transmission is selected, 1000≥the transmission distance L>500, the fourth level channel transmission is selected, the transmission distance L>1000m, and the sixth level channel transmission is selected; if S≥1, a fast rate channel transmission is selected, wherein, the transmission distance L≤500m, the first level channel transmission is selected, 1000≥the transmission distance L>500, the third level channel transmission is selected, the transmission distance L>1000m, and the fifth level channel transmission is selected.

7. The method, device and medium for intelligent video transmission based on channel conditions according to claim 1, characterized in that: In step S5, the node device judges the transmission of the file by using a judgment formula Q, and the judgment formula Q is as follows: , Among them, when Q≥1, the channel transmission is normal, when Q<1, there is a problem with the channel transmission, and the node device temporarily stores the file. U is the size of the file actually transmitted through the channel within a period of time, and V is the size of the file theoretically transmitted through the channel within a period of time.

8. The method, device and medium for intelligent video transmission based on channel conditions according to claim 1, characterized in that: In step S6, whether the file is transmitted normally is determined based on whether the file is received completely. Specifically, a determination program written in Python is used to determine whether the file is complete.

9. A device for intelligent video transmission based on channel conditions, using the method for intelligent video transmission based on channel conditions as claimed in any one of claims 1 to 8, characterized in that: It includes a transmission device and a terminal device. The transmission device includes wired equipment and wireless equipment. Both the wired equipment and the wireless equipment are used for data transmission. The wired equipment is composed of a switch, a router, a fiber optic transceiver, an optical module, and an optical switch. The wireless equipment is composed of a wireless transmitter, a wireless WiFi transmitter, a signal base station and a satellite. The terminal device is a computer and a main control server.

10. A storage medium for intelligent video transmission based on channel conditions, using the method and device for intelligent video transmission based on channel conditions as described in any one of claims 1 to 9, characterized in that: The storage medium stores a computer program, and the computer program is executed by a terminal device to implement the video intelligent transmission method based on channel conditions as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Video soft transmission method, device, chip, storage medium and electronic device

    CN117998101B